blob: f55d501853f619651bf7b51d4ef10e37bf225bc7 [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.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
Inessa Vasilevskaya793dbd12018-09-10 17:48:48 +020041- system.cassandra.backup.server.single
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"
Inessa Vasilevskaya793dbd12018-09-10 17:48:48 +020054 cassandra_backup_public_key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD5OlYhHotouWbHRPu35pZG+sCDplz0+Khg3NYpbFf34xi6bD7nFbzICctJDn1xNPxkA3f7kFsqaV410n2Whd/m5gbqGyI2vmkequTQOqp64loxv3m4BEloB1noGYXfpz5QVHX3yhEv0KfoaUWGFaL5ciDpklL2GHafaCLnmEVE0OufP8P8p8P62tyK/Cn2RyAfCtajKbdWHjFgfH1vXAIrxegJeJBFuHptyiP3E0IROSojg7naBAPCCywBzl9uXqB+gvmXlTYAtsO8meNNlzz8trdFlEVnMpe7icKWjOU61m2psMZeV9/KSLEa3SdOKW475udXphXgdi51HWCZDFdL
Pavel Svimberskya48a9bc2017-08-23 16:00:02 +020055 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
Jan Cach58876a72018-09-19 15:11:33 +0200164 - cluster.os-ha-contrail-40.openstack.control_init
Pavel Svimberskya48a9bc2017-08-23 16:00:02 +0200165 params:
166 mysql_cluster_role: master
167 linux_system_codename: xenial
168 horizon_identity_host: ${_param:openstack_control_address}
169 openstack_control_node02:
170 classes:
171 - service.galera.slave.cluster
Pavel Svimberskya48a9bc2017-08-23 16:00:02 +0200172 params:
173 mysql_cluster_role: slave
174 linux_system_codename: xenial
175 horizon_identity_host: ${_param:openstack_control_address}
176 openstack_control_node03:
177 classes:
178 - service.galera.slave.cluster
Pavel Svimberskya48a9bc2017-08-23 16:00:02 +0200179 params:
180 mysql_cluster_role: slave
181 linux_system_codename: xenial
182 horizon_identity_host: ${_param:openstack_control_address}
Inessa Vasilevskaya793dbd12018-09-10 17:48:48 +0200183 opencontrail_control_node01:
184 classes:
185 - cluster.${_param:cluster_name}.opencontrail.control_init