blob: a7d91a2e3b43f2ba141c2b4b9827fb9331c22b0a [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
Jan Cach4446e412017-09-21 11:30:54 +02005- system.linux.system.repo.mcp.openstack
Ales Komarekc12dd412017-06-27 16:24:42 +02006- 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
Petr Jediný3114a392017-08-02 15:21:09 +020013- system.keystone.client.core
Petr Jediný3114a392017-08-02 15:21:09 +020014- system.keystone.client.service.designate
15- system.keystone.client.service.cinder
16- system.keystone.client.service.cinder2
Ales Komarekc12dd412017-06-27 16:24:42 +020017- system.keystone.client.service.cinder3
Petr Jediný3114a392017-08-02 15:21:09 +020018- 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
Adam Tengler2b36a762017-07-13 14:34:47 +000027- 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
Ales Komarekc12dd412017-06-27 16:24:42 +020035- system.reclass.storage.system.openstack_control_cluster
Petr Michalecf05e3ea2017-08-21 17:33:16 +020036- cluster.os-ha-ovs.openstack.proxy
37- cluster.os-ha-ovs
Ales Komarekc12dd412017-06-27 16:24:42 +020038parameters:
39 _param:
40 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
41 reclass_data_revision: master
42 salt_master_environment_repository: "https://github.com/tcpcloud"
43 salt_master_environment_revision: master
Adam Tengler250d5bb2017-06-29 15:59:02 +000044 reclass_config_master: ${_param:infra_config_deploy_address}
45 single_address: ${_param:infra_config_address}
Ales Komarekc12dd412017-06-27 16:24:42 +020046 salt_master_host: 127.0.0.1
47 salt_master_base_environment: prd
48 salt_minion_ca_host: ${linux:network:fqdn}
49 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
50 linux:
51 network:
52 interface:
53 ens4:
54 enabled: true
55 type: eth
56 proto: static
57 address: ${_param:single_address}
58 netmask: 255.255.255.0
59 nginx:
60 server:
61 site:
62 nginx_proxy_openstack_web:
63 proxy:
Jan Cach4446e412017-09-21 11:30:54 +020064 host: ${_param:infra_config_address}
Ales Komarekc12dd412017-06-27 16:24:42 +020065 nginx_proxy_openstack_api_heat_cfn:
66 enabled: false
Adam Tengler250d5bb2017-06-29 15:59:02 +000067 salt:
68 master:
69 reactor:
70 reclass/minion/classify:
71 - salt://reclass/reactor/node_register.sls
Ales Komarekc12dd412017-06-27 16:24:42 +020072 reclass:
73 storage:
Adam Tengler250d5bb2017-06-29 15:59:02 +000074 class_mapping:
75 common_node:
76 expression: all
77 node_param:
78 single_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000079 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +000080 linux_system_codename:
81 value_template: <<node_os>>
82 salt_master_host:
83 value_template: <<node_master_ip>>
84 infra_config:
85 expression: <<node_hostname>>__startswith__cfg
86 cluster_param:
87 infra_config_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000088 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +000089 infra_config_deploy_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000090 value_template: <<node_deploy_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000091 cluster_domain:
92 value_template: <<node_domain>>
Adam Tengler250d5bb2017-06-29 15:59:02 +000093 openstack_control01:
94 expression: <<node_hostname>>__equals__ctl01
95 cluster_param:
96 openstack_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000097 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +000098 openstack_control02:
99 expression: <<node_hostname>>__equals__ctl02
100 cluster_param:
101 openstack_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000102 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +0000103 openstack_control03:
104 expression: <<node_hostname>>__equals__ctl03
105 cluster_param:
106 openstack_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000107 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +0000108 openstack_compute:
109 expression: <<node_hostname>>__startswith__cmp
110 node_class:
111 value_template:
112 - cluster.<<node_cluster>>.openstack.compute
Adam Tengler8b254412017-06-29 18:30:32 +0000113 node_param:
114 tenant_address:
115 value_template: <<node_tenant_ip>>
116 external_address:
117 value_template: <<node_external_ip>>
Adam Tenglerf16be662017-07-18 10:25:13 +0000118 openstack_gateway:
119 expression: <<node_hostname>>__startswith__gtw
120 node_class:
121 value_template:
122 - cluster.<<node_cluster>>.openstack.gateway
123 node_param:
124 tenant_address:
125 value_template: <<node_tenant_ip>>
126 external_address:
127 value_template: <<node_external_ip>>
128 cluster_param:
129 openstack_gateway_node01_address:
130 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +0200131 node:
132 openstack_control_node01:
133 classes:
134 - service.galera.master.cluster
135 params:
136 mysql_cluster_role: master
137 linux_system_codename: xenial
138 openstack_control_node02:
139 classes:
140 - service.galera.slave.cluster
141 params:
142 mysql_cluster_role: slave
143 linux_system_codename: xenial
144 openstack_control_node03:
145 classes:
146 - service.galera.slave.cluster
147 params:
148 mysql_cluster_role: slave
149 linux_system_codename: xenial