blob: cf0a00fd44bfdbf488304712b331a4f7e3672575 [file] [log] [blame]
Marek Celoudbc643142017-04-07 15:02:38 +02001classes:
2- service.git.client
3- system.linux.system.single
4- system.linux.system.repo.mcp.salt
Elena Ezhovaf42731a2017-07-27 17:13:48 +04005- system.linux.system.repo.mcp.openstack
Marek Celoudbc643142017-04-07 15:02:38 +02006- system.openssh.client.lab
7- system.salt.master.api
8- system.salt.master.pkg
9- system.reclass.storage.salt
10- system.salt.minion.ca.salt_master
11- system.salt.minion.cert.proxy
12- system.sphinx.server.doc.reclass
13- system.keystone.client.single
Ildar Svetlov54ec4562017-07-03 15:25:10 +040014- system.keystone.client.service.aodh
Marek Celoudbc643142017-04-07 15:02:38 +020015- system.keystone.client.service.ceilometer
16- system.keystone.client.service.nova21
Marek Celoud4d274922017-04-07 15:52:07 +020017- system.keystone.client.service.glare
18- system.keystone.client.service.cinder3
Marek Celoudbc643142017-04-07 15:02:38 +020019- system.mysql.client.single
20- system.reclass.storage.system.openstack_control_cluster
Simon Pasquier41725422017-05-11 09:43:41 +020021- system.reclass.storage.system.stacklightv2_server_cluster
Marek Celoudbc643142017-04-07 15:02:38 +020022- cluster.virtual-mcp11-dvr.openstack.proxy
23- cluster.virtual-mcp11-dvr.stacklight.proxy
24- cluster.virtual-mcp11-dvr
25parameters:
26 _param:
27 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
28 reclass_data_revision: master
29 salt_master_environment_repository: "https://github.com/tcpcloud"
30 salt_master_environment_revision: master
31 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
32 reclass_config_master: 192.168.10.100
33 single_address: 172.16.10.100
34 salt_master_host: 127.0.0.1
35 salt_master_base_environment: prd
36 salt_minion_ca_host: ${linux:network:fqdn}
37 linux:
38 network:
39 interface:
40 ens4:
41 enabled: true
42 type: eth
Petr Jediný9b3a0ed2017-04-13 15:12:09 +020043 proto: static
44 address: ${_param:single_address}
45 netmask: 255.255.255.0
Marek Celoudbc643142017-04-07 15:02:38 +020046 nginx:
47 server:
48 site:
49 nginx_proxy_openstack_web:
50 proxy:
51 host: prx
52 nginx_proxy_openstack_api_heat_cfn:
53 enabled: false
Jiri Broulik432ae9c2017-08-17 10:24:23 +020054 salt:
55 master:
56 reactor:
57 reclass/minion/classify:
58 - salt://reclass/reactor/node_register.sls
Marek Celoudbc643142017-04-07 15:02:38 +020059 reclass:
60 storage:
Jiri Broulik432ae9c2017-08-17 10:24:23 +020061 class_mapping:
62 common_node:
63 expression: all
64 node_param:
65 single_address:
66 value_template: <<node_control_ip>>
67 linux_system_codename:
68 value_template: <<node_os>>
69 salt_master_host:
70 value_template: <<node_master_ip>>
71 infra_config:
72 expression: <<node_hostname>>__startswith__cfg
73 cluster_param:
74 infra_config_address:
75 value_template: <<node_control_ip>>
76 infra_config_deploy_address:
77 value_template: <<node_deploy_ip>>
78 cluster_domain:
79 value_template: <<node_domain>>
80 openstack_control01:
81 expression: <<node_hostname>>__equals__ctl01
82 cluster_param:
83 openstack_control_node01_address:
84 value_template: <<node_control_ip>>
85 openstack_control02:
86 expression: <<node_hostname>>__equals__ctl02
87 cluster_param:
88 openstack_control_node02_address:
89 value_template: <<node_control_ip>>
90 openstack_control03:
91 expression: <<node_hostname>>__equals__ctl03
92 cluster_param:
93 openstack_control_node03_address:
94 value_template: <<node_control_ip>>
95 openstack_compute:
96 expression: <<node_hostname>>__startswith__cmp
97 node_class:
98 value_template:
99 - cluster.<<node_cluster>>.openstack.compute
100 node_param:
101 tenant_address:
102 value_template: <<node_tenant_ip>>
103 external_address:
104 value_template: <<node_external_ip>>
105 openstack_gateway:
106 expression: <<node_hostname>>__startswith__gtw
107 node_class:
108 value_template:
109 - cluster.<<node_cluster>>.openstack.gateway
110 node_param:
111 tenant_address:
112 value_template: <<node_tenant_ip>>
113 external_address:
114 value_template: <<node_external_ip>>
115 cluster_param:
116 openstack_gateway_node01_address:
117 value_template: <<node_control_ip>>
118 stacklight_monitor_node01:
119 expression: <<node_hostname>>__equals__mon01
120 cluster_param:
121 stacklight_monitor_node03_address:
122 value_template: <<node_control_ip>>
123 stacklight_monitor_node02:
124 expression: <<node_hostname>>__equals__mon02
125 cluster_param:
126 stacklight_monitor_node03_address:
127 value_template: <<node_control_ip>>
128 stacklight_monitor_node03:
129 expression: <<node_hostname>>__equals__mon03
130 cluster_param:
131 stacklight_monitor_node03_address:
132 value_template: <<node_control_ip>>
133 openstack_dashboard:
134 expression: <<node_hostname>>__startswith__prx
135 node_class:
136 value_template:
137 - cluster.<<node_cluster>>.openstack.dashboard
138 - cluster.<<node_cluster>>.openstack.proxy
139 cluster_param:
140 openstack_proxy_node01_address:
141 value_template: <<node_control_ip>>
Marek Celoudbc643142017-04-07 15:02:38 +0200142 node:
143 openstack_control_node01:
144 classes:
145 - service.galera.master.cluster
146 params:
147 mysql_cluster_role: master
148 linux_system_codename: xenial
149 openstack_control_node02:
150 classes:
151 - service.galera.slave.cluster
152 params:
153 mysql_cluster_role: slave
154 linux_system_codename: xenial
155 openstack_control_node03:
156 classes:
157 - service.galera.slave.cluster
158 params:
159 mysql_cluster_role: slave
160 linux_system_codename: xenial
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200161 stacklight_server_node01:
Tatyana Leontovich3d9baab2017-04-12 15:43:39 +0300162 classes:
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200163 - system.influxdb.server.single
164 - system.influxdb.database.stacklight