blob: 4f9acc53e01ec1f83fdee62251a0298180bcfe59 [file] [log] [blame]
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +03001{% from 'virtual-mcp11-k8s-contrail/underlay.yaml' import HOSTNAME_CFG01 with context %}
2
3# Install support services
4- description: Create and distribute SSL certificates for services using salt state
5 cmd: salt --hard-crash --state-output=mixed --state-verbose=False '*' state.sls salt
6 node_name: {{ HOSTNAME_CFG01 }}
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +02007 retry: {count: 1, delay: 5}
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +03008 skip_fail: true
9
Tatyana Leontovich508d0cb2017-05-26 15:46:24 +030010- description: Install glusterfs
11 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
12 -C 'I@glusterfs:server' state.sls glusterfs.server.service
13 node_name: {{ HOSTNAME_CFG01 }}
14 retry: {count: 1, delay: 5}
15 skip_fail: false
16
17- description: Setup glusterfs on primary controller
18 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
19 -C 'I@glusterfs:server' state.sls glusterfs.server.setup -b 1
20 node_name: {{ HOSTNAME_CFG01 }}
21 retry: {count: 1, delay: 5}
22 skip_fail: false
23
24- description: Check the gluster status
25 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
26 -C 'I@glusterfs:server' cmd.run 'gluster peer status; gluster volume status' -b 1
27 node_name: {{ HOSTNAME_CFG01 }}
28 retry: {count: 1, delay: 5}
29 skip_fail: false
30
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +030031- description: Install haproxy
32 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
33 -C 'I@haproxy:proxy' state.sls haproxy
34 node_name: {{ HOSTNAME_CFG01 }}
35 retry: {count: 1, delay: 5}
36 skip_fail: false
37
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +020038- description: Check haproxy service
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +030039 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
40 -C 'I@haproxy:proxy' service.status haproxy
41 node_name: {{ HOSTNAME_CFG01 }}
42 retry: {count: 1, delay: 5}
43 skip_fail: false
44
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +020045- description: Restart rsyslog
46 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
47 -C 'I@haproxy:proxy' service.restart rsyslog
48 node_name: {{ HOSTNAME_CFG01 }}
49 retry: {count: 1, delay: 5}
50 skip_fail: false