blob: 4cc47819e011c39ed6cb14a8ef84fc26cfd6b9d1 [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
5- system.openssh.client.lab
6- system.salt.master.api
7- system.salt.master.pkg
8- system.reclass.storage.salt
9- system.salt.minion.ca.salt_master
10- system.salt.minion.cert.proxy
11- system.sphinx.server.doc.reclass
Petr Jediný3114a392017-08-02 15:21:09 +020012- system.keystone.client.core
Ales Komarekc12dd412017-06-27 16:24:42 +020013- system.keystone.client.service.designate
Petr Jediný3114a392017-08-02 15:21:09 +020014- system.keystone.client.service.cinder
15- system.keystone.client.service.cinder2
16- system.keystone.client.service.cinder3
17- system.keystone.client.service.glance
18- system.keystone.client.service.glare
19- system.keystone.client.service.heat
20- system.keystone.client.service.heat-cfn
21- system.keystone.client.service.keystone
22- system.keystone.client.service.neutron
23- system.keystone.client.service.nova-ec2
24- system.keystone.client.service.nova21
25- system.keystone.client.service.nova-placement
Adam Tengler2b36a762017-07-13 14:34:47 +000026- system.mysql.client
27- system.mysql.client.database.cinder
28- system.mysql.client.database.glance
29- system.mysql.client.database.heat
30- system.mysql.client.database.keystone
31- system.mysql.client.database.nova
32- system.mysql.client.database.nova_api
33- system.mysql.client.database.neutron
Ales Komarekc12dd412017-06-27 16:24:42 +020034- system.reclass.storage.system.openstack_control_cluster
35- system.reclass.storage.system.opencontrail_control_cluster
Ales Komarekc12dd412017-06-27 16:24:42 +020036- cluster.os_ha_contrail.openstack.proxy
Ales Komarekc12dd412017-06-27 16:24:42 +020037- cluster.os_ha_contrail
38parameters:
39 _param:
40 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab"
41 reclass_data_revision: master
Adam Tenglerc6176502017-07-04 20:45:06 +000042 reclass_config_master: ${_param:infra_config_deploy_address}
43 single_address: ${_param:infra_config_address}
Ales Komarekc12dd412017-06-27 16:24:42 +020044 salt_master_host: 127.0.0.1
45 salt_master_base_environment: prd
46 salt_minion_ca_host: ${linux:network:fqdn}
47 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
48 linux:
49 network:
50 interface:
51 ens4:
52 enabled: true
53 type: eth
54 proto: static
55 address: ${_param:single_address}
56 netmask: 255.255.255.0
57 nginx:
58 server:
59 site:
60 nginx_proxy_openstack_web:
61 proxy:
Adam Tengler5b31d072017-07-19 10:33:04 +000062 host: ${_param:openstack_control_address}
Ales Komarekc12dd412017-06-27 16:24:42 +020063 nginx_proxy_openstack_api_heat_cfn:
64 enabled: false
Adam Tengler4f23d962017-07-04 19:54:59 +000065 salt:
66 master:
67 reactor:
68 reclass/minion/classify:
69 - salt://reclass/reactor/node_register.sls
Ales Komarekc12dd412017-06-27 16:24:42 +020070 reclass:
71 storage:
Adam Tengler4f23d962017-07-04 19:54:59 +000072 class_mapping:
73 common_node:
74 expression: all
75 node_param:
76 single_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000077 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000078 linux_system_codename:
79 value_template: <<node_os>>
80 salt_master_host:
81 value_template: <<node_master_ip>>
82 infra_config:
83 expression: <<node_hostname>>__startswith__cfg
84 cluster_param:
85 infra_config_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000086 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000087 infra_config_deploy_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000088 value_template: <<node_deploy_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000089 cluster_domain:
90 value_template: <<node_domain>>
91 openstack_control01:
92 expression: <<node_hostname>>__equals__ctl01
93 cluster_param:
94 openstack_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000095 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000096 openstack_control02:
97 expression: <<node_hostname>>__equals__ctl02
98 cluster_param:
99 openstack_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000100 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000101 openstack_control03:
102 expression: <<node_hostname>>__equals__ctl03
103 cluster_param:
104 openstack_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000105 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000106 opencontrail_control01:
107 expression: <<node_hostname>>__equals__ntw01
108 cluster_param:
109 opencontrail_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000110 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000111 opencontrail_control02:
112 expression: <<node_hostname>>__equals__ntw02
113 cluster_param:
114 opencontrail_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000115 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000116 opencontrail_control03:
117 expression: <<node_hostname>>__equals__ntw03
118 cluster_param:
119 opencontrail_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000120 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000121 openstack_compute:
122 expression: <<node_hostname>>__startswith__cmp
123 node_class:
124 value_template:
125 - cluster.<<node_cluster>>.openstack.compute
126 node_param:
127 tenant_address:
128 value_template: <<node_tenant_ip>>
129 external_address:
130 value_template: <<node_external_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +0200131 node:
132 openstack_control_node01:
133 classes:
134 - service.galera.master.cluster
Adam Tengler5b31d072017-07-19 10:33:04 +0000135 - cluster.os_ha_contrail.openstack.dashboard
Ales Komarekc12dd412017-06-27 16:24:42 +0200136 params:
137 mysql_cluster_role: master
138 linux_system_codename: xenial
139 openstack_control_node02:
140 classes:
141 - service.galera.slave.cluster
Adam Tengler5b31d072017-07-19 10:33:04 +0000142 - cluster.os_ha_contrail.openstack.dashboard
Ales Komarekc12dd412017-06-27 16:24:42 +0200143 params:
144 mysql_cluster_role: slave
145 linux_system_codename: xenial
146 openstack_control_node03:
147 classes:
148 - service.galera.slave.cluster
Adam Tengler5b31d072017-07-19 10:33:04 +0000149 - cluster.os_ha_contrail.openstack.dashboard
Ales Komarekc12dd412017-06-27 16:24:42 +0200150 params:
151 mysql_cluster_role: slave
152 linux_system_codename: xenial