blob: 5c513da20352f8f7a79fc90079daea15b141f98f [file] [log] [blame]
Oleh Hryhorov4cf6dfc2018-03-15 19:25:41 +02001classes:
2- service.git.client
3- system.linux.system.single
4- system.linux.system.repo.mcp.salt
5- system.linux.system.repo.mcp.openstack
6- system.openssh.client.lab
Oleh Hryhorov4cf6dfc2018-03-15 19:25:41 +02007- system.salt.master.pkg
Dennis Dmitriev6635bfd2018-03-20 04:50:12 +02008- system.salt.master.api
Oleh Hryhorov4cf6dfc2018-03-15 19:25:41 +02009- 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.core
14- system.keystone.client.service.designate
15- system.keystone.client.service.cinder
16- system.keystone.client.service.cinder2
17- system.keystone.client.service.cinder3
18- system.keystone.client.service.glance
19- system.keystone.client.service.glare
20- system.keystone.client.service.heat
21- system.keystone.client.service.heat-cfn
22- system.keystone.client.service.keystone
23- system.keystone.client.service.neutron
24- system.keystone.client.service.nova-ec2
25- system.keystone.client.service.nova21
26- system.keystone.client.service.nova-placement
27- system.mysql.client
28- system.mysql.client.database.cinder
29- system.mysql.client.database.glance
30- system.mysql.client.database.heat
31- system.mysql.client.database.keystone
32- system.mysql.client.database.nova
33- system.mysql.client.database.nova_api
34- system.mysql.client.database.neutron
35- system.reclass.storage.system.openstack_control_cluster
36- system.neutron.client.service.public
37- cluster.os-ha-ovs-pike.openstack.proxy
38- cluster.os-ha-ovs-pike
39parameters:
40 _param:
41 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
42 reclass_data_revision: master
43 salt_master_environment_repository: "https://github.com/tcpcloud"
44 salt_master_environment_revision: master
45 reclass_config_master: ${_param:infra_config_deploy_address}
46 single_address: ${_param:infra_config_address}
47 salt_master_host: 127.0.0.1
48 salt_master_base_environment: prd
49 salt_minion_ca_host: ${linux:network:fqdn}
50 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
51 linux:
52 network:
53 interface:
54 ens4:
55 enabled: true
56 type: eth
57 proto: static
58 address: ${_param:single_address}
59 netmask: 255.255.255.0
60 nginx:
61 server:
62 site:
63 nginx_proxy_openstack_web:
64 proxy:
65 host: ${_param:infra_config_address}
66 nginx_proxy_openstack_api_heat_cfn:
67 enabled: false
68 salt:
69 master:
70 reactor:
71 reclass/minion/classify:
72 - salt://reclass/reactor/node_register.sls
73 environment:
74 prd:
75 formula:
76 runtest:
77 source: pkg
78 name: salt-formula-runtest
79 reclass:
80 storage:
81 class_mapping:
82 common_node:
83 expression: all
84 node_param:
85 single_address:
86 value_template: <<node_control_ip>>
87 linux_system_codename:
88 value_template: <<node_os>>
89 salt_master_host:
90 value_template: <<node_master_ip>>
91 infra_config:
92 expression: <<node_hostname>>__startswith__cfg
93 cluster_param:
94 infra_config_address:
95 value_template: <<node_control_ip>>
96 infra_config_deploy_address:
97 value_template: <<node_deploy_ip>>
98 cluster_domain:
99 value_template: <<node_domain>>
100 openstack_control01:
101 expression: <<node_hostname>>__equals__ctl01
102 cluster_param:
103 openstack_control_node01_address:
104 value_template: <<node_control_ip>>
105 openstack_control02:
106 expression: <<node_hostname>>__equals__ctl02
107 cluster_param:
108 openstack_control_node02_address:
109 value_template: <<node_control_ip>>
110 openstack_control03:
111 expression: <<node_hostname>>__equals__ctl03
112 cluster_param:
113 openstack_control_node03_address:
114 value_template: <<node_control_ip>>
115 openstack_compute:
116 expression: <<node_hostname>>__startswith__cmp
117 node_class:
118 value_template:
119 - cluster.<<node_cluster>>.openstack.compute
120 node_param:
121 tenant_address:
122 value_template: <<node_tenant_ip>>
123 external_address:
124 value_template: <<node_external_ip>>
125 openstack_gateway:
126 expression: <<node_hostname>>__startswith__gtw
127 node_class:
128 value_template:
129 - cluster.<<node_cluster>>.openstack.gateway
130 node_param:
131 tenant_address:
132 value_template: <<node_tenant_ip>>
133 external_address:
134 value_template: <<node_external_ip>>
135 cluster_param:
136 openstack_gateway_node01_address:
137 value_template: <<node_control_ip>>
138 node:
139 openstack_control_node01:
140 classes:
141 - service.galera.master.cluster
142 params:
143 mysql_cluster_role: master
144 linux_system_codename: xenial
145 openstack_control_node02:
146 classes:
147 - service.galera.slave.cluster
148 params:
149 mysql_cluster_role: slave
150 linux_system_codename: xenial
151 openstack_control_node03:
152 classes:
153 - service.galera.slave.cluster
154 params:
155 mysql_cluster_role: slave
156 linux_system_codename: xenial