blob: a0d4e1b4214547e83229314cf823808d83fc0961 [file] [log] [blame]
Pavel Svimberskya48a9bc2017-08-23 16:00:02 +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.core
13- system.keystone.client.service.designate
14- system.keystone.client.service.cinder
15- system.keystone.client.service.cinder2
16- system.keystone.client.service.cinder3
17- system.keystone.client.service.glance
18- system.keystone.client.service.glare
19- system.keystone.client.service.heat
20- system.keystone.client.service.heat-cfn
21- system.keystone.client.service.keystone
22- system.keystone.client.service.neutron
23- system.keystone.client.service.nova-ec2
24- system.keystone.client.service.nova21
25- system.keystone.client.service.nova-placement
26- system.mysql.client
27- system.mysql.client.database.cinder
28- system.mysql.client.database.glance
29- system.mysql.client.database.heat
30- system.mysql.client.database.keystone
31- system.mysql.client.database.nova
32- system.mysql.client.database.nova_api
33- system.mysql.client.database.neutron
34- system.reclass.storage.system.openstack_control_cluster
35- system.reclass.storage.system.opencontrail_control_cluster
Petr Michalecf05e3ea2017-08-21 17:33:16 +020036- cluster.os-ha-contrail-40.openstack.proxy
37- cluster.os-ha-contrail-40
Pavel Svimberskya48a9bc2017-08-23 16:00:02 +020038parameters:
39 _param:
40 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab"
41 reclass_data_revision: master
42 reclass_config_master: ${_param:infra_config_deploy_address}
43 single_address: ${_param:infra_config_address}
44 salt_master_host: 127.0.0.1
45 salt_master_base_environment: prd
46 salt_minion_ca_host: ${linux:network:fqdn}
47 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
48 linux:
49 network:
50 interface:
51 ens4:
52 enabled: true
53 type: eth
54 proto: static
55 address: ${_param:single_address}
56 netmask: 255.255.255.0
57 nginx:
58 server:
59 site:
60 nginx_proxy_openstack_web:
61 proxy:
62 host: ${_param:openstack_control_address}
63 nginx_proxy_openstack_api_heat_cfn:
64 enabled: false
65 salt:
66 master:
67 reactor:
68 reclass/minion/classify:
69 - salt://reclass/reactor/node_register.sls
70 reclass:
71 storage:
72 class_mapping:
73 common_node:
74 expression: all
75 node_param:
76 single_address:
77 value_template: <<node_control_ip>>
78 linux_system_codename:
79 value_template: <<node_os>>
80 salt_master_host:
81 value_template: <<node_master_ip>>
82 infra_config:
83 expression: <<node_hostname>>__startswith__cfg
84 cluster_param:
85 infra_config_address:
86 value_template: <<node_control_ip>>
87 infra_config_deploy_address:
88 value_template: <<node_deploy_ip>>
89 cluster_domain:
90 value_template: <<node_domain>>
91 openstack_control01:
92 expression: <<node_hostname>>__equals__ctl01
93 cluster_param:
94 openstack_control_node01_address:
95 value_template: <<node_control_ip>>
96 openstack_control02:
97 expression: <<node_hostname>>__equals__ctl02
98 cluster_param:
99 openstack_control_node02_address:
100 value_template: <<node_control_ip>>
101 openstack_control03:
102 expression: <<node_hostname>>__equals__ctl03
103 cluster_param:
104 openstack_control_node03_address:
105 value_template: <<node_control_ip>>
Pavel Svimbersky51f2c6a2017-08-24 11:52:02 +0200106 opencontrail_control:
107 expression: <<node_hostname>>__startswith__ntw
108 cluster_param:
109 opencontrail_control_system_codename:
110 value_template: <<node_os>>
111 opencontrail_control_interface_name:
112 value_template: <<node_control_iface>>
Pavel Svimberskya48a9bc2017-08-23 16:00:02 +0200113 opencontrail_control01:
114 expression: <<node_hostname>>__equals__ntw01
115 cluster_param:
116 opencontrail_control_node01_address:
117 value_template: <<node_control_ip>>
118 opencontrail_control02:
119 expression: <<node_hostname>>__equals__ntw02
120 cluster_param:
121 opencontrail_control_node02_address:
122 value_template: <<node_control_ip>>
123 opencontrail_control03:
124 expression: <<node_hostname>>__equals__ntw03
125 cluster_param:
126 opencontrail_control_node03_address:
127 value_template: <<node_control_ip>>
128 openstack_compute:
129 expression: <<node_hostname>>__startswith__cmp
130 node_class:
131 value_template:
132 - cluster.<<node_cluster>>.openstack.compute
133 node_param:
134 tenant_address:
135 value_template: <<node_tenant_ip>>
136 external_address:
137 value_template: <<node_external_ip>>
138 node:
139 openstack_control_node01:
140 classes:
141 - service.galera.master.cluster
Petr Michalecf05e3ea2017-08-21 17:33:16 +0200142 - cluster.os-ha-contrail-40.openstack.dashboard
Pavel Svimberskya48a9bc2017-08-23 16:00:02 +0200143 params:
144 mysql_cluster_role: master
145 linux_system_codename: xenial
146 horizon_identity_host: ${_param:openstack_control_address}
147 openstack_control_node02:
148 classes:
149 - service.galera.slave.cluster
Petr Michalecf05e3ea2017-08-21 17:33:16 +0200150 - cluster.os-ha-contrail-40.openstack.dashboard
Pavel Svimberskya48a9bc2017-08-23 16:00:02 +0200151 params:
152 mysql_cluster_role: slave
153 linux_system_codename: xenial
154 horizon_identity_host: ${_param:openstack_control_address}
155 openstack_control_node03:
156 classes:
157 - service.galera.slave.cluster
Petr Michalecf05e3ea2017-08-21 17:33:16 +0200158 - cluster.os-ha-contrail-40.openstack.dashboard
Pavel Svimberskya48a9bc2017-08-23 16:00:02 +0200159 params:
160 mysql_cluster_role: slave
161 linux_system_codename: xenial
162 horizon_identity_host: ${_param:openstack_control_address}