blob: 5eb19c7e3e465c0596564ff47e143fa7721efa66 [file] [log] [blame]
Ales Komarekc12dd412017-06-27 16:24:42 +02001classes:
2- service.git.client
3- system.linux.system.single
4- system.linux.system.repo.mcp.salt
Jan Cach4446e412017-09-21 11:30:54 +02005- system.linux.system.repo.mcp.openstack
Ales Komarekc12dd412017-06-27 16:24:42 +02006- system.openssh.client.lab
7- system.salt.master.api
8- system.salt.master.pkg
9- system.reclass.storage.salt
10- system.salt.minion.ca.salt_master
11- system.salt.minion.cert.proxy
12- system.sphinx.server.doc.reclass
Petr Jediný3114a392017-08-02 15:21:09 +020013- system.keystone.client.core
Petr Jedinýbef780d2017-09-07 15:08:09 +020014- system.keystone.client.service.barbican
Petr Jediný3114a392017-08-02 15:21:09 +020015- system.keystone.client.service.cinder
16- system.keystone.client.service.cinder2
17- system.keystone.client.service.cinder3
Petr Jedinýbef780d2017-09-07 15:08:09 +020018- system.keystone.client.service.designate
Petr Jediný3114a392017-08-02 15:21:09 +020019- 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
Adam Tengler2b36a762017-07-13 14:34:47 +000028- system.mysql.client
Petr Jedinýbef780d2017-09-07 15:08:09 +020029- system.mysql.client.database.barbican
Adam Tengler2b36a762017-07-13 14:34:47 +000030- system.mysql.client.database.cinder
31- system.mysql.client.database.glance
32- system.mysql.client.database.heat
33- system.mysql.client.database.keystone
34- system.mysql.client.database.nova
35- system.mysql.client.database.nova_api
36- system.mysql.client.database.neutron
Ales Komarekc12dd412017-06-27 16:24:42 +020037- system.reclass.storage.system.openstack_control_cluster
38- system.reclass.storage.system.opencontrail_control_cluster
Petr Jedinýcddcb242017-11-28 20:18:43 +010039- system.glance.client.image.cirros
40- system.glance.client.image.ubuntu_xenial
41- system.nova.client.flavor.default
Petr Michalecf05e3ea2017-08-21 17:33:16 +020042- cluster.os-ha-contrail.openstack.proxy
43- cluster.os-ha-contrail
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"
56 linux:
Petr Jedinýcddcb242017-11-28 20:18:43 +010057 system:
58 kernel:
59 sysctl:
60 net.ipv4.conf.ens3.forwarding: 1
61 net.ipv4.conf.ens3.send_redirects: 0
Ales Komarekc12dd412017-06-27 16:24:42 +020062 network:
63 interface:
64 ens4:
65 enabled: true
66 type: eth
67 proto: static
68 address: ${_param:single_address}
69 netmask: 255.255.255.0
Petr Jedinýcddcb242017-11-28 20:18:43 +010070 # This is workaround for different interface
71 pre_up_cmds:
72 - "iptables -t nat -A POSTROUTING -o ens3 -j MASQUERADE"
73 post_down_cmds:
74 - "iptables -t nat -F POSTROUTING"
Ales Komarekc12dd412017-06-27 16:24:42 +020075 nginx:
76 server:
77 site:
78 nginx_proxy_openstack_web:
79 proxy:
Jan Cach4446e412017-09-21 11:30:54 +020080 host: ${_param:infra_config_address}
Ales Komarekc12dd412017-06-27 16:24:42 +020081 nginx_proxy_openstack_api_heat_cfn:
82 enabled: false
Adam Tengler4f23d962017-07-04 19:54:59 +000083 salt:
84 master:
85 reactor:
86 reclass/minion/classify:
87 - salt://reclass/reactor/node_register.sls
Ales Komarekc12dd412017-06-27 16:24:42 +020088 reclass:
89 storage:
Adam Tengler4f23d962017-07-04 19:54:59 +000090 class_mapping:
91 common_node:
92 expression: all
93 node_param:
94 single_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000095 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000096 linux_system_codename:
97 value_template: <<node_os>>
98 salt_master_host:
99 value_template: <<node_master_ip>>
100 infra_config:
101 expression: <<node_hostname>>__startswith__cfg
102 cluster_param:
103 infra_config_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000104 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000105 infra_config_deploy_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000106 value_template: <<node_deploy_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000107 cluster_domain:
108 value_template: <<node_domain>>
Pavel Svimbersky42b1c522017-12-11 16:46:13 +0100109 linux_repo_contrail_component:
110 value_template: <<opencontrail_version>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000111 openstack_control01:
112 expression: <<node_hostname>>__equals__ctl01
113 cluster_param:
114 openstack_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000115 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000116 openstack_control02:
117 expression: <<node_hostname>>__equals__ctl02
118 cluster_param:
119 openstack_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000120 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000121 openstack_control03:
122 expression: <<node_hostname>>__equals__ctl03
123 cluster_param:
124 openstack_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000125 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000126 opencontrail_control01:
127 expression: <<node_hostname>>__equals__ntw01
128 cluster_param:
129 opencontrail_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000130 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000131 opencontrail_control02:
132 expression: <<node_hostname>>__equals__ntw02
133 cluster_param:
134 opencontrail_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000135 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000136 opencontrail_control03:
137 expression: <<node_hostname>>__equals__ntw03
138 cluster_param:
139 opencontrail_control_node03_address:
Petr Jedinýf52f6452017-12-01 18:18:38 +0100140 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000141 openstack_compute:
142 expression: <<node_hostname>>__startswith__cmp
143 node_class:
144 value_template:
145 - cluster.<<node_cluster>>.openstack.compute
146 node_param:
147 tenant_address:
148 value_template: <<node_tenant_ip>>
149 external_address:
150 value_template: <<node_external_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +0200151 node:
152 openstack_control_node01:
153 classes:
154 - service.galera.master.cluster
155 params:
156 mysql_cluster_role: master
157 linux_system_codename: xenial
Adam Tengler29945d92017-08-11 15:00:47 +0000158 horizon_identity_host: ${_param:openstack_control_address}
Ales Komarekc12dd412017-06-27 16:24:42 +0200159 openstack_control_node02:
160 classes:
161 - service.galera.slave.cluster
162 params:
163 mysql_cluster_role: slave
164 linux_system_codename: xenial
Adam Tengler29945d92017-08-11 15:00:47 +0000165 horizon_identity_host: ${_param:openstack_control_address}
Ales Komarekc12dd412017-06-27 16:24:42 +0200166 openstack_control_node03:
167 classes:
168 - service.galera.slave.cluster
169 params:
170 mysql_cluster_role: slave
171 linux_system_codename: xenial
Adam Tengler29945d92017-08-11 15:00:47 +0000172 horizon_identity_host: ${_param:openstack_control_address}