blob: b17d29713a6e62274417b5987396fac1ec03aac1 [file] [log] [blame]
Ales Komarekc12dd412017-06-27 16:24:42 +02001classes:
Martin Polreich1ee2e092017-08-10 16:06:57 +02002- system.docker.client
3- system.docker.host
Ales Komarekc12dd412017-06-27 16:24:42 +02004- system.linux.system.repo.ubuntu
5- system.openssh.client.lab
6- system.salt.master.pkg
7- system.salt.minion.ca.salt_master
8- system.salt.master.api
9- system.reclass.storage.salt
10- system.salt.minion.cert.k8s_server
11- system.reclass.storage.system.kubernetes_control_cluster
12- system.reclass.storage.system.opencontrail_control_cluster
Adam Tengler75c2f952017-07-04 17:37:15 +000013- cluster.sl_k8s_contrail
Ales Komarekc12dd412017-06-27 16:24:42 +020014parameters:
15 _param:
16 salt_master_base_environment: prd
17 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab"
18 reclass_data_revision: master
19 reclass_config_master: ${_param:infra_config_deploy_address}
20 single_address: ${_param:infra_config_address}
21 linux_system_codename: xenial
22 salt_api_password_hash: "$6$WV0P1shnoDh2gI/Z$22/Bcd7ffMv0jDlFpT63cAU4PiXHz9pjXwngToKwqAsgoeK4HNR3PiKaushjxp3JsQ8hNoJmAC6TxzVqfV8WH/"
23 salt_master_host: ${_param:infra_config_deploy_address}
Adam Tengler0963f862017-07-04 15:46:06 +000024 salt:
25 master:
26 reactor:
27 reclass/minion/classify:
28 - salt://reclass/reactor/node_register.sls
Ales Komarekc12dd412017-06-27 16:24:42 +020029 reclass:
30 storage:
Adam Tengler0963f862017-07-04 15:46:06 +000031 class_mapping:
32 common_node:
33 expression: all
34 node_param:
35 single_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000036 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000037 linux_system_codename:
38 value_template: <<node_os>>
39 salt_master_host:
40 value_template: <<node_master_ip>>
41 infra_config:
42 expression: <<node_hostname>>__startswith__cfg
43 cluster_param:
44 infra_config_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000045 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000046 infra_config_deploy_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000047 value_template: <<node_deploy_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000048 cluster_domain:
49 value_template: <<node_domain>>
Adam Tengler0963f862017-07-04 15:46:06 +000050 kubernetes_control01:
51 expression: <<node_hostname>>__equals__ctl01
52 cluster_param:
53 kubernetes_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000054 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000055 kubernetes_control02:
56 expression: <<node_hostname>>__equals__ctl02
57 cluster_param:
58 kubernetes_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000059 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000060 kubernetes_control03:
61 expression: <<node_hostname>>__equals__ctl03
62 cluster_param:
63 kubernetes_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000064 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000065 opencontrail_control01:
66 expression: <<node_hostname>>__equals__ntw01
67 cluster_param:
68 opencontrail_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000069 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000070 opencontrail_control02:
71 expression: <<node_hostname>>__equals__ntw02
72 cluster_param:
73 opencontrail_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000074 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000075 opencontrail_control03:
76 expression: <<node_hostname>>__equals__ntw03
77 cluster_param:
78 opencontrail_control_node03_address:
79 value_template: <<node_ip>
80 kubernetes_proxy:
81 expression: <<node_hostname>>__equals__prx01
82 cluster_param:
83 kubernetes_proxy_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000084 value_template: <<node_control_ip>>
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +000085 stacklight_monitor_node01:
Adam Tengler0963f862017-07-04 15:46:06 +000086 expression: <<node_hostname>>__equals__mon01
87 cluster_param:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +000088 stacklight_monitor_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000089 value_template: <<node_control_ip>>
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +000090 stacklight_monitor_node02:
Adam Tengler0963f862017-07-04 15:46:06 +000091 expression: <<node_hostname>>__equals__mon02
92 cluster_param:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +000093 stacklight_monitor_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000094 value_template: <<node_control_ip>>
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +000095 stacklight_monitor_node03:
Adam Tengler0963f862017-07-04 15:46:06 +000096 expression: <<node_hostname>>__equals__mon03
97 cluster_param:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +000098 stacklight_monitor_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000099 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +0000100 kubernetes_compute:
101 expression: <<node_hostname>>__startswith__cmp
102 node_class:
103 value_template:
104 - cluster.<<node_cluster>>.kubernetes.compute
Ales Komarekc12dd412017-06-27 16:24:42 +0200105 prx_node:
106 name: ${_param:kubernetes_proxy_node01_hostname}
107 domain: ${_param:cluster_domain}
108 classes:
109 - cluster.${_param:cluster_name}.stacklight.proxy
110 params:
111 salt_master_host: ${_param:infra_config_deploy_address}
112 linux_system_codename: xenial
113 single_address: ${_param:kubernetes_proxy_node01_address}
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000114 stacklight_monitor_node01:
115 name: ${_param:stacklight_monitor_node01_hostname}
Ales Komarekc12dd412017-06-27 16:24:42 +0200116 domain: ${_param:cluster_domain}
117 classes:
118 - service.galera.master.cluster
119 - system.docker.swarm.master
120 - cluster.${_param:cluster_name}.stacklight.client
121 - cluster.${_param:cluster_name}.stacklight.server
122 params:
123 salt_master_host: ${_param:infra_config_deploy_address}
124 linux_system_codename: xenial
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000125 single_address: ${_param:stacklight_monitor_node01_address}
Ales Komarekc12dd412017-06-27 16:24:42 +0200126 keepalived_vip_priority: 100
127 mysql_cluster_role: master
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000128 stacklight_monitor_node02:
129 name: ${_param:stacklight_monitor_node02_hostname}
Ales Komarekc12dd412017-06-27 16:24:42 +0200130 domain: ${_param:cluster_domain}
131 classes:
132 - service.galera.slave.cluster
133 - system.docker.swarm.manager
134 - cluster.${_param:cluster_name}.stacklight.server
135 params:
136 salt_master_host: ${_param:infra_config_deploy_address}
137 linux_system_codename: xenial
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000138 single_address: ${_param:stacklight_monitor_node02_address}
Ales Komarekc12dd412017-06-27 16:24:42 +0200139 keepalived_vip_priority: 101
140 mysql_cluster_role: slave
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000141 stacklight_monitor_node03:
142 name: ${_param:stacklight_monitor_node03_hostname}
Ales Komarekc12dd412017-06-27 16:24:42 +0200143 domain: ${_param:cluster_domain}
144 classes:
145 - service.galera.slave.cluster
146 - system.docker.swarm.manager
147 - cluster.${_param:cluster_name}.stacklight.server
148 params:
149 salt_master_host: ${_param:infra_config_deploy_address}
150 linux_system_codename: xenial
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000151 single_address: ${_param:stacklight_monitor_node03_address}
Ales Komarekc12dd412017-06-27 16:24:42 +0200152 keepalived_vip_priority: 102
153 mysql_cluster_role: slave
154 opencontrail_control_node01:
155 params:
156 rabbitmq_cluster_role: master
157 opencontrail_control_node02:
158 params:
159 rabbitmq_cluster_role: slave
160 opencontrail_control_node03:
161 params:
162 rabbitmq_cluster_role: slave