blob: a3b7a52544c109f1de7bcb53a484f7b5a82f624e [file] [log] [blame]
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +02001classes:
2- service.git.client
3- system.linux.system.single
4- system.linux.system.repo.mcp.salt
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +02005- system.linux.system.repo.mcp.apt_mirantis.openstack
6- system.openssh.client.lab
7- system.salt.master.api
8- system.salt.master.pkg
Vasyl Saienko7a031d02018-03-14 15:35:13 +02009- system.salt.master.formula.pkg.manila
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020010- system.reclass.storage.salt
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020011- system.salt.minion.ca.salt_master
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020012- system.sphinx.server.doc.reclass
13- system.keystone.client.single
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020014- system.keystone.client.service.nova21
15- system.keystone.client.service.nova-placement
16- system.keystone.client.service.glare
17- system.keystone.client.service.cinder3
Tatyana Leontovich15b38e82018-01-11 13:06:38 +020018- system.keystone.client.service.designate
Vasyl Saienko7a031d02018-03-14 15:35:13 +020019- system.keystone.client.service.manila
20- system.keystone.client.service.manila2
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020021- system.reclass.storage.system.openstack_control_cluster
22- system.reclass.storage.system.openstack_compute_multi
23- system.reclass.storage.system.openstack_gateway_single
24- system.reclass.storage.system.openstack_dashboard_single
Tatyana Leontovich15b38e82018-01-11 13:06:38 +020025- cluster.virtual-mcp-pike-ovs
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020026parameters:
27 _param:
28 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
29 reclass_data_revision: master
30 salt_master_environment_repository: "https://github.com/tcpcloud"
31 salt_master_environment_revision: master
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020032 reclass_config_master: 192.168.10.90
33 single_address: 172.16.10.100
34 salt_master_host: 127.0.0.1
35 salt_master_base_environment: prd
36 salt_minion_ca_host: ${linux:network:fqdn}
Tatyana Leontovich15b38e82018-01-11 13:06:38 +020037 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020038 linux:
39 network:
40 interface:
41 ens4:
42 enabled: true
43 type: eth
44 proto: static
45 address: ${_param:single_address}
46 netmask: 255.255.255.0
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020047 salt:
48 master:
49 reactor:
50 reclass/minion/classify:
51 - salt://reclass/reactor/node_register.sls
52 reclass:
53 storage:
54 class_mapping:
55 common_node:
56 expression: all
57 node_param:
58 single_address:
59 value_template: <<node_control_ip>>
60 linux_system_codename:
61 value_template: <<node_os>>
62 salt_master_host:
63 value_template: <<node_master_ip>>
64 infra_config:
65 expression: <<node_hostname>>__startswith__cfg
66 cluster_param:
67 infra_config_address:
68 value_template: <<node_control_ip>>
69 infra_config_deploy_address:
70 value_template: <<node_deploy_ip>>
71 cluster_domain:
72 value_template: <<node_domain>>
73 openstack_control01:
74 expression: <<node_hostname>>__equals__ctl01
75 cluster_param:
76 openstack_control_node01_address:
77 value_template: <<node_control_ip>>
78 openstack_control02:
79 expression: <<node_hostname>>__equals__ctl02
80 cluster_param:
81 openstack_control_node02_address:
82 value_template: <<node_control_ip>>
83 openstack_control03:
84 expression: <<node_hostname>>__equals__ctl03
85 cluster_param:
86 openstack_control_node03_address:
87 value_template: <<node_control_ip>>
88 openstack_compute:
89 expression: <<node_hostname>>__startswith__cmp
90 node_class:
91 value_template:
92 - cluster.<<node_cluster>>.openstack.compute
93 node_param:
94 tenant_address:
95 value_template: <<node_tenant_ip>>
96 external_address:
97 value_template: <<node_external_ip>>
98 openstack_gateway:
99 expression: <<node_hostname>>__startswith__gtw
100 node_class:
101 value_template:
102 - cluster.<<node_cluster>>.openstack.gateway
103 node_param:
104 tenant_address:
105 value_template: <<node_tenant_ip>>
106 external_address:
107 value_template: <<node_external_ip>>
108 cluster_param:
109 openstack_gateway_node01_address:
110 value_template: <<node_control_ip>>
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200111 openstack_dashboard:
112 expression: <<node_hostname>>__startswith__prx
113 node_class:
114 value_template:
115 - cluster.<<node_cluster>>.openstack.dashboard
116 - cluster.<<node_cluster>>.openstack.proxy
117 cluster_param:
118 openstack_proxy_node01_address:
119 value_template: <<node_control_ip>>
Vasyl Saienko7a031d02018-03-14 15:35:13 +0200120 openstack_share:
121 expression: <<node_hostname>>__startswith__share
122 node_class:
123 value_template:
124 - cluster.<<node_cluster>>.openstack.share
125 node_param:
126 manila_share_address:
127 value_template: <<node_tenant_ip>>
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200128 node:
129 openstack_control_node01:
130 classes:
131 - service.galera.master.cluster
132 params:
133 mysql_cluster_role: master
134 linux_system_codename: xenial
135 openstack_control_node02:
136 classes:
137 - service.galera.slave.cluster
138 params:
139 mysql_cluster_role: slave
140 linux_system_codename: xenial
141 openstack_control_node03:
142 classes:
143 - service.galera.slave.cluster
144 params:
145 mysql_cluster_role: slave
146 linux_system_codename: xenial
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200147 openstack_compute_node01:
148 params:
149 single_address: 172.16.10.105
150 tenant_address: 10.1.0.105
151 external_address: 10.16.0.105
152 openstack_compute_node02:
153 params:
154 single_address: 172.16.10.106
155 tenant_address: 10.1.0.106
156 external_address: 10.16.0.106
157 openstack_gateway_node01:
158 params:
159 tenant_address: 10.1.0.110
160 external_address: 10.16.0.110
161 openstack_proxy_node01:
162 classes:
Tatyana Leontovich15b38e82018-01-11 13:06:38 +0200163 - cluster.virtual-mcp-pike-ovs.openstack.proxy
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200164 params:
165 linux_system_codename: xenial