blob: f248234f9e496940aa5ef5c2ebaa93b1724ca96e [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
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>>
psvimberskycefede52018-01-10 16:40:28 +010097 mark_contrail_version:
98 expression: <<opencontrail_version>>__startswith__oc
99 cluster_param:
100 linux_repo_contrail_component:
101 value_template: <<opencontrail_version>>
Pavel Svimberskya48a9bc2017-08-23 16:00:02 +0200102 infra_config:
103 expression: <<node_hostname>>__startswith__cfg
104 cluster_param:
105 infra_config_address:
106 value_template: <<node_control_ip>>
107 infra_config_deploy_address:
108 value_template: <<node_deploy_ip>>
109 cluster_domain:
110 value_template: <<node_domain>>
111 openstack_control01:
112 expression: <<node_hostname>>__equals__ctl01
113 cluster_param:
114 openstack_control_node01_address:
115 value_template: <<node_control_ip>>
116 openstack_control02:
117 expression: <<node_hostname>>__equals__ctl02
118 cluster_param:
119 openstack_control_node02_address:
120 value_template: <<node_control_ip>>
121 openstack_control03:
122 expression: <<node_hostname>>__equals__ctl03
123 cluster_param:
124 openstack_control_node03_address:
125 value_template: <<node_control_ip>>
Pavel Svimbersky51f2c6a2017-08-24 11:52:02 +0200126 opencontrail_control:
127 expression: <<node_hostname>>__startswith__ntw
128 cluster_param:
129 opencontrail_control_system_codename:
130 value_template: <<node_os>>
131 opencontrail_control_interface_name:
132 value_template: <<node_control_iface>>
Pavel Svimberskya48a9bc2017-08-23 16:00:02 +0200133 opencontrail_control01:
134 expression: <<node_hostname>>__equals__ntw01
135 cluster_param:
136 opencontrail_control_node01_address:
137 value_template: <<node_control_ip>>
138 opencontrail_control02:
139 expression: <<node_hostname>>__equals__ntw02
140 cluster_param:
141 opencontrail_control_node02_address:
142 value_template: <<node_control_ip>>
143 opencontrail_control03:
144 expression: <<node_hostname>>__equals__ntw03
145 cluster_param:
146 opencontrail_control_node03_address:
147 value_template: <<node_control_ip>>
148 openstack_compute:
149 expression: <<node_hostname>>__startswith__cmp
150 node_class:
151 value_template:
152 - cluster.<<node_cluster>>.openstack.compute
153 node_param:
154 tenant_address:
155 value_template: <<node_tenant_ip>>
156 external_address:
157 value_template: <<node_external_ip>>
158 node:
159 openstack_control_node01:
160 classes:
161 - service.galera.master.cluster
Jan Cach58876a72018-09-19 15:11:33 +0200162 - cluster.os-ha-contrail-40.openstack.control_init
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}