blob: 1b7a1c4e885094abb3b0ceae7c4b3e922f5ab002 [file] [log] [blame]
Jeepyb Userdd14e0b2017-02-28 15:19:32 +00001classes:
2- service.git.client
3- system.linux.system.single
Ondrej Smola6b5d0aa2017-03-22 18:15:38 +01004- system.linux.system.repo.mcp.salt
Jeepyb Userdd14e0b2017-02-28 15:19:32 +00005- 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.mysql.client.single
17- system.reclass.storage.system.openstack_control_cluster
Jiri Broulik432ae9c2017-08-17 10:24:23 +020018- system.reclass.storage.system.opencontrail_control_cluster
Jiri Broulik26104ab2017-08-17 16:40:33 +020019- system.reclass.storage.system.openstack_compute_multi
20- system.reclass.storage.system.openstack_dashboard_single
21- system.reclass.storage.system.openstack_proxy_single
Jeepyb Userdd14e0b2017-02-28 15:19:32 +000022- system.reclass.storage.system.stacklight_server_cluster
23- cluster.virtual-mcp10-contrail.openstack.proxy
24- cluster.virtual-mcp10-contrail.stacklight.proxy
25- cluster.virtual-mcp10-contrail
26parameters:
27 _param:
Tomáš Kukrál2c7026a2017-03-08 18:19:53 +010028 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab"
Jeepyb Userdd14e0b2017-02-28 15:19:32 +000029 reclass_data_revision: master
30 reclass_config_master: 192.168.10.100
31 single_address: 172.16.10.100
32 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
Petr Jediný9b3a0ed2017-04-13 15:12:09 +020042 proto: static
43 address: ${_param:single_address}
44 netmask: 255.255.255.0
Jeepyb Userdd14e0b2017-02-28 15:19:32 +000045 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
Jiri Broulik432ae9c2017-08-17 10:24:23 +020053 salt:
54 master:
55 reactor:
56 reclass/minion/classify:
57 - salt://reclass/reactor/node_register.sls
Jeepyb Userdd14e0b2017-02-28 15:19:32 +000058 reclass:
59 storage:
Jiri Broulik432ae9c2017-08-17 10:24:23 +020060 class_mapping:
61 common_node:
62 expression: all
63 node_param:
64 single_address:
65 value_template: <<node_control_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_control_ip>>
75 infra_config_deploy_address:
76 value_template: <<node_deploy_ip>>
77 cluster_domain:
78 value_template: <<node_domain>>
79 openstack_control01:
80 expression: <<node_hostname>>__equals__ctl01
81 cluster_param:
82 openstack_control_node01_address:
83 value_template: <<node_control_ip>>
84 openstack_control02:
85 expression: <<node_hostname>>__equals__ctl02
86 cluster_param:
87 openstack_control_node02_address:
88 value_template: <<node_control_ip>>
89 openstack_control03:
90 expression: <<node_hostname>>__equals__ctl03
91 cluster_param:
92 openstack_control_node03_address:
93 value_template: <<node_control_ip>>
94 opencontrail_control01:
95 expression: <<node_hostname>>__equals__ntw01
96 cluster_param:
97 opencontrail_control_node01_address:
98 value_template: <<node_control_ip>>
99 opencontrail_control02:
100 expression: <<node_hostname>>__equals__ntw02
101 cluster_param:
102 opencontrail_control_node02_address:
103 value_template: <<node_control_ip>>
104 opencontrail_control03:
105 expression: <<node_hostname>>__equals__ntw03
106 cluster_param:
107 opencontrail_control_node03_address:
108 value_template: <<node_control_ip>>
109 openstack_compute:
110 expression: <<node_hostname>>__startswith__cmp
111 node_class:
112 value_template:
113 - cluster.<<node_cluster>>.openstack.compute
114 node_param:
115 tenant_address:
116 value_template: <<node_tenant_ip>>
117 external_address:
118 value_template: <<node_external_ip>>
119 stacklight_monitor_node01:
120 expression: <<node_hostname>>__equals__mon01
121 cluster_param:
122 stacklight_monitor_node03_address:
123 value_template: <<node_control_ip>>
124 stacklight_monitor_node02:
125 expression: <<node_hostname>>__equals__mon02
126 cluster_param:
127 stacklight_monitor_node03_address:
128 value_template: <<node_control_ip>>
129 stacklight_monitor_node03:
130 expression: <<node_hostname>>__equals__mon03
131 cluster_param:
132 stacklight_monitor_node03_address:
133 value_template: <<node_control_ip>>
134 openstack_dashboard:
135 expression: <<node_hostname>>__startswith__prx
136 node_class:
137 value_template:
138 - cluster.<<node_cluster>>.openstack.dashboard
139 - cluster.<<node_cluster>>.openstack.proxy
140 cluster_param:
141 openstack_proxy_node01_address:
142 value_template: <<node_control_ip>>
Jeepyb Userdd14e0b2017-02-28 15:19:32 +0000143 node:
144 openstack_control_node01:
145 classes:
146 - service.galera.master.cluster
147 params:
148 mysql_cluster_role: master
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200149 linux_system_codename: xenial
Jeepyb Userdd14e0b2017-02-28 15:19:32 +0000150 openstack_control_node02:
151 classes:
152 - service.galera.slave.cluster
153 params:
154 mysql_cluster_role: slave
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200155 linux_system_codename: xenial
Jeepyb Userdd14e0b2017-02-28 15:19:32 +0000156 openstack_control_node03:
157 classes:
158 - service.galera.slave.cluster
159 params:
160 mysql_cluster_role: slave
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200161 linux_system_codename: xenial
Jeepyb Userdd14e0b2017-02-28 15:19:32 +0000162 stacklight_server_node01:
163 classes:
164 - system.influxdb.server.single
165 - system.influxdb.database.stacklight