blob: 08e73338b482dc1a921cc5b1598564b405159ed5 [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
13- system.keystone.client.service.ceilometer
14- system.keystone.client.service.nova21
15- system.keystone.client.service.glare
16- system.keystone.client.service.cinder3
17- system.mysql.client.single
Jiri Broulikf212d212017-07-21 11:09:00 +020018- system.reclass.storage.system.openstack_control_single
Ales Komarekc12dd412017-06-27 16:24:42 +020019- system.reclass.storage.system.openstack_compute_multi
20- system.reclass.storage.system.openstack_gateway_single
21- system.reclass.storage.system.openstack_dashboard_single
22- cluster.os_aio_ovs.openstack.proxy
23- cluster.os_aio_ovs
24parameters:
25 _param:
26 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
27 reclass_data_revision: master
28 salt_master_environment_repository: "https://github.com/tcpcloud"
29 salt_master_environment_revision: master
Adam Tengler81526202017-07-11 13:03:40 +000030 reclass_config_master: ${_param:infra_config_deploy_address}
31 single_address: ${_param:infra_config_address}
Ales Komarekc12dd412017-06-27 16:24:42 +020032 salt_master_host: 127.0.0.1
33 salt_master_base_environment: prd
34 salt_minion_ca_host: ${linux:network:fqdn}
35 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
36 linux:
37 network:
38 interface:
39 ens4:
40 enabled: true
41 type: eth
42 proto: static
43 address: ${_param:single_address}
44 netmask: 255.255.255.0
45 nginx:
46 server:
47 site:
48 nginx_proxy_openstack_web:
49 proxy:
Jiri Broulikf212d212017-07-21 11:09:00 +020050 host: ${_param:cluster_node01_address}
Ales Komarekc12dd412017-06-27 16:24:42 +020051 nginx_proxy_openstack_api_heat_cfn:
52 enabled: false
Jiri Broulikf212d212017-07-21 11:09:00 +020053 salt:
54 master:
55 reactor:
56 reclass/minion/classify:
57 - salt://reclass/reactor/node_register.sls
Ales Komarekc12dd412017-06-27 16:24:42 +020058 reclass:
59 storage:
Jiri Broulikf212d212017-07-21 11:09:00 +020060 class_mapping:
61 common_node:
62 expression: all
63 node_param:
64 single_address:
65 value_template: <<node_control_ip>>
66 linux_system_codename:
67 value_template: <<node_os>>
68 salt_master_host:
69 value_template: <<node_master_ip>>
70 infra_config:
71 expression: <<node_hostname>>__startswith__cfg
72 cluster_param:
73 infra_config_address:
74 value_template: <<node_control_ip>>
75 infra_config_deploy_address:
76 value_template: <<node_deploy_ip>>
77 cluster_domain:
78 value_template: <<node_domain>>
79 openstack_control01:
80 expression: <<node_hostname>>__equals__ctl01
81 cluster_param:
82 openstack_control_node01_address:
83 value_template: <<node_control_ip>>
84 openstack_compute:
85 expression: <<node_hostname>>__startswith__cmp
86 node_class:
87 value_template:
88 - cluster.<<node_cluster>>.openstack.compute
89 node_param:
90 tenant_address:
91 value_template: <<node_tenant_ip>>
92 external_address:
93 value_template: <<node_external_ip>>
94 openstack_gateway:
95 expression: <<node_hostname>>__startswith__gtw
96 node_class:
97 value_template:
98 - cluster.<<node_cluster>>.openstack.gateway
99 node_param:
100 tenant_address:
101 value_template: <<node_tenant_ip>>
102 external_address:
103 value_template: <<node_external_ip>>
104 cluster_param:
105 openstack_gateway_node01_address:
106 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +0200107 node:
108 openstack_control_node01:
Ales Komarekc12dd412017-06-27 16:24:42 +0200109 params:
110 mysql_cluster_role: master
Jiri Broulikf212d212017-07-21 11:09:00 +0200111
112
113 # nginx:
114 # server:
115 # site:
116 # nginx_proxy_openstack_web:
117 # proxy:
118 # host: prx
119 # nginx_proxy_openstack_api_heat_cfn:
120 # enabled: false
121 # reclass:
122 # storage:
123 # node:
124 # openstack_control_node01:
125 # classes:
126 # - service.galera.master.cluster
127 # params:
128 # mysql_cluster_role: master
129 # linux_system_codename: xenial
130 # openstack_control_node02:
131 # classes:
132 # - service.galera.slave.cluster
133 # params:
134 # mysql_cluster_role: slave
135 # linux_system_codename: xenial
136 # openstack_control_node03:
137 # classes:
138 # - service.galera.slave.cluster
139 # params:
140 # mysql_cluster_role: slave
141 # linux_system_codename: xenial
142 # openstack_compute_node01:
143 # params:
144 # single_address: 172.16.10.105
145 # tenant_address: 10.1.0.105
146 # external_address: 10.16.0.105
147 # openstack_compute_node02:
148 # params:
149 # single_address: 172.16.10.106
150 # tenant_address: 10.1.0.106
151 # external_address: 10.16.0.106
152 # openstack_gateway_node01:
153 # params:
154 # tenant_address: 10.1.0.110
155 # external_address: 10.16.0.110
156 # openstack_proxy_node01:
157 # classes:
158 # - cluster.os_aio_ovs.openstack.proxy
159 # params:
160 # linux_system_codename: xenial
161