blob: cac737ab5b504fdee6dcc8077eab2716fa35d103 [file] [log] [blame]
Ales Komarekc12dd412017-06-27 16:24:42 +02001classes:
2- service.git.client
3- system.linux.system.single
4- system.linux.system.repo.mcp.salt
5- system.openssh.client.lab
6- system.salt.master.api
7- system.salt.master.pkg
8- system.reclass.storage.salt
9- system.salt.minion.ca.salt_master
10- system.salt.minion.cert.proxy
11- system.sphinx.server.doc.reclass
Petr Jediný3114a392017-08-02 15:21:09 +020012- system.keystone.client.core
13- system.keystone.client.service.aodh
14- system.keystone.client.service.ceilometer
15- system.keystone.client.service.designate
16- system.keystone.client.service.cinder
17- system.keystone.client.service.cinder2
Ales Komarekc12dd412017-06-27 16:24:42 +020018- system.keystone.client.service.cinder3
Petr Jediný3114a392017-08-02 15:21:09 +020019- system.keystone.client.service.glance
20- system.keystone.client.service.glare
21- system.keystone.client.service.heat
22- system.keystone.client.service.heat-cfn
23- system.keystone.client.service.keystone
24- system.keystone.client.service.neutron
25- system.keystone.client.service.nova-ec2
26- system.keystone.client.service.nova21
27- system.keystone.client.service.nova-placement
Adam Tengler2b36a762017-07-13 14:34:47 +000028- system.mysql.client
29- system.mysql.client.database.cinder
30- system.mysql.client.database.glance
31- system.mysql.client.database.heat
32- system.mysql.client.database.keystone
33- system.mysql.client.database.nova
34- system.mysql.client.database.nova_api
35- system.mysql.client.database.neutron
Ales Komarekc12dd412017-06-27 16:24:42 +020036- system.reclass.storage.system.openstack_control_cluster
Ales Komarekc12dd412017-06-27 16:24:42 +020037- system.reclass.storage.system.stacklight_server_cluster
38- cluster.sl_os_ovs.openstack.proxy
39- cluster.sl_os_ovs.stacklight.proxy
Adam Tengler0c624442017-07-04 13:25:36 +000040- cluster.sl_os_ovs.openstack.dashboard
Ales Komarekc12dd412017-06-27 16:24:42 +020041- cluster.sl_os_ovs
42parameters:
43 _param:
44 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
45 reclass_data_revision: master
46 salt_master_environment_repository: "https://github.com/tcpcloud"
47 salt_master_environment_revision: master
Adam Tengler250d5bb2017-06-29 15:59:02 +000048 reclass_config_master: ${_param:infra_config_deploy_address}
49 single_address: ${_param:infra_config_address}
Ales Komarekc12dd412017-06-27 16:24:42 +020050 salt_master_host: 127.0.0.1
51 salt_master_base_environment: prd
52 salt_minion_ca_host: ${linux:network:fqdn}
53 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
54 linux:
55 network:
56 interface:
57 ens4:
58 enabled: true
59 type: eth
60 proto: static
61 address: ${_param:single_address}
62 netmask: 255.255.255.0
63 nginx:
64 server:
65 site:
66 nginx_proxy_openstack_web:
67 proxy:
68 host: prx
69 nginx_proxy_openstack_api_heat_cfn:
70 enabled: false
Adam Tengler250d5bb2017-06-29 15:59:02 +000071 salt:
72 master:
73 reactor:
74 reclass/minion/classify:
75 - salt://reclass/reactor/node_register.sls
Ales Komarekc12dd412017-06-27 16:24:42 +020076 reclass:
77 storage:
Adam Tengler250d5bb2017-06-29 15:59:02 +000078 class_mapping:
79 common_node:
80 expression: all
81 node_param:
82 single_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000083 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +000084 linux_system_codename:
85 value_template: <<node_os>>
86 salt_master_host:
87 value_template: <<node_master_ip>>
88 infra_config:
89 expression: <<node_hostname>>__startswith__cfg
90 cluster_param:
91 infra_config_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000092 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +000093 infra_config_deploy_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000094 value_template: <<node_deploy_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000095 cluster_domain:
96 value_template: <<node_domain>>
Adam Tengler250d5bb2017-06-29 15:59:02 +000097 openstack_control01:
98 expression: <<node_hostname>>__equals__ctl01
99 cluster_param:
100 openstack_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000101 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +0000102 openstack_control02:
103 expression: <<node_hostname>>__equals__ctl02
104 cluster_param:
105 openstack_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000106 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +0000107 openstack_control03:
108 expression: <<node_hostname>>__equals__ctl03
109 cluster_param:
110 openstack_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000111 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +0000112 openstack_compute:
113 expression: <<node_hostname>>__startswith__cmp
114 node_class:
115 value_template:
116 - cluster.<<node_cluster>>.openstack.compute
Adam Tengler8b254412017-06-29 18:30:32 +0000117 node_param:
118 tenant_address:
119 value_template: <<node_tenant_ip>>
120 external_address:
121 value_template: <<node_external_ip>>
Martin Polreich253cedb2017-08-10 12:46:22 +0200122 stacklight_monitor_node01:
Adam Tengler250d5bb2017-06-29 15:59:02 +0000123 expression: <<node_hostname>>__equals__mon01
124 cluster_param:
Martin Polreich253cedb2017-08-10 12:46:22 +0200125 stacklight_monitor_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000126 value_template: <<node_control_ip>>
Martin Polreich253cedb2017-08-10 12:46:22 +0200127 stacklight_monitor_node02:
Adam Tengler250d5bb2017-06-29 15:59:02 +0000128 expression: <<node_hostname>>__equals__mon02
129 cluster_param:
Martin Polreich253cedb2017-08-10 12:46:22 +0200130 stacklight_monitor_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000131 value_template: <<node_control_ip>>
Martin Polreich253cedb2017-08-10 12:46:22 +0200132 stacklight_monitor_node03:
Adam Tengler250d5bb2017-06-29 15:59:02 +0000133 expression: <<node_hostname>>__equals__mon03
134 cluster_param:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000135 stacklight_monitor_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000136 value_template: <<node_control_ip>>
Martin Polreich253cedb2017-08-10 12:46:22 +0200137 prx_node:
138 name: ${_param:openstack_proxy_node01_hostname}
139 domain: ${_param:cluster_domain}
140 classes:
141 - cluster.${_param:cluster_name}.stacklight.proxy
142 params:
143 salt_master_host: ${_param:infra_config_deploy_address}
144 linux_system_codename: xenial
145 single_address: ${_param:openstack_proxy_node01_address}
146 stacklight_monitor_node01:
147 name: ${_param:stacklight_monitor_node01_hostname}
148 domain: ${_param:cluster_domain}
Ales Komarekc12dd412017-06-27 16:24:42 +0200149 classes:
150 - service.galera.master.cluster
Martin Polreich253cedb2017-08-10 12:46:22 +0200151 - system.docker.swarm.master
152 - cluster.${_param:cluster_name}.stacklight.client
153 - cluster.${_param:cluster_name}.stacklight.server
Ales Komarekc12dd412017-06-27 16:24:42 +0200154 params:
Martin Polreich253cedb2017-08-10 12:46:22 +0200155 salt_master_host: ${_param:infra_config_deploy_address}
156 linux_system_codename: xenial
157 single_address: ${_param:stacklight_monitor_node01_address}
158 keepalived_vip_priority: 100
Ales Komarekc12dd412017-06-27 16:24:42 +0200159 mysql_cluster_role: master
Martin Polreich253cedb2017-08-10 12:46:22 +0200160 stacklight_monitor_node02:
161 name: ${_param:stacklight_monitor_node02_hostname}
162 domain: ${_param:cluster_domain}
Ales Komarekc12dd412017-06-27 16:24:42 +0200163 classes:
164 - service.galera.slave.cluster
Martin Polreich253cedb2017-08-10 12:46:22 +0200165 - system.docker.swarm.manager
166 - cluster.${_param:cluster_name}.stacklight.server
Ales Komarekc12dd412017-06-27 16:24:42 +0200167 params:
Martin Polreich253cedb2017-08-10 12:46:22 +0200168 salt_master_host: ${_param:infra_config_deploy_address}
Ales Komarekc12dd412017-06-27 16:24:42 +0200169 linux_system_codename: xenial
Martin Polreich253cedb2017-08-10 12:46:22 +0200170 single_address: ${_param:stacklight_monitor_node02_address}
171 keepalived_vip_priority: 101
172 mysql_cluster_role: slave
173 stacklight_monitor_node03:
174 name: ${_param:stacklight_monitor_node03_hostname}
175 domain: ${_param:cluster_domain}
Ales Komarekc12dd412017-06-27 16:24:42 +0200176 classes:
177 - service.galera.slave.cluster
Martin Polreich253cedb2017-08-10 12:46:22 +0200178 - system.docker.swarm.manager
179 - cluster.${_param:cluster_name}.stacklight.server
Ales Komarekc12dd412017-06-27 16:24:42 +0200180 params:
Martin Polreich253cedb2017-08-10 12:46:22 +0200181 salt_master_host: ${_param:infra_config_deploy_address}
Ales Komarekc12dd412017-06-27 16:24:42 +0200182 linux_system_codename: xenial
Martin Polreich253cedb2017-08-10 12:46:22 +0200183 single_address: ${_param:stacklight_monitor_node03_address}
184 keepalived_vip_priority: 102
185 mysql_cluster_role: slave