blob: 81145b1f6785d6aea2a5a13f622f09605b1a90d5 [file] [log] [blame]
Adam Tenglerc1cd4d62017-07-25 11:19:37 +00001classes:
2- service.git.client
3- system.linux.system.single
4- system.linux.system.repo.mcp.salt
5- system.openssh.client.lab
Adam Tenglerc1cd4d62017-07-25 11:19:37 +00006- system.salt.master.pkg
Dennis Dmitriev6635bfd2018-03-20 04:50:12 +02007- system.salt.master.api
Adam Tenglerc1cd4d62017-07-25 11:19:37 +00008- system.reclass.storage.salt
9- system.salt.minion.ca.salt_master
10- system.salt.minion.cert.proxy
11- system.sphinx.server.doc.reclass
Petr Jediný3114a392017-08-02 15:21:09 +020012- system.keystone.client.core
Petr Jediný3114a392017-08-02 15:21:09 +020013- system.keystone.client.service.cinder
14- system.keystone.client.service.cinder2
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000015- system.keystone.client.service.cinder3
Petr Jediný3114a392017-08-02 15:21:09 +020016- system.keystone.client.service.glance
17- system.keystone.client.service.glare
18- system.keystone.client.service.heat
19- system.keystone.client.service.heat-cfn
20- system.keystone.client.service.keystone
21- system.keystone.client.service.neutron
22- system.keystone.client.service.nova-ec2
23- system.keystone.client.service.nova21
24- system.keystone.client.service.nova-placement
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000025- system.mysql.client
26- system.mysql.client.database.cinder
27- system.mysql.client.database.glance
28- system.mysql.client.database.heat
29- system.mysql.client.database.keystone
30- system.mysql.client.database.nova
31- system.mysql.client.database.nova_api
32- system.mysql.client.database.neutron
33- system.reclass.storage.system.openstack_control_cluster
Petr Michalecf05e3ea2017-08-21 17:33:16 +020034- cluster.os-ha-ovs-syndic.openstack.proxy
35- cluster.os-ha-ovs-syndic
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000036parameters:
37 _param:
38 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
39 reclass_data_revision: master
40 salt_master_environment_repository: "https://github.com/tcpcloud"
41 salt_master_environment_revision: master
42 reclass_config_master: ${_param:infra_config_deploy_address}
43 single_address: ${_param:infra_config_address}
44 salt_master_host: 127.0.0.1
45 salt_master_base_environment: prd
46 salt_minion_ca_host: ${linux:network:fqdn}
47 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
48 linux:
49 network:
50 interface:
51 ens4:
52 enabled: true
53 type: eth
54 proto: static
55 address: ${_param:single_address}
56 netmask: 255.255.255.0
57 nginx:
58 server:
59 site:
60 nginx_proxy_openstack_web:
61 proxy:
62 host: ${_param:openstack_control_address}
63 nginx_proxy_openstack_api_heat_cfn:
64 enabled: false
65 salt:
66 syndic:
67 enabled: true
68 master:
Adam Tenglerb05a0192017-07-25 12:07:15 +000069 host: ${_param:salt_syndic_master_address}
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000070 master:
71 reactor:
72 reclass/minion/classify:
73 - salt://reclass/reactor/node_register.sls
74 reclass:
75 storage:
76 class_mapping:
77 common_node:
78 expression: all
79 node_param:
80 single_address:
81 value_template: <<node_control_ip>>
82 linux_system_codename:
83 value_template: <<node_os>>
84 salt_master_host:
85 value_template: <<node_master_ip>>
86 infra_config:
Adam Tengler500745f2017-07-27 15:51:10 +000087 expression:
88 - <<node_hostname>>__startswith__cfg
89 - <<node_cluster>>__equals__os_ha_ovs_syndic
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000090 cluster_param:
91 infra_config_address:
92 value_template: <<node_control_ip>>
93 infra_config_deploy_address:
94 value_template: <<node_deploy_ip>>
95 cluster_domain:
96 value_template: <<node_domain>>
97 openstack_control01:
Adam Tengler1c3c15f2017-07-31 10:23:27 +000098 expression:
99 - <<node_hostname>>__equals__ctl01
100 - <<node_cluster>>__equals__os_ha_ovs_syndic
Adam Tenglerc1cd4d62017-07-25 11:19:37 +0000101 cluster_param:
102 openstack_control_node01_address:
103 value_template: <<node_control_ip>>
104 openstack_control02:
Adam Tengler1c3c15f2017-07-31 10:23:27 +0000105 expression:
106 - <<node_hostname>>__equals__ctl02
107 - <<node_cluster>>__equals__os_ha_ovs_syndic
Adam Tenglerc1cd4d62017-07-25 11:19:37 +0000108 cluster_param:
109 openstack_control_node02_address:
110 value_template: <<node_control_ip>>
111 openstack_control03:
Adam Tengler1c3c15f2017-07-31 10:23:27 +0000112 expression:
113 - <<node_hostname>>__equals__ctl03
114 - <<node_cluster>>__equals__os_ha_ovs_syndic
Adam Tenglerc1cd4d62017-07-25 11:19:37 +0000115 cluster_param:
116 openstack_control_node03_address:
117 value_template: <<node_control_ip>>
118 openstack_compute:
Adam Tengler1c3c15f2017-07-31 10:23:27 +0000119 expression:
120 - <<node_hostname>>__startswith__cmp
121 - <<node_cluster>>__equals__os_ha_ovs_syndic
Adam Tenglerc1cd4d62017-07-25 11:19:37 +0000122 node_class:
123 value_template:
124 - cluster.<<node_cluster>>.openstack.compute
125 node_param:
126 tenant_address:
127 value_template: <<node_tenant_ip>>
128 external_address:
129 value_template: <<node_external_ip>>
130 openstack_gateway:
Adam Tengler1c3c15f2017-07-31 10:23:27 +0000131 expression:
132 - <<node_hostname>>__startswith__gtw
133 - <<node_cluster>>__equals__os_ha_ovs_syndic
Adam Tenglerc1cd4d62017-07-25 11:19:37 +0000134 node_class:
135 value_template:
136 - cluster.<<node_cluster>>.openstack.gateway
137 node_param:
138 tenant_address:
139 value_template: <<node_tenant_ip>>
140 external_address:
141 value_template: <<node_external_ip>>
142 cluster_param:
143 openstack_gateway_node01_address:
144 value_template: <<node_control_ip>>
145 node:
146 openstack_control_node01:
147 classes:
148 - service.galera.master.cluster
149 params:
150 mysql_cluster_role: master
151 linux_system_codename: xenial
152 openstack_control_node02:
153 classes:
154 - service.galera.slave.cluster
155 params:
156 mysql_cluster_role: slave
157 linux_system_codename: xenial
158 openstack_control_node03:
159 classes:
160 - service.galera.slave.cluster
161 params:
162 mysql_cluster_role: slave
163 linux_system_codename: xenial