blob: 783586f952439b94ba3c90c00c890427b66b442c [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- cluster.os_ha_ovs.openstack.proxy
26- cluster.os_ha_ovs
27parameters:
28 _param:
29 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
30 reclass_data_revision: master
31 salt_master_environment_repository: "https://github.com/tcpcloud"
32 salt_master_environment_revision: master
Adam Tengler250d5bb2017-06-29 15:59:02 +000033 reclass_config_master: ${_param:infra_config_deploy_address}
34 single_address: ${_param:infra_config_address}
Ales Komarekc12dd412017-06-27 16:24:42 +020035 salt_master_host: 127.0.0.1
36 salt_master_base_environment: prd
37 salt_minion_ca_host: ${linux:network:fqdn}
38 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
39 linux:
40 network:
41 interface:
42 ens4:
43 enabled: true
44 type: eth
45 proto: static
46 address: ${_param:single_address}
47 netmask: 255.255.255.0
48 nginx:
49 server:
50 site:
51 nginx_proxy_openstack_web:
52 proxy:
Adam Tengler03f8c5f2017-07-19 13:56:34 +000053 host: ${_param:openstack_control_address}
Ales Komarekc12dd412017-06-27 16:24:42 +020054 nginx_proxy_openstack_api_heat_cfn:
55 enabled: false
Adam Tengler250d5bb2017-06-29 15:59:02 +000056 salt:
57 master:
58 reactor:
59 reclass/minion/classify:
60 - salt://reclass/reactor/node_register.sls
Ales Komarekc12dd412017-06-27 16:24:42 +020061 reclass:
62 storage:
Adam Tengler250d5bb2017-06-29 15:59:02 +000063 class_mapping:
64 common_node:
65 expression: all
66 node_param:
67 single_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000068 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +000069 linux_system_codename:
70 value_template: <<node_os>>
71 salt_master_host:
72 value_template: <<node_master_ip>>
73 infra_config:
74 expression: <<node_hostname>>__startswith__cfg
75 cluster_param:
76 infra_config_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000077 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +000078 infra_config_deploy_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000079 value_template: <<node_deploy_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000080 cluster_domain:
81 value_template: <<node_domain>>
Adam Tengler250d5bb2017-06-29 15:59:02 +000082 openstack_control01:
83 expression: <<node_hostname>>__equals__ctl01
84 cluster_param:
85 openstack_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000086 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +000087 openstack_control02:
88 expression: <<node_hostname>>__equals__ctl02
89 cluster_param:
90 openstack_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000091 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +000092 openstack_control03:
93 expression: <<node_hostname>>__equals__ctl03
94 cluster_param:
95 openstack_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000096 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +000097 openstack_compute:
98 expression: <<node_hostname>>__startswith__cmp
99 node_class:
100 value_template:
101 - cluster.<<node_cluster>>.openstack.compute
Adam Tengler8b254412017-06-29 18:30:32 +0000102 node_param:
103 tenant_address:
104 value_template: <<node_tenant_ip>>
105 external_address:
106 value_template: <<node_external_ip>>
Adam Tenglerf16be662017-07-18 10:25:13 +0000107 openstack_gateway:
108 expression: <<node_hostname>>__startswith__gtw
109 node_class:
110 value_template:
111 - cluster.<<node_cluster>>.openstack.gateway
112 node_param:
113 tenant_address:
114 value_template: <<node_tenant_ip>>
115 external_address:
116 value_template: <<node_external_ip>>
117 cluster_param:
118 openstack_gateway_node01_address:
119 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +0200120 node:
121 openstack_control_node01:
122 classes:
123 - service.galera.master.cluster
124 params:
125 mysql_cluster_role: master
126 linux_system_codename: xenial
127 openstack_control_node02:
128 classes:
129 - service.galera.slave.cluster
130 params:
131 mysql_cluster_role: slave
132 linux_system_codename: xenial
133 openstack_control_node03:
134 classes:
135 - service.galera.slave.cluster
136 params:
137 mysql_cluster_role: slave
138 linux_system_codename: xenial