blob: c441d23d72f57d5dfe926ba27919507c45d2a171 [file] [log] [blame]
Vasyl Saienko91160482018-02-20 17:31:33 +02001classes:
2- service.git.client
3- system.linux.system.single
4- system.linux.system.repo.mcp.salt
5- system.linux.system.repo.mcp.apt_mirantis.openstack
6- system.openssh.client.lab
Vasyl Saienko91160482018-02-20 17:31:33 +02007- system.salt.master.pkg
Dennis Dmitriev6635bfd2018-03-20 04:50:12 +02008- system.salt.master.api
Mykyta Karpin96cc7982018-03-19 12:41:51 +02009- system.salt.master.formula.pkg.manila
Vasyl Saienko91160482018-02-20 17:31:33 +020010- system.reclass.storage.salt
11- system.salt.minion.ca.salt_master
Vasyl Saienko91160482018-02-20 17:31:33 +020012- system.sphinx.server.doc.reclass
13- system.keystone.client.single
Vasyl Saienko91160482018-02-20 17:31:33 +020014- system.keystone.client.service.nova21
15- system.keystone.client.service.nova-placement
16- system.keystone.client.service.cinder3
17- system.keystone.client.service.designate
Mykyta Karpin96cc7982018-03-19 12:41:51 +020018- system.keystone.client.service.manila
19- system.keystone.client.service.manila2
Tatyana Leontovich5bfb1e62018-02-22 19:39:09 +020020- system.reclass.storage.system.openstack_dns_cluster
Vasyl Saienko91160482018-02-20 17:31:33 +020021- system.reclass.storage.system.openstack_control_cluster
Tatyana Leontovich5bfb1e62018-02-22 19:39:09 +020022- system.reclass.storage.system.openstack_compute_multi
23- system.reclass.storage.system.openstack_gateway_single
24- system.reclass.storage.system.openstack_dashboard_single
Vasyl Saienko91160482018-02-20 17:31:33 +020025- cluster.virtual-mcp-pike-dvr-ssl
26parameters:
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
32 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
33 reclass_config_master: 192.168.10.90
34 single_address: 172.16.10.100
35 salt_master_host: 127.0.0.1
36 salt_master_base_environment: prd
37 linux:
38 network:
39 interface:
40 ens4:
41 enabled: true
42 type: eth
43 proto: static
44 address: ${_param:single_address}
45 netmask: 255.255.255.0
Vasyl Saienko91160482018-02-20 17:31:33 +020046 salt:
47 master:
48 reactor:
49 reclass/minion/classify:
50 - salt://reclass/reactor/node_register.sls
51 reclass:
52 storage:
53 class_mapping:
54 common_node:
55 expression: all
56 node_param:
57 single_address:
58 value_template: <<node_control_ip>>
59 linux_system_codename:
60 value_template: <<node_os>>
61 salt_master_host:
62 value_template: <<node_master_ip>>
63 infra_config:
64 expression: <<node_hostname>>__startswith__cfg
65 cluster_param:
66 infra_config_address:
67 value_template: <<node_control_ip>>
68 infra_config_deploy_address:
69 value_template: <<node_deploy_ip>>
70 cluster_domain:
71 value_template: <<node_domain>>
72 openstack_control01:
73 expression: <<node_hostname>>__equals__ctl01
74 cluster_param:
75 openstack_control_node01_address:
76 value_template: <<node_control_ip>>
77 openstack_control02:
78 expression: <<node_hostname>>__equals__ctl02
79 cluster_param:
80 openstack_control_node02_address:
81 value_template: <<node_control_ip>>
82 openstack_control03:
83 expression: <<node_hostname>>__equals__ctl03
84 cluster_param:
85 openstack_control_node03_address:
86 value_template: <<node_control_ip>>
87 openstack_compute:
88 expression: <<node_hostname>>__startswith__cmp
89 node_class:
90 value_template:
91 - cluster.<<node_cluster>>.openstack.compute
92 node_param:
93 tenant_address:
94 value_template: <<node_tenant_ip>>
95 external_address:
96 value_template: <<node_external_ip>>
97 openstack_gateway:
98 expression: <<node_hostname>>__startswith__gtw
99 node_class:
100 value_template:
101 - cluster.<<node_cluster>>.openstack.gateway
102 node_param:
103 tenant_address:
104 value_template: <<node_tenant_ip>>
105 external_address:
106 value_template: <<node_external_ip>>
107 cluster_param:
108 openstack_gateway_node01_address:
109 value_template: <<node_control_ip>>
Vasyl Saienko91160482018-02-20 17:31:33 +0200110 openstack_dashboard:
111 expression: <<node_hostname>>__startswith__prx
112 node_class:
113 value_template:
114 - cluster.<<node_cluster>>.openstack.dashboard
115 - cluster.<<node_cluster>>.openstack.proxy
116 cluster_param:
117 openstack_proxy_node01_address:
118 value_template: <<node_control_ip>>
Mykyta Karpin96cc7982018-03-19 12:41:51 +0200119 openstack_share:
120 expression: <<node_hostname>>__startswith__share
121 node_class:
122 value_template:
123 - cluster.<<node_cluster>>.openstack.share
124 node_param:
125 manila_share_address:
126 value_template: <<node_tenant_ip>>
Vasyl Saienko91160482018-02-20 17:31:33 +0200127 node:
128 openstack_control_node01:
129 classes:
130 - service.galera.master.cluster
131 params:
132 mysql_cluster_role: master
133 linux_system_codename: xenial
134 openstack_control_node02:
135 classes:
136 - service.galera.slave.cluster
137 params:
138 mysql_cluster_role: slave
139 linux_system_codename: xenial
140 openstack_control_node03:
141 classes:
142 - service.galera.slave.cluster
143 params:
144 mysql_cluster_role: slave
145 linux_system_codename: xenial
Tatyana Leontovich5bfb1e62018-02-22 19:39:09 +0200146 openstack_compute_node01:
147 params:
148 single_address: 172.16.10.105
149 tenant_address: 10.1.0.105
150 external_address: 10.16.0.105
151 openstack_compute_node02:
152 params:
153 single_address: 172.16.10.106
154 tenant_address: 10.1.0.106
155 external_address: 10.16.0.106
156 openstack_gateway_node01:
157 params:
158 tenant_address: 10.1.0.110
159 external_address: 10.16.0.110
160 openstack_proxy_node01:
161 classes:
162 - cluster.virtual-mcp-pike-dvr-ssl.openstack.proxy
163 params:
164 linux_system_codename: xenial