blob: cc5b2679c9b270164dd8374eb6fe044233bb6b35 [file] [log] [blame]
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +03001{% from 'virtual-mcp11-k8s-contrail/underlay.yaml' import HOSTNAME_CFG01 with context %}
2
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +02003- description: Temporary fix to untie k8s API from Opencontrail haproxy
4 That allows kube-api to be available over private network.
5 cmd: sed -i "s/vhost0/ens4/g" /srv/salt/reclass/classes/cluster/virtual-mcp11-k8s-contrail/kubernetes/control.yml
6 node_name: {{ HOSTNAME_CFG01 }}
7 retry: {count: 1, delay: 5}
8 skip_fail: true
9
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +030010# Install support services
11- description: Create and distribute SSL certificates for services using salt state
12 cmd: salt --hard-crash --state-output=mixed --state-verbose=False '*' state.sls salt
13 node_name: {{ HOSTNAME_CFG01 }}
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +020014 retry: {count: 1, delay: 5}
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +030015 skip_fail: true
16
Tatyana Leontovich508d0cb2017-05-26 15:46:24 +030017- description: Install glusterfs
18 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
19 -C 'I@glusterfs:server' state.sls glusterfs.server.service
20 node_name: {{ HOSTNAME_CFG01 }}
21 retry: {count: 1, delay: 5}
22 skip_fail: false
23
24- description: Setup glusterfs on primary controller
25 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
26 -C 'I@glusterfs:server' state.sls glusterfs.server.setup -b 1
27 node_name: {{ HOSTNAME_CFG01 }}
28 retry: {count: 1, delay: 5}
29 skip_fail: false
30
31- description: Check the gluster status
32 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
33 -C 'I@glusterfs:server' cmd.run 'gluster peer status; gluster volume status' -b 1
34 node_name: {{ HOSTNAME_CFG01 }}
35 retry: {count: 1, delay: 5}
36 skip_fail: false
37
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +030038- description: Install haproxy
39 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
40 -C 'I@haproxy:proxy' state.sls 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: Check haproxy service
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +030046 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
47 -C 'I@haproxy:proxy' service.status haproxy
48 node_name: {{ HOSTNAME_CFG01 }}
49 retry: {count: 1, delay: 5}
50 skip_fail: false
51
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +020052- description: Restart rsyslog
53 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
54 -C 'I@haproxy:proxy' service.restart rsyslog
55 node_name: {{ HOSTNAME_CFG01 }}
56 retry: {count: 1, delay: 5}
57 skip_fail: false