blob: ef2de4264f39c1b8a778a13cb597aa21ca9b787b [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
18- cluster.virtual-mcp05-ovs.openstack.proxy
19- cluster.virtual-mcp05-ovs.stacklight.proxy
20- cluster.virtual-mcp05-ovs
21parameters:
22 _param:
Tomáš Kukrál2c7026a2017-03-08 18:19:53 +010023 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
Jeepyb Userdd14e0b2017-02-28 15:19:32 +000024 reclass_data_revision: master
25 salt_master_environment_repository: "https://github.com/tcpcloud"
26 salt_master_environment_revision: master
27 reclass_config_master: 192.168.10.100
28 single_address: 172.16.10.100
29 salt_master_host: 127.0.0.1
30 salt_master_base_environment: prd
31 salt_minion_ca_host: ${linux:network:fqdn}
32 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
33 linux:
34 network:
35 interface:
36 ens4:
37 enabled: true
38 type: eth
Petr Jediný9b3a0ed2017-04-13 15:12:09 +020039 proto: static
40 address: ${_param:single_address}
41 netmask: 255.255.255.0
Jeepyb Userdd14e0b2017-02-28 15:19:32 +000042 nginx:
43 server:
44 site:
45 nginx_proxy_openstack_web:
46 proxy:
47 host: prx
48 nginx_proxy_openstack_api_heat_cfn:
49 enabled: false
Jiri Broulik432ae9c2017-08-17 10:24:23 +020050 salt:
51 master:
52 reactor:
53 reclass/minion/classify:
54 - salt://reclass/reactor/node_register.sls
Jeepyb Userdd14e0b2017-02-28 15:19:32 +000055 reclass:
56 storage:
Jiri Broulik432ae9c2017-08-17 10:24:23 +020057 class_mapping:
58 common_node:
59 expression: all
60 node_param:
61 single_address:
62 value_template: <<node_control_ip>>
63 linux_system_codename:
64 value_template: <<node_os>>
65 salt_master_host:
66 value_template: <<node_master_ip>>
67 infra_config:
68 expression: <<node_hostname>>__startswith__cfg
69 cluster_param:
70 infra_config_address:
71 value_template: <<node_control_ip>>
72 infra_config_deploy_address:
73 value_template: <<node_deploy_ip>>
74 cluster_domain:
75 value_template: <<node_domain>>
76 openstack_control01:
77 expression: <<node_hostname>>__equals__ctl01
78 cluster_param:
79 openstack_control_node01_address:
80 value_template: <<node_control_ip>>
81 openstack_control02:
82 expression: <<node_hostname>>__equals__ctl02
83 cluster_param:
84 openstack_control_node02_address:
85 value_template: <<node_control_ip>>
86 openstack_control03:
87 expression: <<node_hostname>>__equals__ctl03
88 cluster_param:
89 openstack_control_node03_address:
90 value_template: <<node_control_ip>>
91 openstack_compute:
92 expression: <<node_hostname>>__startswith__cmp
93 node_class:
94 value_template:
95 - cluster.<<node_cluster>>.openstack.compute
96 node_param:
97 tenant_address:
98 value_template: <<node_tenant_ip>>
99 external_address:
100 value_template: <<node_external_ip>>
101 openstack_gateway:
102 expression: <<node_hostname>>__startswith__gtw
103 node_class:
104 value_template:
105 - cluster.<<node_cluster>>.openstack.gateway
106 node_param:
107 tenant_address:
108 value_template: <<node_tenant_ip>>
109 external_address:
110 value_template: <<node_external_ip>>
111 cluster_param:
112 openstack_gateway_node01_address:
113 value_template: <<node_control_ip>>
114 stacklight_monitor_node01:
115 expression: <<node_hostname>>__equals__mon01
116 cluster_param:
117 stacklight_monitor_node03_address:
118 value_template: <<node_control_ip>>
119 stacklight_monitor_node02:
120 expression: <<node_hostname>>__equals__mon02
121 cluster_param:
122 stacklight_monitor_node03_address:
123 value_template: <<node_control_ip>>
124 stacklight_monitor_node03:
125 expression: <<node_hostname>>__equals__mon03
126 cluster_param:
127 stacklight_monitor_node03_address:
128 value_template: <<node_control_ip>>
129 openstack_dashboard:
130 expression: <<node_hostname>>__startswith__prx
131 node_class:
132 value_template:
133 - cluster.<<node_cluster>>.openstack.dashboard
134 - cluster.<<node_cluster>>.openstack.proxy
135 cluster_param:
136 openstack_proxy_node01_address:
137 value_template: <<node_control_ip>>
Jeepyb Userdd14e0b2017-02-28 15:19:32 +0000138 node:
139 openstack_control_node01:
140 classes:
141 - service.galera.master.cluster
142 params:
143 mysql_cluster_role: master
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200144 linux_system_codename: xenial
Jeepyb Userdd14e0b2017-02-28 15:19:32 +0000145 openstack_control_node02:
146 classes:
147 - service.galera.slave.cluster
148 params:
149 mysql_cluster_role: slave
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200150 linux_system_codename: xenial
Jeepyb Userdd14e0b2017-02-28 15:19:32 +0000151 openstack_control_node03:
152 classes:
153 - service.galera.slave.cluster
154 params:
155 mysql_cluster_role: slave
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200156 linux_system_codename: xenial
Jeepyb Userdd14e0b2017-02-28 15:19:32 +0000157 stacklight_server_node01:
158 classes:
159 - system.influxdb.server.single
Jiri Broulikbf0a8af2017-08-22 13:38:47 +0200160 - system.influxdb.database.stacklight
161 openstack_compute_node01:
162 params:
163 single_address: 172.16.10.105
164 tenant_address: 10.1.0.105
165 external_address: 10.16.0.105
166 openstack_compute_node02:
167 params:
168 single_address: 172.16.10.106
169 tenant_address: 10.1.0.106
170 external_address: 10.16.0.106