blob: d84a3f269157efb9e7a81f9736c5e6acb196b7f0 [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
Ales Komarekc12dd412017-06-27 16:24:42 +020013- system.keystone.client.service.nova21
14- system.keystone.client.service.glare
15- system.keystone.client.service.cinder3
16- system.keystone.client.service.designate
Adam Tengler2b36a762017-07-13 14:34:47 +000017- system.mysql.client
18- system.mysql.client.database.cinder
19- system.mysql.client.database.glance
20- system.mysql.client.database.heat
21- system.mysql.client.database.keystone
22- system.mysql.client.database.nova
23- system.mysql.client.database.nova_api
24- system.mysql.client.database.neutron
Ales Komarekc12dd412017-06-27 16:24:42 +020025- system.reclass.storage.system.openstack_control_cluster
26- system.reclass.storage.system.opencontrail_control_cluster
Ales Komarekc12dd412017-06-27 16:24:42 +020027- system.reclass.storage.system.stacklightv2_server_cluster
28- cluster.sl_os_contrail.openstack.proxy
29- cluster.sl_os_contrail.stacklight.proxy
Adam Tengler0c624442017-07-04 13:25:36 +000030- cluster.sl_os_contrail.openstack.dashboard
Ales Komarekc12dd412017-06-27 16:24:42 +020031- cluster.sl_os_contrail
32parameters:
33 _param:
34 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab"
35 reclass_data_revision: master
Adam Tengler81526202017-07-11 13:03:40 +000036 reclass_config_master: ${_param:infra_config_deploy_address}
37 single_address: ${_param:infra_config_address}
Ales Komarekc12dd412017-06-27 16:24:42 +020038 salt_master_host: 127.0.0.1
39 salt_master_base_environment: prd
40 salt_minion_ca_host: ${linux:network:fqdn}
41 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
42 linux:
43 network:
44 interface:
45 ens4:
46 enabled: true
47 type: eth
48 proto: static
49 address: ${_param:single_address}
50 netmask: 255.255.255.0
51 nginx:
52 server:
53 site:
54 nginx_proxy_openstack_web:
55 proxy:
56 host: prx
57 nginx_proxy_openstack_api_heat_cfn:
58 enabled: false
Adam Tengler4f23d962017-07-04 19:54:59 +000059 salt:
60 master:
61 reactor:
62 reclass/minion/classify:
63 - salt://reclass/reactor/node_register.sls
Ales Komarekc12dd412017-06-27 16:24:42 +020064 reclass:
65 storage:
Adam Tengler4f23d962017-07-04 19:54:59 +000066 class_mapping:
67 common_node:
68 expression: all
69 node_param:
70 single_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000071 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000072 linux_system_codename:
73 value_template: <<node_os>>
74 salt_master_host:
75 value_template: <<node_master_ip>>
76 infra_config:
77 expression: <<node_hostname>>__startswith__cfg
78 cluster_param:
79 infra_config_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000080 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000081 infra_config_deploy_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000082 value_template: <<node_deploy_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000083 cluster_domain:
84 value_template: <<node_domain>>
85 openstack_control01:
86 expression: <<node_hostname>>__equals__ctl01
87 cluster_param:
88 openstack_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000089 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000090 openstack_control02:
91 expression: <<node_hostname>>__equals__ctl02
92 cluster_param:
93 openstack_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000094 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000095 openstack_control03:
96 expression: <<node_hostname>>__equals__ctl03
97 cluster_param:
98 openstack_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000099 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000100 opencontrail_control01:
101 expression: <<node_hostname>>__equals__ntw01
102 cluster_param:
103 opencontrail_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000104 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000105 opencontrail_control02:
106 expression: <<node_hostname>>__equals__ntw02
107 cluster_param:
108 opencontrail_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000109 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000110 opencontrail_control03:
111 expression: <<node_hostname>>__equals__ntw03
112 cluster_param:
113 opencontrail_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000114 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000115 openstack_compute:
116 expression: <<node_hostname>>__startswith__cmp
117 node_class:
118 value_template:
119 - cluster.<<node_cluster>>.openstack.compute
120 node_param:
121 tenant_address:
122 value_template: <<node_tenant_ip>>
123 external_address:
124 value_template: <<node_external_ip>>
125 stacklight_monitor01:
126 expression: <<node_hostname>>__equals__mon01
127 cluster_param:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000128 stacklight_monitor_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000129 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000130 stacklight_monitor02:
131 expression: <<node_hostname>>__equals__mon02
132 cluster_param:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000133 stacklight_monitor_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000134 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000135 stacklight_monitor03:
136 expression: <<node_hostname>>__equals__mon03
137 cluster_param:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000138 stacklight_monitor_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000139 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +0200140 node:
141 openstack_control_node01:
142 classes:
143 - service.galera.master.cluster
144 params:
145 mysql_cluster_role: master
146 linux_system_codename: xenial
147 openstack_control_node02:
148 classes:
149 - service.galera.slave.cluster
150 params:
151 mysql_cluster_role: slave
152 linux_system_codename: xenial
153 openstack_control_node03:
154 classes:
155 - service.galera.slave.cluster
156 params:
157 mysql_cluster_role: slave
158 linux_system_codename: xenial