blob: 547be16c971b333f29694d28d8bd813fa46e7359 [file] [log] [blame]
Jeepyb Userdd14e0b2017-02-28 15:19:32 +00001classes:
2- service.git.client
3- system.linux.system.single
4- system.linux.system.repo.tcp_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
12- system.keystone.client.single
13- system.keystone.client.service.ceilometer
14- system.keystone.client.service.nova21
15- system.mysql.client.single
16- system.reclass.storage.system.openstack_control_cluster
Jeepyb Userdd14e0b2017-02-28 15:19:32 +000017- system.reclass.storage.system.stacklight_server_cluster
Jiri Broulik26104ab2017-08-17 16:40:33 +020018- system.reclass.storage.system.openstack_compute_multi
19- system.reclass.storage.system.openstack_gateway_single
20- system.reclass.storage.system.openstack_dashboard_single
Jeepyb Userdd14e0b2017-02-28 15:19:32 +000021- cluster.virtual-mcp05-dvr.openstack.proxy
22- cluster.virtual-mcp05-dvr.stacklight.proxy
23- cluster.virtual-mcp05-dvr
24parameters:
25 _param:
Tomáš Kukrál2c7026a2017-03-08 18:19:53 +010026 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
Jeepyb Userdd14e0b2017-02-28 15:19:32 +000027 reclass_data_revision: master
28 salt_master_environment_repository: "https://github.com/tcpcloud"
29 salt_master_environment_revision: master
30 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
31 reclass_config_master: 192.168.10.100
32 single_address: 172.16.10.100
33 salt_master_host: 127.0.0.1
34 salt_master_base_environment: prd
35 salt_minion_ca_host: ${linux:network:fqdn}
36 linux:
37 network:
38 interface:
39 ens4:
40 enabled: true
41 type: eth
Petr Jediný9b3a0ed2017-04-13 15:12:09 +020042 proto: static
43 address: ${_param:single_address}
44 netmask: 255.255.255.0
Jeepyb Userdd14e0b2017-02-28 15:19:32 +000045 nginx:
46 server:
47 site:
48 nginx_proxy_openstack_web:
49 proxy:
50 host: prx
51 nginx_proxy_openstack_api_heat_cfn:
52 enabled: false
Jiri Broulik432ae9c2017-08-17 10:24:23 +020053 salt:
54 master:
55 reactor:
56 reclass/minion/classify:
57 - salt://reclass/reactor/node_register.sls
Jeepyb Userdd14e0b2017-02-28 15:19:32 +000058 reclass:
59 storage:
Jiri Broulik432ae9c2017-08-17 10:24:23 +020060 class_mapping:
61 common_node:
62 expression: all
63 node_param:
64 single_address:
65 value_template: <<node_control_ip>>
66 linux_system_codename:
67 value_template: <<node_os>>
68 salt_master_host:
69 value_template: <<node_master_ip>>
70 infra_config:
71 expression: <<node_hostname>>__startswith__cfg
72 cluster_param:
73 infra_config_address:
74 value_template: <<node_control_ip>>
75 infra_config_deploy_address:
76 value_template: <<node_deploy_ip>>
77 cluster_domain:
78 value_template: <<node_domain>>
79 openstack_control01:
80 expression: <<node_hostname>>__equals__ctl01
81 cluster_param:
82 openstack_control_node01_address:
83 value_template: <<node_control_ip>>
84 openstack_control02:
85 expression: <<node_hostname>>__equals__ctl02
86 cluster_param:
87 openstack_control_node02_address:
88 value_template: <<node_control_ip>>
89 openstack_control03:
90 expression: <<node_hostname>>__equals__ctl03
91 cluster_param:
92 openstack_control_node03_address:
93 value_template: <<node_control_ip>>
94 openstack_compute:
95 expression: <<node_hostname>>__startswith__cmp
96 node_class:
97 value_template:
98 - cluster.<<node_cluster>>.openstack.compute
99 node_param:
100 tenant_address:
101 value_template: <<node_tenant_ip>>
102 external_address:
103 value_template: <<node_external_ip>>
104 openstack_gateway:
105 expression: <<node_hostname>>__startswith__gtw
106 node_class:
107 value_template:
108 - cluster.<<node_cluster>>.openstack.gateway
109 node_param:
110 tenant_address:
111 value_template: <<node_tenant_ip>>
112 external_address:
113 value_template: <<node_external_ip>>
114 cluster_param:
115 openstack_gateway_node01_address:
116 value_template: <<node_control_ip>>
117 stacklight_monitor_node01:
118 expression: <<node_hostname>>__equals__mon01
119 cluster_param:
120 stacklight_monitor_node03_address:
121 value_template: <<node_control_ip>>
122 stacklight_monitor_node02:
123 expression: <<node_hostname>>__equals__mon02
124 cluster_param:
125 stacklight_monitor_node03_address:
126 value_template: <<node_control_ip>>
127 stacklight_monitor_node03:
128 expression: <<node_hostname>>__equals__mon03
129 cluster_param:
130 stacklight_monitor_node03_address:
131 value_template: <<node_control_ip>>
132 openstack_dashboard:
133 expression: <<node_hostname>>__startswith__prx
134 node_class:
135 value_template:
136 - cluster.<<node_cluster>>.openstack.dashboard
137 - cluster.<<node_cluster>>.openstack.proxy
138 cluster_param:
139 openstack_proxy_node01_address:
140 value_template: <<node_control_ip>>
Jeepyb Userdd14e0b2017-02-28 15:19:32 +0000141 node:
142 openstack_control_node01:
143 classes:
144 - service.galera.master.cluster
145 params:
146 mysql_cluster_role: master
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200147 linux_system_codename: xenial
Jeepyb Userdd14e0b2017-02-28 15:19:32 +0000148 openstack_control_node02:
149 classes:
150 - service.galera.slave.cluster
151 params:
152 mysql_cluster_role: slave
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200153 linux_system_codename: xenial
Jeepyb Userdd14e0b2017-02-28 15:19:32 +0000154 openstack_control_node03:
155 classes:
156 - service.galera.slave.cluster
157 params:
158 mysql_cluster_role: slave
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200159 linux_system_codename: xenial
Jeepyb Userdd14e0b2017-02-28 15:19:32 +0000160 stacklight_server_node01:
161 classes:
162 - system.influxdb.server.single
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200163 - system.influxdb.database.stacklight
Jiri Broulikbf0a8af2017-08-22 13:38:47 +0200164 openstack_compute_node01:
165 params:
166 single_address: 172.16.10.105
167 tenant_address: 10.1.0.105
168 external_address: 10.16.0.105
169 openstack_compute_node02:
170 params:
171 single_address: 172.16.10.106
172 tenant_address: 10.1.0.106
173 external_address: 10.16.0.106