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