blob: f5a2e7e99e97d8cfb0cbb60d40bb1ff5823ad0c9 [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- system.reclass.storage.system.stacklight_server_cluster
20- cluster.sl_os_ovs.openstack.proxy
21- cluster.sl_os_ovs.stacklight.proxy
Adam Tengler0c624442017-07-04 13:25:36 +000022- cluster.sl_os_ovs.openstack.dashboard
Ales Komarekc12dd412017-06-27 16:24:42 +020023- cluster.sl_os_ovs
24parameters:
25 _param:
26 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
27 reclass_data_revision: master
28 salt_master_environment_repository: "https://github.com/tcpcloud"
29 salt_master_environment_revision: master
Adam Tengler250d5bb2017-06-29 15:59:02 +000030 reclass_config_master: ${_param:infra_config_deploy_address}
31 single_address: ${_param:infra_config_address}
Ales Komarekc12dd412017-06-27 16:24:42 +020032 salt_master_host: 127.0.0.1
33 salt_master_base_environment: prd
34 salt_minion_ca_host: ${linux:network:fqdn}
35 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
36 linux:
37 network:
38 interface:
39 ens4:
40 enabled: true
41 type: eth
42 proto: static
43 address: ${_param:single_address}
44 netmask: 255.255.255.0
45 nginx:
46 server:
47 site:
48 nginx_proxy_openstack_web:
49 proxy:
50 host: prx
51 nginx_proxy_openstack_api_heat_cfn:
52 enabled: false
Adam Tengler250d5bb2017-06-29 15:59:02 +000053 salt:
54 master:
55 reactor:
56 reclass/minion/classify:
57 - salt://reclass/reactor/node_register.sls
Ales Komarekc12dd412017-06-27 16:24:42 +020058 reclass:
59 storage:
Adam Tengler250d5bb2017-06-29 15:59:02 +000060 class_mapping:
61 common_node:
62 expression: all
63 node_param:
64 single_address:
65 value_template: <<node_ip>>
66 linux_system_codename:
67 value_template: <<node_os>>
68 salt_master_host:
69 value_template: <<node_master_ip>>
70 infra_config:
71 expression: <<node_hostname>>__startswith__cfg
72 cluster_param:
73 infra_config_address:
74 value_template: <<node_ip>>
75 infra_config_deploy_address:
76 value_template: <<node_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000077 cluster_domain:
78 value_template: <<node_domain>>
Adam Tengler250d5bb2017-06-29 15:59:02 +000079 openstack_control01:
80 expression: <<node_hostname>>__equals__ctl01
81 cluster_param:
82 openstack_control_node01_address:
83 value_template: <<node_ip>>
84 openstack_control02:
85 expression: <<node_hostname>>__equals__ctl02
86 cluster_param:
87 openstack_control_node02_address:
88 value_template: <<node_ip>>
89 openstack_control03:
90 expression: <<node_hostname>>__equals__ctl03
91 cluster_param:
92 openstack_control_node03_address:
93 value_template: <<node_ip>>
94 openstack_compute:
95 expression: <<node_hostname>>__startswith__cmp
96 node_class:
97 value_template:
98 - cluster.<<node_cluster>>.openstack.compute
Adam Tengler8b254412017-06-29 18:30:32 +000099 node_param:
100 tenant_address:
101 value_template: <<node_tenant_ip>>
102 external_address:
103 value_template: <<node_external_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +0000104 stacklight_monitor01:
105 expression: <<node_hostname>>__equals__mon01
106 cluster_param:
107 stacklight_node01_address:
108 value_template: <<node_ip>>
109 stacklight_monitor02:
110 expression: <<node_hostname>>__equals__mon02
111 cluster_param:
112 stacklight_node02_address:
113 value_template: <<node_ip>>
114 stacklight_monitor03:
115 expression: <<node_hostname>>__equals__mon03
116 cluster_param:
117 stacklight_node03_address:
118 value_template: <<node_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +0200119 node:
120 openstack_control_node01:
121 classes:
122 - service.galera.master.cluster
123 params:
124 mysql_cluster_role: master
125 linux_system_codename: xenial
126 openstack_control_node02:
127 classes:
128 - service.galera.slave.cluster
129 params:
130 mysql_cluster_role: slave
131 linux_system_codename: xenial
132 openstack_control_node03:
133 classes:
134 - service.galera.slave.cluster
135 params:
136 mysql_cluster_role: slave
137 linux_system_codename: xenial
Ales Komarekc12dd412017-06-27 16:24:42 +0200138 stacklight_server_node01:
139 classes:
140 - system.influxdb.server.single
141 - system.influxdb.database.stacklight