blob: 71c8aa98e12766e517572edbf771866a9d4109af [file] [log] [blame]
Ales Komarekc12dd412017-06-27 16:24:42 +02001classes:
2- system.linux.system.repo.ubuntu
3- system.openssh.client.lab
4- system.salt.master.pkg
5- system.salt.minion.ca.salt_master
6- system.salt.master.api
7- system.reclass.storage.salt
8- system.salt.minion.cert.k8s_server
9- system.reclass.storage.system.kubernetes_control_cluster
10- system.reclass.storage.system.opencontrail_control_cluster
Adam Tengler75c2f952017-07-04 17:37:15 +000011- cluster.sl_k8s_contrail
Ales Komarekc12dd412017-06-27 16:24:42 +020012parameters:
13 _param:
14 salt_master_base_environment: prd
15 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab"
16 reclass_data_revision: master
17 reclass_config_master: ${_param:infra_config_deploy_address}
18 single_address: ${_param:infra_config_address}
19 linux_system_codename: xenial
20 salt_api_password_hash: "$6$WV0P1shnoDh2gI/Z$22/Bcd7ffMv0jDlFpT63cAU4PiXHz9pjXwngToKwqAsgoeK4HNR3PiKaushjxp3JsQ8hNoJmAC6TxzVqfV8WH/"
21 salt_master_host: ${_param:infra_config_deploy_address}
Adam Tengler0963f862017-07-04 15:46:06 +000022 salt:
23 master:
24 reactor:
25 reclass/minion/classify:
26 - salt://reclass/reactor/node_register.sls
Ales Komarekc12dd412017-06-27 16:24:42 +020027 reclass:
28 storage:
Adam Tengler0963f862017-07-04 15:46:06 +000029 class_mapping:
30 common_node:
31 expression: all
32 node_param:
33 single_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000034 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000035 linux_system_codename:
36 value_template: <<node_os>>
37 salt_master_host:
38 value_template: <<node_master_ip>>
39 infra_config:
40 expression: <<node_hostname>>__startswith__cfg
41 cluster_param:
42 infra_config_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000043 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000044 infra_config_deploy_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000045 value_template: <<node_deploy_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000046 cluster_domain:
47 value_template: <<node_domain>>
Adam Tengler0963f862017-07-04 15:46:06 +000048 kubernetes_control01:
49 expression: <<node_hostname>>__equals__ctl01
50 cluster_param:
51 kubernetes_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000052 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000053 kubernetes_control02:
54 expression: <<node_hostname>>__equals__ctl02
55 cluster_param:
56 kubernetes_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000057 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000058 kubernetes_control03:
59 expression: <<node_hostname>>__equals__ctl03
60 cluster_param:
61 kubernetes_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000062 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000063 opencontrail_control01:
64 expression: <<node_hostname>>__equals__ntw01
65 cluster_param:
66 opencontrail_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000067 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000068 opencontrail_control02:
69 expression: <<node_hostname>>__equals__ntw02
70 cluster_param:
71 opencontrail_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000072 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000073 opencontrail_control03:
74 expression: <<node_hostname>>__equals__ntw03
75 cluster_param:
76 opencontrail_control_node03_address:
77 value_template: <<node_ip>
78 kubernetes_proxy:
79 expression: <<node_hostname>>__equals__prx01
80 cluster_param:
81 kubernetes_proxy_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000082 value_template: <<node_control_ip>>
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +000083 stacklight_monitor_node01:
Adam Tengler0963f862017-07-04 15:46:06 +000084 expression: <<node_hostname>>__equals__mon01
85 cluster_param:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +000086 stacklight_monitor_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000087 value_template: <<node_control_ip>>
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +000088 stacklight_monitor_node02:
Adam Tengler0963f862017-07-04 15:46:06 +000089 expression: <<node_hostname>>__equals__mon02
90 cluster_param:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +000091 stacklight_monitor_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000092 value_template: <<node_control_ip>>
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +000093 stacklight_monitor_node03:
Adam Tengler0963f862017-07-04 15:46:06 +000094 expression: <<node_hostname>>__equals__mon03
95 cluster_param:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +000096 stacklight_monitor_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000097 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000098 kubernetes_compute:
99 expression: <<node_hostname>>__startswith__cmp
100 node_class:
101 value_template:
102 - cluster.<<node_cluster>>.kubernetes.compute
Ales Komarekc12dd412017-06-27 16:24:42 +0200103 prx_node:
104 name: ${_param:kubernetes_proxy_node01_hostname}
105 domain: ${_param:cluster_domain}
106 classes:
107 - cluster.${_param:cluster_name}.stacklight.proxy
108 params:
109 salt_master_host: ${_param:infra_config_deploy_address}
110 linux_system_codename: xenial
111 single_address: ${_param:kubernetes_proxy_node01_address}
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000112 stacklight_monitor_node01:
113 name: ${_param:stacklight_monitor_node01_hostname}
Ales Komarekc12dd412017-06-27 16:24:42 +0200114 domain: ${_param:cluster_domain}
115 classes:
116 - service.galera.master.cluster
117 - system.docker.swarm.master
118 - cluster.${_param:cluster_name}.stacklight.client
119 - cluster.${_param:cluster_name}.stacklight.server
120 params:
121 salt_master_host: ${_param:infra_config_deploy_address}
122 linux_system_codename: xenial
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000123 single_address: ${_param:stacklight_monitor_node01_address}
Ales Komarekc12dd412017-06-27 16:24:42 +0200124 keepalived_vip_priority: 100
125 mysql_cluster_role: master
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000126 stacklight_monitor_node02:
127 name: ${_param:stacklight_monitor_node02_hostname}
Ales Komarekc12dd412017-06-27 16:24:42 +0200128 domain: ${_param:cluster_domain}
129 classes:
130 - service.galera.slave.cluster
131 - system.docker.swarm.manager
132 - cluster.${_param:cluster_name}.stacklight.server
133 params:
134 salt_master_host: ${_param:infra_config_deploy_address}
135 linux_system_codename: xenial
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000136 single_address: ${_param:stacklight_monitor_node02_address}
Ales Komarekc12dd412017-06-27 16:24:42 +0200137 keepalived_vip_priority: 101
138 mysql_cluster_role: slave
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000139 stacklight_monitor_node03:
140 name: ${_param:stacklight_monitor_node03_hostname}
Ales Komarekc12dd412017-06-27 16:24:42 +0200141 domain: ${_param:cluster_domain}
142 classes:
143 - service.galera.slave.cluster
144 - system.docker.swarm.manager
145 - cluster.${_param:cluster_name}.stacklight.server
146 params:
147 salt_master_host: ${_param:infra_config_deploy_address}
148 linux_system_codename: xenial
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000149 single_address: ${_param:stacklight_monitor_node03_address}
Ales Komarekc12dd412017-06-27 16:24:42 +0200150 keepalived_vip_priority: 102
151 mysql_cluster_role: slave
152 opencontrail_control_node01:
153 params:
154 rabbitmq_cluster_role: master
155 opencontrail_control_node02:
156 params:
157 rabbitmq_cluster_role: slave
158 opencontrail_control_node03:
159 params:
160 rabbitmq_cluster_role: slave