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