blob: 6477821c676f1a339185a74b5c85105158a0107d [file] [log] [blame]
Ales Komarekc12dd412017-06-27 16:24:42 +02001classes:
2- service.git.client
Martin Polreich1ee2e092017-08-10 16:06:57 +02003- system.docker.client
4- system.docker.host
Ales Komarekc12dd412017-06-27 16:24:42 +02005- system.linux.system.single
6- system.linux.system.repo.mcp.salt
7- system.openssh.client.lab
8- system.salt.master.api
9- system.salt.master.pkg
10- system.reclass.storage.salt
11- system.salt.minion.ca.salt_master
12- system.salt.minion.cert.proxy
13- system.sphinx.server.doc.reclass
Petr Jediný3114a392017-08-02 15:21:09 +020014- system.keystone.client.core
15- system.keystone.client.service.aodh
16- system.keystone.client.service.ceilometer
17- system.keystone.client.service.designate
18- system.keystone.client.service.cinder
19- system.keystone.client.service.cinder2
Ales Komarekc12dd412017-06-27 16:24:42 +020020- system.keystone.client.service.cinder3
Petr Jediný3114a392017-08-02 15:21:09 +020021- system.keystone.client.service.glance
22- system.keystone.client.service.glare
23- system.keystone.client.service.heat
24- system.keystone.client.service.heat-cfn
25- system.keystone.client.service.keystone
26- system.keystone.client.service.neutron
27- system.keystone.client.service.nova-ec2
28- system.keystone.client.service.nova21
29- system.keystone.client.service.nova-placement
Adam Tengler2b36a762017-07-13 14:34:47 +000030- system.mysql.client
31- system.mysql.client.database.cinder
32- system.mysql.client.database.glance
33- system.mysql.client.database.heat
34- system.mysql.client.database.keystone
35- system.mysql.client.database.nova
36- system.mysql.client.database.nova_api
37- system.mysql.client.database.neutron
Ales Komarekc12dd412017-06-27 16:24:42 +020038- system.reclass.storage.system.openstack_control_cluster
Ales Komarekc12dd412017-06-27 16:24:42 +020039- system.reclass.storage.system.stacklight_server_cluster
Petr Michalecf05e3ea2017-08-21 17:33:16 +020040- cluster.sl-os-ovs.openstack.proxy
41- cluster.sl-os-ovs.stacklight.proxy
42- cluster.sl-os-ovs.openstack.dashboard
43- cluster.sl-os-ovs
Ales Komarekc12dd412017-06-27 16:24:42 +020044parameters:
45 _param:
46 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
47 reclass_data_revision: master
48 salt_master_environment_repository: "https://github.com/tcpcloud"
49 salt_master_environment_revision: master
Adam Tengler250d5bb2017-06-29 15:59:02 +000050 reclass_config_master: ${_param:infra_config_deploy_address}
51 single_address: ${_param:infra_config_address}
Ales Komarekc12dd412017-06-27 16:24:42 +020052 salt_master_host: 127.0.0.1
53 salt_master_base_environment: prd
54 salt_minion_ca_host: ${linux:network:fqdn}
55 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
56 linux:
57 network:
58 interface:
59 ens4:
60 enabled: true
61 type: eth
62 proto: static
63 address: ${_param:single_address}
64 netmask: 255.255.255.0
65 nginx:
66 server:
67 site:
68 nginx_proxy_openstack_web:
69 proxy:
70 host: prx
71 nginx_proxy_openstack_api_heat_cfn:
72 enabled: false
Adam Tengler250d5bb2017-06-29 15:59:02 +000073 salt:
74 master:
75 reactor:
76 reclass/minion/classify:
77 - salt://reclass/reactor/node_register.sls
Ales Komarekc12dd412017-06-27 16:24:42 +020078 reclass:
79 storage:
Adam Tengler250d5bb2017-06-29 15:59:02 +000080 class_mapping:
81 common_node:
82 expression: all
83 node_param:
84 single_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000085 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +000086 linux_system_codename:
87 value_template: <<node_os>>
88 salt_master_host:
89 value_template: <<node_master_ip>>
90 infra_config:
91 expression: <<node_hostname>>__startswith__cfg
92 cluster_param:
93 infra_config_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000094 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +000095 infra_config_deploy_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000096 value_template: <<node_deploy_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000097 cluster_domain:
98 value_template: <<node_domain>>
Adam Tengler250d5bb2017-06-29 15:59:02 +000099 openstack_control01:
100 expression: <<node_hostname>>__equals__ctl01
101 cluster_param:
102 openstack_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000103 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +0000104 openstack_control02:
105 expression: <<node_hostname>>__equals__ctl02
106 cluster_param:
107 openstack_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000108 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +0000109 openstack_control03:
110 expression: <<node_hostname>>__equals__ctl03
111 cluster_param:
112 openstack_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000113 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +0000114 openstack_compute:
115 expression: <<node_hostname>>__startswith__cmp
116 node_class:
117 value_template:
118 - cluster.<<node_cluster>>.openstack.compute
Adam Tengler8b254412017-06-29 18:30:32 +0000119 node_param:
120 tenant_address:
121 value_template: <<node_tenant_ip>>
122 external_address:
123 value_template: <<node_external_ip>>
Martin Polreich253cedb2017-08-10 12:46:22 +0200124 stacklight_monitor_node01:
Adam Tengler250d5bb2017-06-29 15:59:02 +0000125 expression: <<node_hostname>>__equals__mon01
126 cluster_param:
Martin Polreichcaffe5a2017-08-23 12:07:01 +0200127 stacklight_monitor_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000128 value_template: <<node_control_ip>>
Martin Polreich253cedb2017-08-10 12:46:22 +0200129 stacklight_monitor_node02:
Adam Tengler250d5bb2017-06-29 15:59:02 +0000130 expression: <<node_hostname>>__equals__mon02
131 cluster_param:
Martin Polreichcaffe5a2017-08-23 12:07:01 +0200132 stacklight_monitor_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000133 value_template: <<node_control_ip>>
Martin Polreich253cedb2017-08-10 12:46:22 +0200134 stacklight_monitor_node03:
Adam Tengler250d5bb2017-06-29 15:59:02 +0000135 expression: <<node_hostname>>__equals__mon03
136 cluster_param:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000137 stacklight_monitor_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000138 value_template: <<node_control_ip>>
Martin Polreich253cedb2017-08-10 12:46:22 +0200139 prx_node:
140 name: ${_param:openstack_proxy_node01_hostname}
141 domain: ${_param:cluster_domain}
142 classes:
143 - cluster.${_param:cluster_name}.stacklight.proxy
144 params:
145 salt_master_host: ${_param:infra_config_deploy_address}
146 linux_system_codename: xenial
147 single_address: ${_param:openstack_proxy_node01_address}
Adam Tengler106a9b72017-09-27 14:21:30 +0200148 stacklight_server_node01:
Martin Polreich253cedb2017-08-10 12:46:22 +0200149 name: ${_param:stacklight_monitor_node01_hostname}
150 domain: ${_param:cluster_domain}
Ales Komarekc12dd412017-06-27 16:24:42 +0200151 classes:
152 - service.galera.master.cluster
Martin Polreich253cedb2017-08-10 12:46:22 +0200153 - system.docker.swarm.master
154 - cluster.${_param:cluster_name}.stacklight.client
155 - cluster.${_param:cluster_name}.stacklight.server
Ales Komarekc12dd412017-06-27 16:24:42 +0200156 params:
Martin Polreich253cedb2017-08-10 12:46:22 +0200157 salt_master_host: ${_param:infra_config_deploy_address}
158 linux_system_codename: xenial
159 single_address: ${_param:stacklight_monitor_node01_address}
160 keepalived_vip_priority: 100
Ales Komarekc12dd412017-06-27 16:24:42 +0200161 mysql_cluster_role: master
Adam Tengler106a9b72017-09-27 14:21:30 +0200162 stacklight_server_node02:
Martin Polreich253cedb2017-08-10 12:46:22 +0200163 name: ${_param:stacklight_monitor_node02_hostname}
164 domain: ${_param:cluster_domain}
Ales Komarekc12dd412017-06-27 16:24:42 +0200165 classes:
166 - service.galera.slave.cluster
Martin Polreich253cedb2017-08-10 12:46:22 +0200167 - system.docker.swarm.manager
168 - cluster.${_param:cluster_name}.stacklight.server
Ales Komarekc12dd412017-06-27 16:24:42 +0200169 params:
Martin Polreich253cedb2017-08-10 12:46:22 +0200170 salt_master_host: ${_param:infra_config_deploy_address}
Ales Komarekc12dd412017-06-27 16:24:42 +0200171 linux_system_codename: xenial
Martin Polreich253cedb2017-08-10 12:46:22 +0200172 single_address: ${_param:stacklight_monitor_node02_address}
173 keepalived_vip_priority: 101
174 mysql_cluster_role: slave
Adam Tengler106a9b72017-09-27 14:21:30 +0200175 stacklight_server_node03:
Martin Polreich253cedb2017-08-10 12:46:22 +0200176 name: ${_param:stacklight_monitor_node03_hostname}
177 domain: ${_param:cluster_domain}
Ales Komarekc12dd412017-06-27 16:24:42 +0200178 classes:
179 - service.galera.slave.cluster
Martin Polreich253cedb2017-08-10 12:46:22 +0200180 - system.docker.swarm.manager
181 - cluster.${_param:cluster_name}.stacklight.server
Ales Komarekc12dd412017-06-27 16:24:42 +0200182 params:
Martin Polreich253cedb2017-08-10 12:46:22 +0200183 salt_master_host: ${_param:infra_config_deploy_address}
Ales Komarekc12dd412017-06-27 16:24:42 +0200184 linux_system_codename: xenial
Martin Polreich253cedb2017-08-10 12:46:22 +0200185 single_address: ${_param:stacklight_monitor_node03_address}
186 keepalived_vip_priority: 102
187 mysql_cluster_role: slave
Adam Tengler106a9b72017-09-27 14:21:30 +0200188