blob: 1b8b3d21ee7c97bdfc281d9b02b1d4baf9e868a8 [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
Jeepyb Userdd14e0b2017-02-28 15:19:32 +000019- system.reclass.storage.system.stacklight_server_cluster
20- cluster.virtual-mcp10-contrail.openstack.proxy
21- cluster.virtual-mcp10-contrail.stacklight.proxy
22- cluster.virtual-mcp10-contrail
23parameters:
24 _param:
Tomáš Kukrál2c7026a2017-03-08 18:19:53 +010025 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab"
Jeepyb Userdd14e0b2017-02-28 15:19:32 +000026 reclass_data_revision: master
27 reclass_config_master: 192.168.10.100
28 single_address: 172.16.10.100
29 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
Petr Jediný9b3a0ed2017-04-13 15:12:09 +020039 proto: static
40 address: ${_param:single_address}
41 netmask: 255.255.255.0
Jeepyb Userdd14e0b2017-02-28 15:19:32 +000042 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
Jiri Broulik432ae9c2017-08-17 10:24:23 +020050 salt:
51 master:
52 reactor:
53 reclass/minion/classify:
54 - salt://reclass/reactor/node_register.sls
Jeepyb Userdd14e0b2017-02-28 15:19:32 +000055 reclass:
56 storage:
Jiri Broulik432ae9c2017-08-17 10:24:23 +020057 class_mapping:
58 common_node:
59 expression: all
60 node_param:
61 single_address:
62 value_template: <<node_control_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_control_ip>>
72 infra_config_deploy_address:
73 value_template: <<node_deploy_ip>>
74 cluster_domain:
75 value_template: <<node_domain>>
76 openstack_control01:
77 expression: <<node_hostname>>__equals__ctl01
78 cluster_param:
79 openstack_control_node01_address:
80 value_template: <<node_control_ip>>
81 openstack_control02:
82 expression: <<node_hostname>>__equals__ctl02
83 cluster_param:
84 openstack_control_node02_address:
85 value_template: <<node_control_ip>>
86 openstack_control03:
87 expression: <<node_hostname>>__equals__ctl03
88 cluster_param:
89 openstack_control_node03_address:
90 value_template: <<node_control_ip>>
91 opencontrail_control01:
92 expression: <<node_hostname>>__equals__ntw01
93 cluster_param:
94 opencontrail_control_node01_address:
95 value_template: <<node_control_ip>>
96 opencontrail_control02:
97 expression: <<node_hostname>>__equals__ntw02
98 cluster_param:
99 opencontrail_control_node02_address:
100 value_template: <<node_control_ip>>
101 opencontrail_control03:
102 expression: <<node_hostname>>__equals__ntw03
103 cluster_param:
104 opencontrail_control_node03_address:
105 value_template: <<node_control_ip>>
106 openstack_compute:
107 expression: <<node_hostname>>__startswith__cmp
108 node_class:
109 value_template:
110 - cluster.<<node_cluster>>.openstack.compute
111 node_param:
112 tenant_address:
113 value_template: <<node_tenant_ip>>
114 external_address:
115 value_template: <<node_external_ip>>
116 stacklight_monitor_node01:
117 expression: <<node_hostname>>__equals__mon01
118 cluster_param:
119 stacklight_monitor_node03_address:
120 value_template: <<node_control_ip>>
121 stacklight_monitor_node02:
122 expression: <<node_hostname>>__equals__mon02
123 cluster_param:
124 stacklight_monitor_node03_address:
125 value_template: <<node_control_ip>>
126 stacklight_monitor_node03:
127 expression: <<node_hostname>>__equals__mon03
128 cluster_param:
129 stacklight_monitor_node03_address:
130 value_template: <<node_control_ip>>
131 openstack_dashboard:
132 expression: <<node_hostname>>__startswith__prx
133 node_class:
134 value_template:
135 - cluster.<<node_cluster>>.openstack.dashboard
136 - cluster.<<node_cluster>>.openstack.proxy
137 cluster_param:
138 openstack_proxy_node01_address:
139 value_template: <<node_control_ip>>
Jeepyb Userdd14e0b2017-02-28 15:19:32 +0000140 node:
141 openstack_control_node01:
142 classes:
143 - service.galera.master.cluster
144 params:
145 mysql_cluster_role: master
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200146 linux_system_codename: xenial
Jeepyb Userdd14e0b2017-02-28 15:19:32 +0000147 openstack_control_node02:
148 classes:
149 - service.galera.slave.cluster
150 params:
151 mysql_cluster_role: slave
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200152 linux_system_codename: xenial
Jeepyb Userdd14e0b2017-02-28 15:19:32 +0000153 openstack_control_node03:
154 classes:
155 - service.galera.slave.cluster
156 params:
157 mysql_cluster_role: slave
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200158 linux_system_codename: xenial
Jeepyb Userdd14e0b2017-02-28 15:19:32 +0000159 stacklight_server_node01:
160 classes:
161 - system.influxdb.server.single
162 - system.influxdb.database.stacklight