blob: 01e6bc2318418a8b6cb52780326b0b8156a5101d [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
20- cluster.os_ha_ovs
21parameters:
22 _param:
23 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
24 reclass_data_revision: master
25 salt_master_environment_repository: "https://github.com/tcpcloud"
26 salt_master_environment_revision: master
Adam Tengler250d5bb2017-06-29 15:59:02 +000027 reclass_config_master: ${_param:infra_config_deploy_address}
28 single_address: ${_param:infra_config_address}
Ales Komarekc12dd412017-06-27 16:24:42 +020029 salt_master_host: 127.0.0.1
30 salt_master_base_environment: prd
31 salt_minion_ca_host: ${linux:network:fqdn}
32 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
33 linux:
34 network:
35 interface:
36 ens4:
37 enabled: true
38 type: eth
39 proto: static
40 address: ${_param:single_address}
41 netmask: 255.255.255.0
42 nginx:
43 server:
44 site:
45 nginx_proxy_openstack_web:
46 proxy:
47 host: prx
48 nginx_proxy_openstack_api_heat_cfn:
49 enabled: false
Adam Tengler250d5bb2017-06-29 15:59:02 +000050 salt:
51 master:
52 reactor:
53 reclass/minion/classify:
54 - salt://reclass/reactor/node_register.sls
Ales Komarekc12dd412017-06-27 16:24:42 +020055 reclass:
56 storage:
Adam Tengler250d5bb2017-06-29 15:59:02 +000057 class_mapping:
58 common_node:
59 expression: all
60 node_param:
61 single_address:
62 value_template: <<node_ip>>
63 linux_system_codename:
64 value_template: <<node_os>>
65 salt_master_host:
66 value_template: <<node_master_ip>>
67 infra_config:
68 expression: <<node_hostname>>__startswith__cfg
69 cluster_param:
70 infra_config_address:
71 value_template: <<node_ip>>
72 infra_config_deploy_address:
73 value_template: <<node_ip>>
74 openstack_control01:
75 expression: <<node_hostname>>__equals__ctl01
76 cluster_param:
77 openstack_control_node01_address:
78 value_template: <<node_ip>>
79 openstack_control02:
80 expression: <<node_hostname>>__equals__ctl02
81 cluster_param:
82 openstack_control_node02_address:
83 value_template: <<node_ip>>
84 openstack_control03:
85 expression: <<node_hostname>>__equals__ctl03
86 cluster_param:
87 openstack_control_node03_address:
88 value_template: <<node_ip>>
89 openstack_compute:
90 expression: <<node_hostname>>__startswith__cmp
91 node_class:
92 value_template:
93 - cluster.<<node_cluster>>.openstack.compute
Ales Komarekc12dd412017-06-27 16:24:42 +020094 node:
95 openstack_control_node01:
96 classes:
97 - service.galera.master.cluster
98 params:
99 mysql_cluster_role: master
100 linux_system_codename: xenial
101 openstack_control_node02:
102 classes:
103 - service.galera.slave.cluster
104 params:
105 mysql_cluster_role: slave
106 linux_system_codename: xenial
107 openstack_control_node03:
108 classes:
109 - service.galera.slave.cluster
110 params:
111 mysql_cluster_role: slave
112 linux_system_codename: xenial