blob: 7eb7bfabcee083cc37f96cb38b90e9792edf05a2 [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
Petr Jediný16b02842018-01-15 18:28:24 +01005- system.linux.system.repo.mcp.openstack
Pavel Svimberskya48a9bc2017-08-23 16:00:02 +02006- system.openssh.client.lab
Pavel Svimberskya48a9bc2017-08-23 16:00:02 +02007- system.salt.master.pkg
Dennis Dmitriev6635bfd2018-03-20 04:50:12 +02008- system.salt.master.api
Pavel Svimberskya48a9bc2017-08-23 16:00:02 +02009- system.reclass.storage.salt
10- system.salt.minion.ca.salt_master
11- system.salt.minion.cert.proxy
12- system.sphinx.server.doc.reclass
13- system.keystone.client.core
14- system.keystone.client.service.designate
15- system.keystone.client.service.cinder
16- system.keystone.client.service.cinder2
17- system.keystone.client.service.cinder3
18- system.keystone.client.service.glance
19- system.keystone.client.service.glare
20- system.keystone.client.service.heat
21- system.keystone.client.service.heat-cfn
22- system.keystone.client.service.keystone
23- system.keystone.client.service.neutron
24- system.keystone.client.service.nova-ec2
25- system.keystone.client.service.nova21
26- system.keystone.client.service.nova-placement
27- system.mysql.client
28- system.mysql.client.database.cinder
29- system.mysql.client.database.glance
30- system.mysql.client.database.heat
31- system.mysql.client.database.keystone
32- system.mysql.client.database.nova
33- system.mysql.client.database.nova_api
34- system.mysql.client.database.neutron
35- system.reclass.storage.system.openstack_control_cluster
36- system.reclass.storage.system.opencontrail_control_cluster
Petr Jedinýcddcb242017-11-28 20:18:43 +010037- system.glance.client.image.cirros
38- system.glance.client.image.ubuntu_xenial
39- system.nova.client.flavor.default
Petr Michalecf05e3ea2017-08-21 17:33:16 +020040- cluster.os-ha-contrail-40.openstack.proxy
41- cluster.os-ha-contrail-40
Pavel Svimberskya48a9bc2017-08-23 16:00:02 +020042parameters:
43 _param:
Petr Jedinýf52f6452017-12-01 18:18:38 +010044 ubuntu_xenial_image_url: "http://ci.mcp.mirantis.net:8085/images/ubuntu-16-04-x64-mcp1.1.qcow2"
45 cirros_image_url: "http://ci.mcp.mirantis.net:8085/images/cirros-x64-20170828.qcow2"
Pavel Svimberskya48a9bc2017-08-23 16:00:02 +020046 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab"
47 reclass_data_revision: master
48 reclass_config_master: ${_param:infra_config_deploy_address}
49 single_address: ${_param:infra_config_address}
50 salt_master_host: 127.0.0.1
51 salt_master_base_environment: prd
52 salt_minion_ca_host: ${linux:network:fqdn}
53 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
54 linux:
Petr Jedinýcddcb242017-11-28 20:18:43 +010055 system:
56 kernel:
57 sysctl:
58 net.ipv4.conf.ens3.forwarding: 1
59 net.ipv4.conf.ens3.send_redirects: 0
Pavel Svimberskya48a9bc2017-08-23 16:00:02 +020060 network:
61 interface:
62 ens4:
63 enabled: true
64 type: eth
65 proto: static
66 address: ${_param:single_address}
67 netmask: 255.255.255.0
Petr Jedinýcddcb242017-11-28 20:18:43 +010068 # This is workaround for different interface
69 pre_up_cmds:
70 - "iptables -t nat -A POSTROUTING -o ens3 -j MASQUERADE"
71 post_down_cmds:
72 - "iptables -t nat -F POSTROUTING"
Pavel Svimberskya48a9bc2017-08-23 16:00:02 +020073 nginx:
74 server:
75 site:
76 nginx_proxy_openstack_web:
77 proxy:
78 host: ${_param:openstack_control_address}
79 nginx_proxy_openstack_api_heat_cfn:
80 enabled: false
81 salt:
82 master:
83 reactor:
84 reclass/minion/classify:
85 - salt://reclass/reactor/node_register.sls
86 reclass:
87 storage:
88 class_mapping:
89 common_node:
90 expression: all
91 node_param:
92 single_address:
93 value_template: <<node_control_ip>>
94 linux_system_codename:
95 value_template: <<node_os>>
96 salt_master_host:
97 value_template: <<node_master_ip>>
psvimberskycefede52018-01-10 16:40:28 +010098 mark_contrail_version:
99 expression: <<opencontrail_version>>__startswith__oc
100 cluster_param:
101 linux_repo_contrail_component:
102 value_template: <<opencontrail_version>>
Pavel Svimberskya48a9bc2017-08-23 16:00:02 +0200103 infra_config:
104 expression: <<node_hostname>>__startswith__cfg
105 cluster_param:
106 infra_config_address:
107 value_template: <<node_control_ip>>
108 infra_config_deploy_address:
109 value_template: <<node_deploy_ip>>
110 cluster_domain:
111 value_template: <<node_domain>>
112 openstack_control01:
113 expression: <<node_hostname>>__equals__ctl01
114 cluster_param:
115 openstack_control_node01_address:
116 value_template: <<node_control_ip>>
117 openstack_control02:
118 expression: <<node_hostname>>__equals__ctl02
119 cluster_param:
120 openstack_control_node02_address:
121 value_template: <<node_control_ip>>
122 openstack_control03:
123 expression: <<node_hostname>>__equals__ctl03
124 cluster_param:
125 openstack_control_node03_address:
126 value_template: <<node_control_ip>>
Pavel Svimbersky51f2c6a2017-08-24 11:52:02 +0200127 opencontrail_control:
128 expression: <<node_hostname>>__startswith__ntw
129 cluster_param:
130 opencontrail_control_system_codename:
131 value_template: <<node_os>>
132 opencontrail_control_interface_name:
133 value_template: <<node_control_iface>>
Pavel Svimberskya48a9bc2017-08-23 16:00:02 +0200134 opencontrail_control01:
135 expression: <<node_hostname>>__equals__ntw01
136 cluster_param:
137 opencontrail_control_node01_address:
138 value_template: <<node_control_ip>>
139 opencontrail_control02:
140 expression: <<node_hostname>>__equals__ntw02
141 cluster_param:
142 opencontrail_control_node02_address:
143 value_template: <<node_control_ip>>
144 opencontrail_control03:
145 expression: <<node_hostname>>__equals__ntw03
146 cluster_param:
147 opencontrail_control_node03_address:
148 value_template: <<node_control_ip>>
149 openstack_compute:
150 expression: <<node_hostname>>__startswith__cmp
151 node_class:
152 value_template:
153 - cluster.<<node_cluster>>.openstack.compute
154 node_param:
155 tenant_address:
156 value_template: <<node_tenant_ip>>
157 external_address:
158 value_template: <<node_external_ip>>
159 node:
160 openstack_control_node01:
161 classes:
162 - service.galera.master.cluster
Pavel Svimberskya48a9bc2017-08-23 16:00:02 +0200163 params:
164 mysql_cluster_role: master
165 linux_system_codename: xenial
166 horizon_identity_host: ${_param:openstack_control_address}
167 openstack_control_node02:
168 classes:
169 - service.galera.slave.cluster
Pavel Svimberskya48a9bc2017-08-23 16:00:02 +0200170 params:
171 mysql_cluster_role: slave
172 linux_system_codename: xenial
173 horizon_identity_host: ${_param:openstack_control_address}
174 openstack_control_node03:
175 classes:
176 - service.galera.slave.cluster
Pavel Svimberskya48a9bc2017-08-23 16:00:02 +0200177 params:
178 mysql_cluster_role: slave
179 linux_system_codename: xenial
180 horizon_identity_host: ${_param:openstack_control_address}