blob: 3c16c65fc8d35132abd97920c95583e8ea9f4b02 [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
12- system.keystone.client.single
13- system.keystone.client.service.ceilometer
14- system.keystone.client.service.nova21
15- system.keystone.client.service.glare
16- system.keystone.client.service.cinder3
17- system.mysql.client.single
18- system.reclass.storage.system.openstack_control_cluster
Ales Komarekc12dd412017-06-27 16:24:42 +020019- cluster.os_ha_ovs.openstack.proxy
Adam Tengler0c624442017-07-04 13:25:36 +000020- cluster.os_ha_ovs.openstack.dashboard
Ales Komarekc12dd412017-06-27 16:24:42 +020021- cluster.os_ha_ovs
22parameters:
23 _param:
24 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
25 reclass_data_revision: master
26 salt_master_environment_repository: "https://github.com/tcpcloud"
27 salt_master_environment_revision: master
Adam Tengler250d5bb2017-06-29 15:59:02 +000028 reclass_config_master: ${_param:infra_config_deploy_address}
29 single_address: ${_param:infra_config_address}
Ales Komarekc12dd412017-06-27 16:24:42 +020030 salt_master_host: 127.0.0.1
31 salt_master_base_environment: prd
32 salt_minion_ca_host: ${linux:network:fqdn}
33 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
34 linux:
35 network:
36 interface:
37 ens4:
38 enabled: true
39 type: eth
40 proto: static
41 address: ${_param:single_address}
42 netmask: 255.255.255.0
43 nginx:
44 server:
45 site:
46 nginx_proxy_openstack_web:
47 proxy:
48 host: prx
49 nginx_proxy_openstack_api_heat_cfn:
50 enabled: false
Adam Tengler250d5bb2017-06-29 15:59:02 +000051 salt:
52 master:
53 reactor:
54 reclass/minion/classify:
55 - salt://reclass/reactor/node_register.sls
Ales Komarekc12dd412017-06-27 16:24:42 +020056 reclass:
57 storage:
Adam Tengler250d5bb2017-06-29 15:59:02 +000058 class_mapping:
59 common_node:
60 expression: all
61 node_param:
62 single_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000063 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +000064 linux_system_codename:
65 value_template: <<node_os>>
66 salt_master_host:
67 value_template: <<node_master_ip>>
68 infra_config:
69 expression: <<node_hostname>>__startswith__cfg
70 cluster_param:
71 infra_config_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000072 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +000073 infra_config_deploy_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000074 value_template: <<node_deploy_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000075 cluster_domain:
76 value_template: <<node_domain>>
Adam Tengler250d5bb2017-06-29 15:59:02 +000077 openstack_control01:
78 expression: <<node_hostname>>__equals__ctl01
79 cluster_param:
80 openstack_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000081 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +000082 openstack_control02:
83 expression: <<node_hostname>>__equals__ctl02
84 cluster_param:
85 openstack_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000086 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +000087 openstack_control03:
88 expression: <<node_hostname>>__equals__ctl03
89 cluster_param:
90 openstack_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000091 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +000092 openstack_compute:
93 expression: <<node_hostname>>__startswith__cmp
94 node_class:
95 value_template:
96 - cluster.<<node_cluster>>.openstack.compute
Adam Tengler8b254412017-06-29 18:30:32 +000097 node_param:
98 tenant_address:
99 value_template: <<node_tenant_ip>>
100 external_address:
101 value_template: <<node_external_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +0200102 node:
103 openstack_control_node01:
104 classes:
105 - service.galera.master.cluster
106 params:
107 mysql_cluster_role: master
108 linux_system_codename: xenial
109 openstack_control_node02:
110 classes:
111 - service.galera.slave.cluster
112 params:
113 mysql_cluster_role: slave
114 linux_system_codename: xenial
115 openstack_control_node03:
116 classes:
117 - service.galera.slave.cluster
118 params:
119 mysql_cluster_role: slave
120 linux_system_codename: xenial