blob: a96d05d3550f9e3bd5417b8ba1e028c388f86ca3 [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 Michalecf05e3ea2017-08-21 17:33:16 +020039- cluster.os-ha-contrail.openstack.proxy
40- cluster.os-ha-contrail
Ales Komarekc12dd412017-06-27 16:24:42 +020041parameters:
42 _param:
43 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab"
44 reclass_data_revision: master
Adam Tenglerc6176502017-07-04 20:45:06 +000045 reclass_config_master: ${_param:infra_config_deploy_address}
46 single_address: ${_param:infra_config_address}
Ales Komarekc12dd412017-06-27 16:24:42 +020047 salt_master_host: 127.0.0.1
48 salt_master_base_environment: prd
49 salt_minion_ca_host: ${linux:network:fqdn}
50 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
51 linux:
52 network:
53 interface:
54 ens4:
55 enabled: true
56 type: eth
57 proto: static
58 address: ${_param:single_address}
59 netmask: 255.255.255.0
60 nginx:
61 server:
62 site:
63 nginx_proxy_openstack_web:
64 proxy:
Jan Cach4446e412017-09-21 11:30:54 +020065 host: ${_param:infra_config_address}
Ales Komarekc12dd412017-06-27 16:24:42 +020066 nginx_proxy_openstack_api_heat_cfn:
67 enabled: false
Adam Tengler4f23d962017-07-04 19:54:59 +000068 salt:
69 master:
70 reactor:
71 reclass/minion/classify:
72 - salt://reclass/reactor/node_register.sls
Ales Komarekc12dd412017-06-27 16:24:42 +020073 reclass:
74 storage:
Adam Tengler4f23d962017-07-04 19:54:59 +000075 class_mapping:
76 common_node:
77 expression: all
78 node_param:
79 single_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000080 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000081 linux_system_codename:
82 value_template: <<node_os>>
83 salt_master_host:
84 value_template: <<node_master_ip>>
85 infra_config:
86 expression: <<node_hostname>>__startswith__cfg
87 cluster_param:
88 infra_config_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000089 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000090 infra_config_deploy_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000091 value_template: <<node_deploy_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000092 cluster_domain:
93 value_template: <<node_domain>>
94 openstack_control01:
95 expression: <<node_hostname>>__equals__ctl01
96 cluster_param:
97 openstack_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000098 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000099 openstack_control02:
100 expression: <<node_hostname>>__equals__ctl02
101 cluster_param:
102 openstack_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000103 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000104 openstack_control03:
105 expression: <<node_hostname>>__equals__ctl03
106 cluster_param:
107 openstack_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000108 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000109 opencontrail_control01:
110 expression: <<node_hostname>>__equals__ntw01
111 cluster_param:
112 opencontrail_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000113 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000114 opencontrail_control02:
115 expression: <<node_hostname>>__equals__ntw02
116 cluster_param:
117 opencontrail_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000118 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000119 opencontrail_control03:
120 expression: <<node_hostname>>__equals__ntw03
121 cluster_param:
122 opencontrail_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000123 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000124 openstack_compute:
125 expression: <<node_hostname>>__startswith__cmp
126 node_class:
127 value_template:
128 - cluster.<<node_cluster>>.openstack.compute
129 node_param:
130 tenant_address:
131 value_template: <<node_tenant_ip>>
132 external_address:
133 value_template: <<node_external_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +0200134 node:
135 openstack_control_node01:
136 classes:
137 - service.galera.master.cluster
138 params:
139 mysql_cluster_role: master
140 linux_system_codename: xenial
Adam Tengler29945d92017-08-11 15:00:47 +0000141 horizon_identity_host: ${_param:openstack_control_address}
Ales Komarekc12dd412017-06-27 16:24:42 +0200142 openstack_control_node02:
143 classes:
144 - service.galera.slave.cluster
145 params:
146 mysql_cluster_role: slave
147 linux_system_codename: xenial
Adam Tengler29945d92017-08-11 15:00:47 +0000148 horizon_identity_host: ${_param:openstack_control_address}
Ales Komarekc12dd412017-06-27 16:24:42 +0200149 openstack_control_node03:
150 classes:
151 - service.galera.slave.cluster
152 params:
153 mysql_cluster_role: slave
154 linux_system_codename: xenial
Adam Tengler29945d92017-08-11 15:00:47 +0000155 horizon_identity_host: ${_param:openstack_control_address}
156