blob: d9dc10005f53733e09ea4eacfc17449cacb3e425 [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.aodh
14- system.keystone.client.service.ceilometer
15- system.keystone.client.service.nova21
16- system.keystone.client.service.glare
17- system.keystone.client.service.cinder3
18- system.keystone.client.service.designate
19- system.mysql.client.single
20- system.reclass.storage.system.openstack_control_cluster
21- system.reclass.storage.system.opencontrail_control_cluster
Ales Komarekc12dd412017-06-27 16:24:42 +020022- system.reclass.storage.system.stacklightv2_server_cluster
23- cluster.sl_os_contrail.openstack.proxy
24- cluster.sl_os_contrail.stacklight.proxy
Adam Tengler0c624442017-07-04 13:25:36 +000025- cluster.sl_os_contrail.openstack.dashboard
Ales Komarekc12dd412017-06-27 16:24:42 +020026- cluster.sl_os_contrail
27parameters:
28 _param:
29 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab"
30 reclass_data_revision: master
Adam Tengler81526202017-07-11 13:03:40 +000031 reclass_config_master: ${_param:infra_config_deploy_address}
32 single_address: ${_param:infra_config_address}
Ales Komarekc12dd412017-06-27 16:24:42 +020033 salt_master_host: 127.0.0.1
34 salt_master_base_environment: prd
35 salt_minion_ca_host: ${linux:network:fqdn}
36 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
37 linux:
38 network:
39 interface:
40 ens4:
41 enabled: true
42 type: eth
43 proto: static
44 address: ${_param:single_address}
45 netmask: 255.255.255.0
46 nginx:
47 server:
48 site:
49 nginx_proxy_openstack_web:
50 proxy:
51 host: prx
52 nginx_proxy_openstack_api_heat_cfn:
53 enabled: false
Adam Tengler4f23d962017-07-04 19:54:59 +000054 salt:
55 master:
56 reactor:
57 reclass/minion/classify:
58 - salt://reclass/reactor/node_register.sls
Ales Komarekc12dd412017-06-27 16:24:42 +020059 reclass:
60 storage:
Adam Tengler4f23d962017-07-04 19:54:59 +000061 class_mapping:
62 common_node:
63 expression: all
64 node_param:
65 single_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000066 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000067 linux_system_codename:
68 value_template: <<node_os>>
69 salt_master_host:
70 value_template: <<node_master_ip>>
71 infra_config:
72 expression: <<node_hostname>>__startswith__cfg
73 cluster_param:
74 infra_config_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000075 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000076 infra_config_deploy_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000077 value_template: <<node_deploy_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000078 cluster_domain:
79 value_template: <<node_domain>>
80 openstack_control01:
81 expression: <<node_hostname>>__equals__ctl01
82 cluster_param:
83 openstack_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000084 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000085 openstack_control02:
86 expression: <<node_hostname>>__equals__ctl02
87 cluster_param:
88 openstack_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000089 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000090 openstack_control03:
91 expression: <<node_hostname>>__equals__ctl03
92 cluster_param:
93 openstack_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000094 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000095 opencontrail_control01:
96 expression: <<node_hostname>>__equals__ntw01
97 cluster_param:
98 opencontrail_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000099 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000100 opencontrail_control02:
101 expression: <<node_hostname>>__equals__ntw02
102 cluster_param:
103 opencontrail_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000104 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000105 opencontrail_control03:
106 expression: <<node_hostname>>__equals__ntw03
107 cluster_param:
108 opencontrail_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000109 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000110 openstack_compute:
111 expression: <<node_hostname>>__startswith__cmp
112 node_class:
113 value_template:
114 - cluster.<<node_cluster>>.openstack.compute
115 node_param:
116 tenant_address:
117 value_template: <<node_tenant_ip>>
118 external_address:
119 value_template: <<node_external_ip>>
120 stacklight_monitor01:
121 expression: <<node_hostname>>__equals__mon01
122 cluster_param:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000123 stacklight_monitor_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000124 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000125 stacklight_monitor02:
126 expression: <<node_hostname>>__equals__mon02
127 cluster_param:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000128 stacklight_monitor_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000129 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000130 stacklight_monitor03:
131 expression: <<node_hostname>>__equals__mon03
132 cluster_param:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000133 stacklight_monitor_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000134 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +0200135 node:
136 openstack_control_node01:
137 classes:
138 - service.galera.master.cluster
139 params:
140 mysql_cluster_role: master
141 linux_system_codename: xenial
142 openstack_control_node02:
143 classes:
144 - service.galera.slave.cluster
145 params:
146 mysql_cluster_role: slave
147 linux_system_codename: xenial
148 openstack_control_node03:
149 classes:
150 - service.galera.slave.cluster
151 params:
152 mysql_cluster_role: slave
153 linux_system_codename: xenial