blob: a43b5dee6bddc86c5ddd0d064016dda5614cb446 [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
Martin Polreicha0addcc2018-06-25 11:32:52 +02005- system.linux.system.repo.mcp.apt_mirantis.saltstack
Jeepyb Userdd14e0b2017-02-28 15:19:32 +00006- system.openssh.client.lab
Jeepyb Userdd14e0b2017-02-28 15:19:32 +00007- system.salt.master.pkg
Dennis Dmitriev6635bfd2018-03-20 04:50:12 +02008- system.salt.master.api
Jeepyb Userdd14e0b2017-02-28 15:19:32 +00009- 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
14- system.keystone.client.service.ceilometer
15- system.keystone.client.service.nova21
16- system.mysql.client.single
17- system.reclass.storage.system.openstack_control_cluster
Jeepyb Userdd14e0b2017-02-28 15:19:32 +000018- system.reclass.storage.system.stacklight_server_cluster
Jiri Broulikd3a38672017-08-22 14:15:09 +020019- system.reclass.storage.system.openstack_compute_multi
20- system.reclass.storage.system.openstack_gateway_single
21- system.reclass.storage.system.openstack_dashboard_single
Jeepyb Userdd14e0b2017-02-28 15:19:32 +000022- cluster.virtual-mcp05-ovs.openstack.proxy
23- cluster.virtual-mcp05-ovs.stacklight.proxy
24- cluster.virtual-mcp05-ovs
25parameters:
26 _param:
Tomáš Kukrál2c7026a2017-03-08 18:19:53 +010027 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
Jeepyb Userdd14e0b2017-02-28 15:19:32 +000028 reclass_data_revision: master
29 salt_master_environment_repository: "https://github.com/tcpcloud"
30 salt_master_environment_revision: master
Olivier Bourdon5e343162017-09-05 07:52:15 +020031 reclass_config_master: 192.168.10.90
Jeepyb Userdd14e0b2017-02-28 15:19:32 +000032 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 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
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
Jeepyb Userdd14e0b2017-02-28 15:19:32 +000046 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
Jeepyb Userdd14e0b2017-02-28 15:19:32 +000059 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:
Olivier Bourdon1ad864b2017-09-06 14:09:15 +0200121 stacklight_monitor_node01_address:
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200122 value_template: <<node_control_ip>>
123 stacklight_monitor_node02:
124 expression: <<node_hostname>>__equals__mon02
125 cluster_param:
Olivier Bourdon1ad864b2017-09-06 14:09:15 +0200126 stacklight_monitor_node02_address:
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200127 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>>
Jeepyb Userdd14e0b2017-02-28 15:19:32 +0000142 node:
143 openstack_control_node01:
144 classes:
145 - service.galera.master.cluster
146 params:
147 mysql_cluster_role: master
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200148 linux_system_codename: xenial
Jeepyb Userdd14e0b2017-02-28 15:19:32 +0000149 openstack_control_node02:
150 classes:
151 - service.galera.slave.cluster
152 params:
153 mysql_cluster_role: slave
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200154 linux_system_codename: xenial
Jeepyb Userdd14e0b2017-02-28 15:19:32 +0000155 openstack_control_node03:
156 classes:
157 - service.galera.slave.cluster
158 params:
159 mysql_cluster_role: slave
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200160 linux_system_codename: xenial
Jeepyb Userdd14e0b2017-02-28 15:19:32 +0000161 stacklight_server_node01:
162 classes:
163 - system.influxdb.server.single
Jiri Broulikbf0a8af2017-08-22 13:38:47 +0200164 - system.influxdb.database.stacklight
165 openstack_compute_node01:
166 params:
167 single_address: 172.16.10.105
168 tenant_address: 10.1.0.105
169 external_address: 10.16.0.105
170 openstack_compute_node02:
171 params:
172 single_address: 172.16.10.106
173 tenant_address: 10.1.0.106
Jiri Broulikd3a38672017-08-22 14:15:09 +0200174 external_address: 10.16.0.106
175 openstack_gateway_node01:
176 params:
177 tenant_address: 10.1.0.110
Olivier Bourdon1ad864b2017-09-06 14:09:15 +0200178 external_address: 10.16.0.110