blob: 16b265d190bbf842088ad10d40f7da3a8dd3d3d0 [file] [log] [blame]
Ales Komarekc12dd412017-06-27 16:24:42 +02001classes:
2- service.git.client
3- system.linux.system.single
4- system.linux.system.repo.mcp.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
Petr Jediný3114a392017-08-02 15:21:09 +020012- system.keystone.client.core
13- system.keystone.client.service.aodh
14- system.keystone.client.service.ceilometer
15- system.keystone.client.service.designate
16- system.keystone.client.service.cinder
17- system.keystone.client.service.cinder2
Ales Komarekc12dd412017-06-27 16:24:42 +020018- system.keystone.client.service.cinder3
Petr Jediný3114a392017-08-02 15:21:09 +020019- system.keystone.client.service.glance
20- system.keystone.client.service.glare
21- system.keystone.client.service.heat
22- system.keystone.client.service.heat-cfn
23- system.keystone.client.service.keystone
24- system.keystone.client.service.neutron
25- system.keystone.client.service.nova-ec2
26- system.keystone.client.service.nova21
27- system.keystone.client.service.nova-placement
Adam Tengler2b36a762017-07-13 14:34:47 +000028- system.mysql.client
29- system.mysql.client.database.cinder
30- system.mysql.client.database.glance
31- system.mysql.client.database.heat
32- system.mysql.client.database.keystone
33- system.mysql.client.database.nova
34- system.mysql.client.database.nova_api
35- system.mysql.client.database.neutron
Ales Komarekc12dd412017-06-27 16:24:42 +020036- system.reclass.storage.system.openstack_control_cluster
Ales Komarekc12dd412017-06-27 16:24:42 +020037- cluster.os_ha_ovs.openstack.proxy
38- cluster.os_ha_ovs
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
Adam Tengler250d5bb2017-06-29 15:59:02 +000045 reclass_config_master: ${_param:infra_config_deploy_address}
46 single_address: ${_param:infra_config_address}
Ales Komarekc12dd412017-06-27 16:24:42 +020047 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:
Adam Tengler03f8c5f2017-07-19 13:56:34 +000065 host: ${_param:openstack_control_address}
Ales Komarekc12dd412017-06-27 16:24:42 +020066 nginx_proxy_openstack_api_heat_cfn:
67 enabled: false
Adam Tengler250d5bb2017-06-29 15:59:02 +000068 salt:
69 master:
70 reactor:
71 reclass/minion/classify:
72 - salt://reclass/reactor/node_register.sls
Ales Komarekc12dd412017-06-27 16:24:42 +020073 reclass:
74 storage:
Adam Tengler250d5bb2017-06-29 15:59:02 +000075 class_mapping:
76 common_node:
77 expression: all
78 node_param:
79 single_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000080 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +000081 linux_system_codename:
82 value_template: <<node_os>>
83 salt_master_host:
84 value_template: <<node_master_ip>>
85 infra_config:
86 expression: <<node_hostname>>__startswith__cfg
87 cluster_param:
88 infra_config_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000089 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +000090 infra_config_deploy_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000091 value_template: <<node_deploy_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000092 cluster_domain:
93 value_template: <<node_domain>>
Adam Tengler250d5bb2017-06-29 15:59:02 +000094 openstack_control01:
95 expression: <<node_hostname>>__equals__ctl01
96 cluster_param:
97 openstack_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000098 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +000099 openstack_control02:
100 expression: <<node_hostname>>__equals__ctl02
101 cluster_param:
102 openstack_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000103 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +0000104 openstack_control03:
105 expression: <<node_hostname>>__equals__ctl03
106 cluster_param:
107 openstack_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000108 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +0000109 openstack_compute:
110 expression: <<node_hostname>>__startswith__cmp
111 node_class:
112 value_template:
113 - cluster.<<node_cluster>>.openstack.compute
Adam Tengler8b254412017-06-29 18:30:32 +0000114 node_param:
115 tenant_address:
116 value_template: <<node_tenant_ip>>
117 external_address:
118 value_template: <<node_external_ip>>
Adam Tenglerf16be662017-07-18 10:25:13 +0000119 openstack_gateway:
120 expression: <<node_hostname>>__startswith__gtw
121 node_class:
122 value_template:
123 - cluster.<<node_cluster>>.openstack.gateway
124 node_param:
125 tenant_address:
126 value_template: <<node_tenant_ip>>
127 external_address:
128 value_template: <<node_external_ip>>
129 cluster_param:
130 openstack_gateway_node01_address:
131 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +0200132 node:
133 openstack_control_node01:
134 classes:
135 - service.galera.master.cluster
136 params:
137 mysql_cluster_role: master
138 linux_system_codename: xenial
139 openstack_control_node02:
140 classes:
141 - service.galera.slave.cluster
142 params:
143 mysql_cluster_role: slave
144 linux_system_codename: xenial
145 openstack_control_node03:
146 classes:
147 - service.galera.slave.cluster
148 params:
149 mysql_cluster_role: slave
150 linux_system_codename: xenial