blob: 75401d03d08a0bc6a916ed70e75c68212429b854 [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
12- system.keystone.client.single
Ales Komarekc12dd412017-06-27 16:24:42 +020013- system.keystone.client.service.nova21
14- system.keystone.client.service.glare
15- system.keystone.client.service.cinder3
Adam Tengler2b36a762017-07-13 14:34:47 +000016- system.mysql.client
17- system.mysql.client.database.cinder
18- system.mysql.client.database.glance
19- system.mysql.client.database.heat
20- system.mysql.client.database.keystone
21- system.mysql.client.database.nova
22- system.mysql.client.database.nova_api
23- system.mysql.client.database.neutron
Ales Komarekc12dd412017-06-27 16:24:42 +020024- system.reclass.storage.system.openstack_control_cluster
Ales Komarekc12dd412017-06-27 16:24:42 +020025- system.reclass.storage.system.stacklight_server_cluster
26- cluster.sl_os_ovs.openstack.proxy
27- cluster.sl_os_ovs.stacklight.proxy
Adam Tengler0c624442017-07-04 13:25:36 +000028- cluster.sl_os_ovs.openstack.dashboard
Ales Komarekc12dd412017-06-27 16:24:42 +020029- cluster.sl_os_ovs
30parameters:
31 _param:
32 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
33 reclass_data_revision: master
34 salt_master_environment_repository: "https://github.com/tcpcloud"
35 salt_master_environment_revision: master
Adam Tengler250d5bb2017-06-29 15:59:02 +000036 reclass_config_master: ${_param:infra_config_deploy_address}
37 single_address: ${_param:infra_config_address}
Ales Komarekc12dd412017-06-27 16:24:42 +020038 salt_master_host: 127.0.0.1
39 salt_master_base_environment: prd
40 salt_minion_ca_host: ${linux:network:fqdn}
41 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
42 linux:
43 network:
44 interface:
45 ens4:
46 enabled: true
47 type: eth
48 proto: static
49 address: ${_param:single_address}
50 netmask: 255.255.255.0
51 nginx:
52 server:
53 site:
54 nginx_proxy_openstack_web:
55 proxy:
56 host: prx
57 nginx_proxy_openstack_api_heat_cfn:
58 enabled: false
Adam Tengler250d5bb2017-06-29 15:59:02 +000059 salt:
60 master:
61 reactor:
62 reclass/minion/classify:
63 - salt://reclass/reactor/node_register.sls
Ales Komarekc12dd412017-06-27 16:24:42 +020064 reclass:
65 storage:
Adam Tengler250d5bb2017-06-29 15:59:02 +000066 class_mapping:
67 common_node:
68 expression: all
69 node_param:
70 single_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000071 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +000072 linux_system_codename:
73 value_template: <<node_os>>
74 salt_master_host:
75 value_template: <<node_master_ip>>
76 infra_config:
77 expression: <<node_hostname>>__startswith__cfg
78 cluster_param:
79 infra_config_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000080 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +000081 infra_config_deploy_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000082 value_template: <<node_deploy_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000083 cluster_domain:
84 value_template: <<node_domain>>
Adam Tengler250d5bb2017-06-29 15:59:02 +000085 openstack_control01:
86 expression: <<node_hostname>>__equals__ctl01
87 cluster_param:
88 openstack_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000089 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +000090 openstack_control02:
91 expression: <<node_hostname>>__equals__ctl02
92 cluster_param:
93 openstack_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000094 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +000095 openstack_control03:
96 expression: <<node_hostname>>__equals__ctl03
97 cluster_param:
98 openstack_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000099 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +0000100 openstack_compute:
101 expression: <<node_hostname>>__startswith__cmp
102 node_class:
103 value_template:
104 - cluster.<<node_cluster>>.openstack.compute
Adam Tengler8b254412017-06-29 18:30:32 +0000105 node_param:
106 tenant_address:
107 value_template: <<node_tenant_ip>>
108 external_address:
109 value_template: <<node_external_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +0000110 stacklight_monitor01:
111 expression: <<node_hostname>>__equals__mon01
112 cluster_param:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000113 stacklight_monitor_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000114 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +0000115 stacklight_monitor02:
116 expression: <<node_hostname>>__equals__mon02
117 cluster_param:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000118 stacklight_monitor_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000119 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +0000120 stacklight_monitor03:
121 expression: <<node_hostname>>__equals__mon03
122 cluster_param:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000123 stacklight_monitor_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000124 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +0200125 node:
126 openstack_control_node01:
127 classes:
128 - service.galera.master.cluster
129 params:
130 mysql_cluster_role: master
131 linux_system_codename: xenial
132 openstack_control_node02:
133 classes:
134 - service.galera.slave.cluster
135 params:
136 mysql_cluster_role: slave
137 linux_system_codename: xenial
138 openstack_control_node03:
139 classes:
140 - service.galera.slave.cluster
141 params:
142 mysql_cluster_role: slave
143 linux_system_codename: xenial
Ales Komarekc12dd412017-06-27 16:24:42 +0200144 stacklight_server_node01:
145 classes:
146 - system.influxdb.server.single
147 - system.influxdb.database.stacklight