blob: b93074a7de5aef25489ed2b94fec194f4d10c880 [file] [log] [blame]
Pavel Svimberskya48a9bc2017-08-23 16:00:02 +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.core
13- system.keystone.client.service.designate
14- system.keystone.client.service.cinder
15- system.keystone.client.service.cinder2
16- system.keystone.client.service.cinder3
17- system.keystone.client.service.glance
18- system.keystone.client.service.glare
19- system.keystone.client.service.heat
20- system.keystone.client.service.heat-cfn
21- system.keystone.client.service.keystone
22- system.keystone.client.service.neutron
23- system.keystone.client.service.nova-ec2
24- system.keystone.client.service.nova21
25- system.keystone.client.service.nova-placement
26- system.mysql.client
27- system.mysql.client.database.cinder
28- system.mysql.client.database.glance
29- system.mysql.client.database.heat
30- system.mysql.client.database.keystone
31- system.mysql.client.database.nova
32- system.mysql.client.database.nova_api
33- system.mysql.client.database.neutron
34- system.reclass.storage.system.openstack_control_cluster
35- system.reclass.storage.system.opencontrail_control_cluster
Petr Jedinýcddcb242017-11-28 20:18:43 +010036- system.glance.client.image.cirros
37- system.glance.client.image.ubuntu_xenial
38- system.nova.client.flavor.default
Petr Michalecf05e3ea2017-08-21 17:33:16 +020039- cluster.os-ha-contrail-40.openstack.proxy
40- cluster.os-ha-contrail-40
Pavel Svimberskya48a9bc2017-08-23 16:00:02 +020041parameters:
42 _param:
Petr Jedinýf52f6452017-12-01 18:18:38 +010043 ubuntu_xenial_image_url: "http://ci.mcp.mirantis.net:8085/images/ubuntu-16-04-x64-mcp1.1.qcow2"
44 cirros_image_url: "http://ci.mcp.mirantis.net:8085/images/cirros-x64-20170828.qcow2"
Pavel Svimberskya48a9bc2017-08-23 16:00:02 +020045 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab"
46 reclass_data_revision: master
47 reclass_config_master: ${_param:infra_config_deploy_address}
48 single_address: ${_param:infra_config_address}
49 salt_master_host: 127.0.0.1
50 salt_master_base_environment: prd
51 salt_minion_ca_host: ${linux:network:fqdn}
52 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
53 linux:
Petr Jedinýcddcb242017-11-28 20:18:43 +010054 system:
55 kernel:
56 sysctl:
57 net.ipv4.conf.ens3.forwarding: 1
58 net.ipv4.conf.ens3.send_redirects: 0
Pavel Svimberskya48a9bc2017-08-23 16:00:02 +020059 network:
60 interface:
61 ens4:
62 enabled: true
63 type: eth
64 proto: static
65 address: ${_param:single_address}
66 netmask: 255.255.255.0
Petr Jedinýcddcb242017-11-28 20:18:43 +010067 # This is workaround for different interface
68 pre_up_cmds:
69 - "iptables -t nat -A POSTROUTING -o ens3 -j MASQUERADE"
70 post_down_cmds:
71 - "iptables -t nat -F POSTROUTING"
Pavel Svimberskya48a9bc2017-08-23 16:00:02 +020072 nginx:
73 server:
74 site:
75 nginx_proxy_openstack_web:
76 proxy:
77 host: ${_param:openstack_control_address}
78 nginx_proxy_openstack_api_heat_cfn:
79 enabled: false
80 salt:
81 master:
82 reactor:
83 reclass/minion/classify:
84 - salt://reclass/reactor/node_register.sls
85 reclass:
86 storage:
87 class_mapping:
88 common_node:
89 expression: all
90 node_param:
91 single_address:
92 value_template: <<node_control_ip>>
93 linux_system_codename:
94 value_template: <<node_os>>
95 salt_master_host:
96 value_template: <<node_master_ip>>
97 infra_config:
98 expression: <<node_hostname>>__startswith__cfg
99 cluster_param:
100 infra_config_address:
101 value_template: <<node_control_ip>>
102 infra_config_deploy_address:
103 value_template: <<node_deploy_ip>>
104 cluster_domain:
105 value_template: <<node_domain>>
106 openstack_control01:
107 expression: <<node_hostname>>__equals__ctl01
108 cluster_param:
109 openstack_control_node01_address:
110 value_template: <<node_control_ip>>
111 openstack_control02:
112 expression: <<node_hostname>>__equals__ctl02
113 cluster_param:
114 openstack_control_node02_address:
115 value_template: <<node_control_ip>>
116 openstack_control03:
117 expression: <<node_hostname>>__equals__ctl03
118 cluster_param:
119 openstack_control_node03_address:
120 value_template: <<node_control_ip>>
Pavel Svimbersky51f2c6a2017-08-24 11:52:02 +0200121 opencontrail_control:
122 expression: <<node_hostname>>__startswith__ntw
123 cluster_param:
124 opencontrail_control_system_codename:
125 value_template: <<node_os>>
126 opencontrail_control_interface_name:
127 value_template: <<node_control_iface>>
Pavel Svimberskya48a9bc2017-08-23 16:00:02 +0200128 opencontrail_control01:
129 expression: <<node_hostname>>__equals__ntw01
130 cluster_param:
131 opencontrail_control_node01_address:
132 value_template: <<node_control_ip>>
133 opencontrail_control02:
134 expression: <<node_hostname>>__equals__ntw02
135 cluster_param:
136 opencontrail_control_node02_address:
137 value_template: <<node_control_ip>>
138 opencontrail_control03:
139 expression: <<node_hostname>>__equals__ntw03
140 cluster_param:
141 opencontrail_control_node03_address:
142 value_template: <<node_control_ip>>
143 openstack_compute:
144 expression: <<node_hostname>>__startswith__cmp
145 node_class:
146 value_template:
147 - cluster.<<node_cluster>>.openstack.compute
148 node_param:
149 tenant_address:
150 value_template: <<node_tenant_ip>>
151 external_address:
152 value_template: <<node_external_ip>>
153 node:
154 openstack_control_node01:
155 classes:
156 - service.galera.master.cluster
Petr Michalecf05e3ea2017-08-21 17:33:16 +0200157 - cluster.os-ha-contrail-40.openstack.dashboard
Pavel Svimberskya48a9bc2017-08-23 16:00:02 +0200158 params:
159 mysql_cluster_role: master
160 linux_system_codename: xenial
161 horizon_identity_host: ${_param:openstack_control_address}
162 openstack_control_node02:
163 classes:
164 - service.galera.slave.cluster
Petr Michalecf05e3ea2017-08-21 17:33:16 +0200165 - cluster.os-ha-contrail-40.openstack.dashboard
Pavel Svimberskya48a9bc2017-08-23 16:00:02 +0200166 params:
167 mysql_cluster_role: slave
168 linux_system_codename: xenial
169 horizon_identity_host: ${_param:openstack_control_address}
170 openstack_control_node03:
171 classes:
172 - service.galera.slave.cluster
Petr Michalecf05e3ea2017-08-21 17:33:16 +0200173 - cluster.os-ha-contrail-40.openstack.dashboard
Pavel Svimberskya48a9bc2017-08-23 16:00:02 +0200174 params:
175 mysql_cluster_role: slave
176 linux_system_codename: xenial
177 horizon_identity_host: ${_param:openstack_control_address}