blob: 336a9d21360a77f1965d5310f09c7ee7b14724a9 [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>>
Adam Tenglerf16be662017-07-18 10:25:13 +0000122 openstack_gateway:
123 expression: <<node_hostname>>__startswith__gtw
124 node_class:
125 value_template:
126 - cluster.<<node_cluster>>.openstack.gateway
127 node_param:
128 tenant_address:
129 value_template: <<node_tenant_ip>>
130 external_address:
131 value_template: <<node_external_ip>>
132 cluster_param:
133 openstack_gateway_node01_address:
134 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +0000135 stacklight_monitor01:
136 expression: <<node_hostname>>__equals__mon01
137 cluster_param:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000138 stacklight_monitor_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000139 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +0000140 stacklight_monitor02:
141 expression: <<node_hostname>>__equals__mon02
142 cluster_param:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000143 stacklight_monitor_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000144 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +0000145 stacklight_monitor03:
146 expression: <<node_hostname>>__equals__mon03
147 cluster_param:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000148 stacklight_monitor_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000149 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +0200150 node:
151 openstack_control_node01:
152 classes:
153 - service.galera.master.cluster
154 params:
155 mysql_cluster_role: master
156 linux_system_codename: xenial
157 openstack_control_node02:
158 classes:
159 - service.galera.slave.cluster
160 params:
161 mysql_cluster_role: slave
162 linux_system_codename: xenial
163 openstack_control_node03:
164 classes:
165 - service.galera.slave.cluster
166 params:
167 mysql_cluster_role: slave
168 linux_system_codename: xenial
Ales Komarekc12dd412017-06-27 16:24:42 +0200169 stacklight_server_node01:
170 classes:
171 - system.influxdb.server.single
172 - system.influxdb.database.stacklight