blob: 9108b97832e438183bdce94582cc3431a145f294 [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.salt.minion.cert.k8s_server
8- system.mysql.client
9- system.mysql.client.database.grafana
10- system.reclass.storage.salt
11- system.reclass.storage.system.kubernetes_control_cluster
Adam Tengler99446832017-07-11 12:43:05 +000012- cluster.sl_k8s_calico.stacklight.proxy
Ales Komarekc12dd412017-06-27 16:24:42 +020013- cluster.sl_k8s_calico
14parameters:
15 _param:
16 salt_master_base_environment: prd
17 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab.git"
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: 127.0.0.1
24 salt:
25 master:
26 reactor:
27 reclass/minion/classify:
28 - salt://reclass/reactor/node_register.sls
29 reclass:
30 storage:
31 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>>
Ales Komarekc12dd412017-06-27 16:24:42 +020037 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>>
Ales Komarekc12dd412017-06-27 16:24:42 +020046 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>>
Ales Komarekc12dd412017-06-27 16:24:42 +020050 infra_proxy:
51 expression: <<node_hostname>>__startswith__prx
52 node_class:
53 value_template:
54 - cluster.<<node_cluster>>.stacklight.proxy
55 kubernetes_control01:
56 expression: <<node_hostname>>__equals__ctl01
57 cluster_param:
58 kubernetes_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000059 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020060 kubernetes_control02:
61 expression: <<node_hostname>>__equals__ctl02
62 cluster_param:
63 kubernetes_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000064 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020065 kubernetes_control03:
66 expression: <<node_hostname>>__equals__ctl03
67 cluster_param:
68 kubernetes_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000069 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020070 kubernetes_compute:
71 expression: <<node_hostname>>__startswith__cmp
72 node_class:
73 value_template:
74 - cluster.<<node_cluster>>.kubernetes.compute
75 stacklight_monitor01:
76 expression: <<node_hostname>>__equals__mon01
77 cluster_param:
78 stacklight_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000079 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020080 stacklight_monitor02:
81 expression: <<node_hostname>>__equals__mon02
82 cluster_param:
83 stacklight_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000084 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020085 stacklight_monitor03:
86 expression: <<node_hostname>>__equals__mon03
87 cluster_param:
88 stacklight_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000089 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020090 node:
Adam Tengler99446832017-07-11 12:43:05 +000091 stacklight_node01:
92 name: ${_param:stacklight_node01_hostname}
Ales Komarekc12dd412017-06-27 16:24:42 +020093 domain: ${_param:cluster_domain}
94 classes:
Adam Tengler99446832017-07-11 12:43:05 +000095 - service.galera.master.cluster
96 - system.docker.swarm.master
97 - cluster.${_param:cluster_name}.stacklight.client
98 - cluster.${_param:cluster_name}.stacklight.server
Ales Komarekc12dd412017-06-27 16:24:42 +020099 params:
100 salt_master_host: ${_param:infra_config_deploy_address}
101 linux_system_codename: xenial
Adam Tengler99446832017-07-11 12:43:05 +0000102 single_address: ${_param:stacklight_node01_address}
103 keepalived_vip_priority: 100
104 mysql_cluster_role: master
105 stacklight_node02:
106 name: ${_param:stacklight_node02_hostname}
107 domain: ${_param:cluster_domain}
108 classes:
109 - service.galera.slave.cluster
110 - system.docker.swarm.manager
111 - cluster.${_param:cluster_name}.stacklight.server
112 params:
113 salt_master_host: ${_param:infra_config_deploy_address}
114 linux_system_codename: xenial
115 single_address: ${_param:stacklight_node02_address}
116 keepalived_vip_priority: 101
117 mysql_cluster_role: slave
118 stacklight_node03:
119 name: ${_param:stacklight_node03_hostname}
120 domain: ${_param:cluster_domain}
121 classes:
122 - service.galera.slave.cluster
123 - system.docker.swarm.manager
124 - cluster.${_param:cluster_name}.stacklight.server
125 params:
126 salt_master_host: ${_param:infra_config_deploy_address}
127 linux_system_codename: xenial
128 single_address: ${_param:stacklight_node03_address}
129 keepalived_vip_priority: 102
130 mysql_cluster_role: slave
131