blob: 7204cba3d3827ac163ea432f8ccf9dba243e124e [file] [log] [blame]
Tatyana Leontovich3ca999a2017-04-11 12:52:19 +03001classes:
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
Tatyana Leontovich3ca999a2017-04-11 12:52:19 +03006- 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
14- system.keystone.client.service.ceilometer
15- system.keystone.client.service.nova21
Tatyana Leontovichf4fef592017-04-26 21:10:33 +030016- system.keystone.client.service.nova-placement
Tatyana Leontovich3ca999a2017-04-11 12:52:19 +030017- system.keystone.client.service.glare
18- system.keystone.client.service.cinder3
Mykyta Karpin3074d382017-05-25 18:36:42 +030019- system.keystone.client.service.designate
Tatyana Leontovich3ca999a2017-04-11 12:52:19 +030020- system.mysql.client.single
21- system.reclass.storage.system.openstack_control_cluster
Tatyana Leontovich3ca999a2017-04-11 12:52:19 +030022- system.reclass.storage.system.stacklight_server_cluster
23- cluster.virtual-mcp-ocata-ovs.openstack.proxy
24- cluster.virtual-mcp-ocata-ovs.stacklight.proxy
25- cluster.virtual-mcp-ocata-ovs
26parameters:
27 _param:
28 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
29 reclass_data_revision: master
30 salt_master_environment_repository: "https://github.com/tcpcloud"
31 salt_master_environment_revision: master
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 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
38 linux:
39 network:
40 interface:
41 ens4:
42 enabled: true
43 type: eth
Petr Jediný9b3a0ed2017-04-13 15:12:09 +020044 proto: static
45 address: ${_param:single_address}
46 netmask: 255.255.255.0
Tatyana Leontovich3ca999a2017-04-11 12:52:19 +030047 nginx:
48 server:
49 site:
50 nginx_proxy_openstack_web:
51 proxy:
52 host: prx
53 nginx_proxy_openstack_api_heat_cfn:
54 enabled: false
Jiri Broulik432ae9c2017-08-17 10:24:23 +020055 salt:
56 master:
57 reactor:
58 reclass/minion/classify:
59 - salt://reclass/reactor/node_register.sls
Tatyana Leontovich3ca999a2017-04-11 12:52:19 +030060 reclass:
61 storage:
Jiri Broulik432ae9c2017-08-17 10:24:23 +020062 class_mapping:
63 common_node:
64 expression: all
65 node_param:
66 single_address:
67 value_template: <<node_control_ip>>
68 linux_system_codename:
69 value_template: <<node_os>>
70 salt_master_host:
71 value_template: <<node_master_ip>>
72 infra_config:
73 expression: <<node_hostname>>__startswith__cfg
74 cluster_param:
75 infra_config_address:
76 value_template: <<node_control_ip>>
77 infra_config_deploy_address:
78 value_template: <<node_deploy_ip>>
79 cluster_domain:
80 value_template: <<node_domain>>
81 openstack_control01:
82 expression: <<node_hostname>>__equals__ctl01
83 cluster_param:
84 openstack_control_node01_address:
85 value_template: <<node_control_ip>>
86 openstack_control02:
87 expression: <<node_hostname>>__equals__ctl02
88 cluster_param:
89 openstack_control_node02_address:
90 value_template: <<node_control_ip>>
91 openstack_control03:
92 expression: <<node_hostname>>__equals__ctl03
93 cluster_param:
94 openstack_control_node03_address:
95 value_template: <<node_control_ip>>
96 openstack_compute:
97 expression: <<node_hostname>>__startswith__cmp
98 node_class:
99 value_template:
100 - cluster.<<node_cluster>>.openstack.compute
101 node_param:
102 tenant_address:
103 value_template: <<node_tenant_ip>>
104 external_address:
105 value_template: <<node_external_ip>>
106 openstack_gateway:
107 expression: <<node_hostname>>__startswith__gtw
108 node_class:
109 value_template:
110 - cluster.<<node_cluster>>.openstack.gateway
111 node_param:
112 tenant_address:
113 value_template: <<node_tenant_ip>>
114 external_address:
115 value_template: <<node_external_ip>>
116 cluster_param:
117 openstack_gateway_node01_address:
118 value_template: <<node_control_ip>>
119 stacklight_monitor_node01:
120 expression: <<node_hostname>>__equals__mon01
121 cluster_param:
122 stacklight_monitor_node03_address:
123 value_template: <<node_control_ip>>
124 stacklight_monitor_node02:
125 expression: <<node_hostname>>__equals__mon02
126 cluster_param:
127 stacklight_monitor_node03_address:
128 value_template: <<node_control_ip>>
129 stacklight_monitor_node03:
130 expression: <<node_hostname>>__equals__mon03
131 cluster_param:
132 stacklight_monitor_node03_address:
133 value_template: <<node_control_ip>>
134 openstack_dashboard:
135 expression: <<node_hostname>>__startswith__prx
136 node_class:
137 value_template:
138 - cluster.<<node_cluster>>.openstack.dashboard
139 - cluster.<<node_cluster>>.openstack.proxy
140 cluster_param:
141 openstack_proxy_node01_address:
142 value_template: <<node_control_ip>>
Tatyana Leontovich3ca999a2017-04-11 12:52:19 +0300143 node:
144 openstack_control_node01:
145 classes:
146 - service.galera.master.cluster
147 params:
148 mysql_cluster_role: master
149 linux_system_codename: xenial
150 openstack_control_node02:
151 classes:
152 - service.galera.slave.cluster
153 params:
154 mysql_cluster_role: slave
155 linux_system_codename: xenial
156 openstack_control_node03:
157 classes:
158 - service.galera.slave.cluster
159 params:
160 mysql_cluster_role: slave
161 linux_system_codename: xenial
Tatyana Leontovich3ca999a2017-04-11 12:52:19 +0300162 stacklight_server_node01:
163 classes:
164 - system.influxdb.server.single
165 - system.influxdb.database.stacklight