blob: e5eb9d7d6c938a351ab417e0a58f7f604e39d3ee [file] [log] [blame]
Victor Ryzhenkina95d1732017-11-16 19:02:19 +04001{% from 'k8s-ha-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 }}
7 retry: {count: 1, delay: 5}
8 skip_fail: true
9
10- description: Install docker
11 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
12 -C 'I@docker:host' state.sls docker.host
13 node_name: {{ HOSTNAME_CFG01 }}
14 retry: {count: 1, delay: 5}
15 skip_fail: false
16
17- description: Check docker
18 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
19 -C 'I@docker:host' cmd.run 'docker ps'
20 node_name: {{ HOSTNAME_CFG01 }}
21 retry: {count: 1, delay: 5}
22 skip_fail: false
23
24- description: Install keepalived on primary controller
25 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
26 -C 'I@keepalived:cluster and *01*' state.sls keepalived
27 node_name: {{ HOSTNAME_CFG01 }}
28 retry: {count: 1, delay: 10}
29 skip_fail: true
30
31- description: Install keepalived
32 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
33 -C 'I@keepalived:cluster' state.sls keepalived
34 node_name: {{ HOSTNAME_CFG01 }}
35 retry: {count: 1, delay: 10}
36 skip_fail: true
37
38- description: Install RabbitMQ
39 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
40 -C 'I@rabbitmq:server' state.sls rabbitmq
41 node_name: {{ HOSTNAME_CFG01 }}
42 retry: {count: 2, delay: 10}
43 skip_fail: false
44
45- description: Check RabbitMQ
46 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
47 -C 'I@rabbitmq:server' cmd.run "rabbitmqctl cluster_status"
48 node_name: {{ HOSTNAME_CFG01 }}
49 retry: {count: 1, delay: 10}
50 skip_fail: false
51
52- description: Install haproxy
53 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
54 -C 'I@haproxy:proxy' state.sls haproxy
55 node_name: {{ HOSTNAME_CFG01 }}
56 retry: {count: 1, delay: 5}
57 skip_fail: false
58
59- description: Check haproxy service
60 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
61 -C 'I@haproxy:proxy' service.status haproxy
62 node_name: {{ HOSTNAME_CFG01 }}
63 retry: {count: 1, delay: 5}
64 skip_fail: false
65
66- description: Restart rsyslog
67 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
68 -C 'I@haproxy:proxy' service.restart rsyslog
69 node_name: {{ HOSTNAME_CFG01 }}
70 retry: {count: 1, delay: 5}
71 skip_fail: false
72