blob: 2273e6a954d2c814ec107e622be0b73b9ad89758 [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
Petr Jediný3114a392017-08-02 15:21:09 +020013- system.keystone.client.service.designate
14- system.keystone.client.service.cinder
15- system.keystone.client.service.cinder2
Ales Komarekc12dd412017-06-27 16:24:42 +020016- system.keystone.client.service.cinder3
Petr Jediný3114a392017-08-02 15:21:09 +020017- system.keystone.client.service.glance
18- system.keystone.client.service.glare
19- system.keystone.client.service.heat
20- system.keystone.client.service.heat-cfn
21- system.keystone.client.service.keystone
22- system.keystone.client.service.neutron
23- system.keystone.client.service.nova-ec2
24- system.keystone.client.service.nova21
25- system.keystone.client.service.nova-placement
Adam Tengler2b36a762017-07-13 14:34:47 +000026- system.mysql.client
27- system.mysql.client.database.cinder
28- system.mysql.client.database.glance
29- system.mysql.client.database.heat
30- system.mysql.client.database.keystone
31- system.mysql.client.database.nova
32- system.mysql.client.database.nova_api
33- system.mysql.client.database.neutron
Ales Komarekc12dd412017-06-27 16:24:42 +020034- system.reclass.storage.system.openstack_control_cluster
Petr Michalecf05e3ea2017-08-21 17:33:16 +020035- cluster.os-ha-ovs.openstack.proxy
36- cluster.os-ha-ovs
Ales Komarekc12dd412017-06-27 16:24:42 +020037parameters:
38 _param:
39 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
40 reclass_data_revision: master
41 salt_master_environment_repository: "https://github.com/tcpcloud"
42 salt_master_environment_revision: master
Adam Tengler250d5bb2017-06-29 15:59:02 +000043 reclass_config_master: ${_param:infra_config_deploy_address}
44 single_address: ${_param:infra_config_address}
Ales Komarekc12dd412017-06-27 16:24:42 +020045 salt_master_host: 127.0.0.1
46 salt_master_base_environment: prd
47 salt_minion_ca_host: ${linux:network:fqdn}
48 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
49 linux:
50 network:
51 interface:
52 ens4:
53 enabled: true
54 type: eth
55 proto: static
56 address: ${_param:single_address}
57 netmask: 255.255.255.0
58 nginx:
59 server:
60 site:
61 nginx_proxy_openstack_web:
62 proxy:
Adam Tengler03f8c5f2017-07-19 13:56:34 +000063 host: ${_param:openstack_control_address}
Ales Komarekc12dd412017-06-27 16:24:42 +020064 nginx_proxy_openstack_api_heat_cfn:
65 enabled: false
Adam Tengler250d5bb2017-06-29 15:59:02 +000066 salt:
67 master:
68 reactor:
69 reclass/minion/classify:
70 - salt://reclass/reactor/node_register.sls
Ales Komarekc12dd412017-06-27 16:24:42 +020071 reclass:
72 storage:
Adam Tengler250d5bb2017-06-29 15:59:02 +000073 class_mapping:
74 common_node:
75 expression: all
76 node_param:
77 single_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000078 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +000079 linux_system_codename:
80 value_template: <<node_os>>
81 salt_master_host:
82 value_template: <<node_master_ip>>
83 infra_config:
84 expression: <<node_hostname>>__startswith__cfg
85 cluster_param:
86 infra_config_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000087 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +000088 infra_config_deploy_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000089 value_template: <<node_deploy_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000090 cluster_domain:
91 value_template: <<node_domain>>
Adam Tengler250d5bb2017-06-29 15:59:02 +000092 openstack_control01:
93 expression: <<node_hostname>>__equals__ctl01
94 cluster_param:
95 openstack_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000096 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +000097 openstack_control02:
98 expression: <<node_hostname>>__equals__ctl02
99 cluster_param:
100 openstack_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000101 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +0000102 openstack_control03:
103 expression: <<node_hostname>>__equals__ctl03
104 cluster_param:
105 openstack_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000106 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +0000107 openstack_compute:
108 expression: <<node_hostname>>__startswith__cmp
109 node_class:
110 value_template:
111 - cluster.<<node_cluster>>.openstack.compute
Adam Tengler8b254412017-06-29 18:30:32 +0000112 node_param:
113 tenant_address:
114 value_template: <<node_tenant_ip>>
115 external_address:
116 value_template: <<node_external_ip>>
Adam Tenglerf16be662017-07-18 10:25:13 +0000117 openstack_gateway:
118 expression: <<node_hostname>>__startswith__gtw
119 node_class:
120 value_template:
121 - cluster.<<node_cluster>>.openstack.gateway
122 node_param:
123 tenant_address:
124 value_template: <<node_tenant_ip>>
125 external_address:
126 value_template: <<node_external_ip>>
127 cluster_param:
128 openstack_gateway_node01_address:
129 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +0200130 node:
131 openstack_control_node01:
132 classes:
133 - service.galera.master.cluster
134 params:
135 mysql_cluster_role: master
136 linux_system_codename: xenial
137 openstack_control_node02:
138 classes:
139 - service.galera.slave.cluster
140 params:
141 mysql_cluster_role: slave
142 linux_system_codename: xenial
143 openstack_control_node03:
144 classes:
145 - service.galera.slave.cluster
146 params:
147 mysql_cluster_role: slave
148 linux_system_codename: xenial