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