blob: 897297c9e3103fb6ccf1132fc3a30801b204d656 [file] [log] [blame]
Ales Komarekc12dd412017-06-27 16:24:42 +02001classes:
2- service.git.client
Jan Cachc9975612018-01-15 18:56:01 +01003- service.opencontrail.test.single
Ales Komarekc12dd412017-06-27 16:24:42 +02004- system.linux.system.single
Martin Polreicha0addcc2018-06-25 11:32:52 +02005- system.linux.system.repo.mcp.apt_mirantis.saltstack
Jan Cach4446e412017-09-21 11:30:54 +02006- system.linux.system.repo.mcp.openstack
Ales Komarekc12dd412017-06-27 16:24:42 +02007- system.openssh.client.lab
Ales Komarekc12dd412017-06-27 16:24:42 +02008- system.salt.master.pkg
Dennis Dmitriev6635bfd2018-03-20 04:50:12 +02009- system.salt.master.api
Ales Komarekc12dd412017-06-27 16:24:42 +020010- system.reclass.storage.salt
11- system.salt.minion.ca.salt_master
12- system.salt.minion.cert.proxy
13- system.sphinx.server.doc.reclass
Petr Jediný3114a392017-08-02 15:21:09 +020014- system.keystone.client.core
Petr Jedinýbef780d2017-09-07 15:08:09 +020015- system.keystone.client.service.barbican
Petr Jediný3114a392017-08-02 15:21:09 +020016- system.keystone.client.service.cinder
17- system.keystone.client.service.cinder2
18- system.keystone.client.service.cinder3
Petr Jedinýbef780d2017-09-07 15:08:09 +020019- system.keystone.client.service.designate
Petr Jediný3114a392017-08-02 15:21:09 +020020- system.keystone.client.service.glance
21- system.keystone.client.service.glare
22- system.keystone.client.service.heat
23- system.keystone.client.service.heat-cfn
24- system.keystone.client.service.keystone
25- system.keystone.client.service.neutron
26- system.keystone.client.service.nova-ec2
27- system.keystone.client.service.nova21
28- system.keystone.client.service.nova-placement
Adam Tengler2b36a762017-07-13 14:34:47 +000029- system.mysql.client
Petr Jedinýbef780d2017-09-07 15:08:09 +020030- system.mysql.client.database.barbican
Adam Tengler2b36a762017-07-13 14:34:47 +000031- system.mysql.client.database.cinder
32- system.mysql.client.database.glance
33- system.mysql.client.database.heat
34- system.mysql.client.database.keystone
35- system.mysql.client.database.nova
36- system.mysql.client.database.nova_api
37- system.mysql.client.database.neutron
Ales Komarekc12dd412017-06-27 16:24:42 +020038- system.reclass.storage.system.openstack_control_cluster
39- system.reclass.storage.system.opencontrail_control_cluster
Petr Jedinýcddcb242017-11-28 20:18:43 +010040- system.nova.client.flavor.default
Petr Michalecf05e3ea2017-08-21 17:33:16 +020041- cluster.os-ha-contrail.openstack.proxy
42- cluster.os-ha-contrail
Inessa Vasilevskaya793dbd12018-09-10 17:48:48 +020043- system.cassandra.backup.server.single
Ales Komarekc12dd412017-06-27 16:24:42 +020044parameters:
45 _param:
Petr Jedinýf52f6452017-12-01 18:18:38 +010046 ubuntu_xenial_image_url: "http://ci.mcp.mirantis.net:8085/images/ubuntu-16-04-x64-mcp1.1.qcow2"
47 cirros_image_url: "http://ci.mcp.mirantis.net:8085/images/cirros-x64-20170828.qcow2"
Ales Komarekc12dd412017-06-27 16:24:42 +020048 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab"
49 reclass_data_revision: master
Adam Tenglerc6176502017-07-04 20:45:06 +000050 reclass_config_master: ${_param:infra_config_deploy_address}
51 single_address: ${_param:infra_config_address}
Ales Komarekc12dd412017-06-27 16:24:42 +020052 salt_master_host: 127.0.0.1
53 salt_master_base_environment: prd
54 salt_minion_ca_host: ${linux:network:fqdn}
55 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
Inessa Vasilevskaya793dbd12018-09-10 17:48:48 +020056 cassandra_backup_public_key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD5OlYhHotouWbHRPu35pZG+sCDplz0+Khg3NYpbFf34xi6bD7nFbzICctJDn1xNPxkA3f7kFsqaV410n2Whd/m5gbqGyI2vmkequTQOqp64loxv3m4BEloB1noGYXfpz5QVHX3yhEv0KfoaUWGFaL5ciDpklL2GHafaCLnmEVE0OufP8P8p8P62tyK/Cn2RyAfCtajKbdWHjFgfH1vXAIrxegJeJBFuHptyiP3E0IROSojg7naBAPCCywBzl9uXqB+gvmXlTYAtsO8meNNlzz8trdFlEVnMpe7icKWjOU61m2psMZeV9/KSLEa3SdOKW475udXphXgdi51HWCZDFdL
Ales Komarekc12dd412017-06-27 16:24:42 +020057 linux:
Petr Jedinýcddcb242017-11-28 20:18:43 +010058 system:
59 kernel:
60 sysctl:
61 net.ipv4.conf.ens3.forwarding: 1
62 net.ipv4.conf.ens3.send_redirects: 0
Ales Komarekc12dd412017-06-27 16:24:42 +020063 network:
64 interface:
65 ens4:
66 enabled: true
67 type: eth
68 proto: static
69 address: ${_param:single_address}
70 netmask: 255.255.255.0
Petr Jedinýcddcb242017-11-28 20:18:43 +010071 # This is workaround for different interface
72 pre_up_cmds:
73 - "iptables -t nat -A POSTROUTING -o ens3 -j MASQUERADE"
74 post_down_cmds:
75 - "iptables -t nat -F POSTROUTING"
Ales Komarekc12dd412017-06-27 16:24:42 +020076 nginx:
77 server:
78 site:
79 nginx_proxy_openstack_web:
80 proxy:
Jan Cach4446e412017-09-21 11:30:54 +020081 host: ${_param:infra_config_address}
Ales Komarekc12dd412017-06-27 16:24:42 +020082 nginx_proxy_openstack_api_heat_cfn:
83 enabled: false
Adam Tengler4f23d962017-07-04 19:54:59 +000084 salt:
85 master:
86 reactor:
87 reclass/minion/classify:
88 - salt://reclass/reactor/node_register.sls
Ales Komarekc12dd412017-06-27 16:24:42 +020089 reclass:
90 storage:
Adam Tengler4f23d962017-07-04 19:54:59 +000091 class_mapping:
92 common_node:
93 expression: all
94 node_param:
95 single_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000096 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000097 linux_system_codename:
98 value_template: <<node_os>>
99 salt_master_host:
100 value_template: <<node_master_ip>>
Pavel Svimbersky048fb0e2017-12-14 12:02:11 +0100101 mark_contrail_version:
102 expression: <<opencontrail_version>>__startswith__oc
103 cluster_param:
104 linux_repo_contrail_component:
105 value_template: <<opencontrail_version>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000106 infra_config:
107 expression: <<node_hostname>>__startswith__cfg
108 cluster_param:
109 infra_config_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000110 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000111 infra_config_deploy_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000112 value_template: <<node_deploy_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000113 cluster_domain:
114 value_template: <<node_domain>>
115 openstack_control01:
116 expression: <<node_hostname>>__equals__ctl01
117 cluster_param:
118 openstack_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000119 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000120 openstack_control02:
121 expression: <<node_hostname>>__equals__ctl02
122 cluster_param:
123 openstack_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000124 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000125 openstack_control03:
126 expression: <<node_hostname>>__equals__ctl03
127 cluster_param:
128 openstack_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000129 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000130 opencontrail_control01:
131 expression: <<node_hostname>>__equals__ntw01
132 cluster_param:
133 opencontrail_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000134 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000135 opencontrail_control02:
136 expression: <<node_hostname>>__equals__ntw02
137 cluster_param:
138 opencontrail_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000139 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000140 opencontrail_control03:
141 expression: <<node_hostname>>__equals__ntw03
142 cluster_param:
143 opencontrail_control_node03_address:
Petr Jedinýf52f6452017-12-01 18:18:38 +0100144 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000145 openstack_compute:
146 expression: <<node_hostname>>__startswith__cmp
147 node_class:
148 value_template:
149 - cluster.<<node_cluster>>.openstack.compute
150 node_param:
151 tenant_address:
152 value_template: <<node_tenant_ip>>
153 external_address:
154 value_template: <<node_external_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +0200155 node:
156 openstack_control_node01:
157 classes:
158 - service.galera.master.cluster
Jan Cach58876a72018-09-19 15:11:33 +0200159 - cluster.os-ha-contrail.openstack.control_init
Ales Komarekc12dd412017-06-27 16:24:42 +0200160 params:
161 mysql_cluster_role: master
162 linux_system_codename: xenial
Adam Tengler29945d92017-08-11 15:00:47 +0000163 horizon_identity_host: ${_param:openstack_control_address}
Ales Komarekc12dd412017-06-27 16:24:42 +0200164 openstack_control_node02:
165 classes:
166 - service.galera.slave.cluster
167 params:
168 mysql_cluster_role: slave
169 linux_system_codename: xenial
Adam Tengler29945d92017-08-11 15:00:47 +0000170 horizon_identity_host: ${_param:openstack_control_address}
Ales Komarekc12dd412017-06-27 16:24:42 +0200171 openstack_control_node03:
172 classes:
173 - service.galera.slave.cluster
174 params:
175 mysql_cluster_role: slave
176 linux_system_codename: xenial
Adam Tengler29945d92017-08-11 15:00:47 +0000177 horizon_identity_host: ${_param:openstack_control_address}
Inessa Vasilevskaya793dbd12018-09-10 17:48:48 +0200178 opencontrail_control_node01:
179 classes:
180 - cluster.${_param:cluster_name}.opencontrail.control_init