blob: 3fec3ee6a033f03839becd070519ac83068735a9 [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
Petr Jediný3114a392017-08-02 15:21:09 +020012- system.keystone.client.core
Petr Jedinýbef780d2017-09-07 15:08:09 +020013- system.keystone.client.service.barbican
Petr Jediný3114a392017-08-02 15:21:09 +020014- system.keystone.client.service.cinder
15- system.keystone.client.service.cinder2
16- system.keystone.client.service.cinder3
Petr Jedinýbef780d2017-09-07 15:08:09 +020017- system.keystone.client.service.designate
Petr Jediný3114a392017-08-02 15:21:09 +020018- system.keystone.client.service.glance
19- system.keystone.client.service.glare
20- system.keystone.client.service.heat
21- system.keystone.client.service.heat-cfn
22- system.keystone.client.service.keystone
23- system.keystone.client.service.neutron
24- system.keystone.client.service.nova-ec2
25- system.keystone.client.service.nova21
26- system.keystone.client.service.nova-placement
Adam Tengler2b36a762017-07-13 14:34:47 +000027- system.mysql.client
Petr Jedinýbef780d2017-09-07 15:08:09 +020028- system.mysql.client.database.barbican
Adam Tengler2b36a762017-07-13 14:34:47 +000029- system.mysql.client.database.cinder
30- system.mysql.client.database.glance
31- system.mysql.client.database.heat
32- system.mysql.client.database.keystone
33- system.mysql.client.database.nova
34- system.mysql.client.database.nova_api
35- system.mysql.client.database.neutron
Ales Komarekc12dd412017-06-27 16:24:42 +020036- system.reclass.storage.system.openstack_control_cluster
37- system.reclass.storage.system.opencontrail_control_cluster
Petr Michalecf05e3ea2017-08-21 17:33:16 +020038- cluster.os-ha-contrail.openstack.proxy
39- cluster.os-ha-contrail
Ales Komarekc12dd412017-06-27 16:24:42 +020040parameters:
41 _param:
42 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab"
43 reclass_data_revision: master
Adam Tenglerc6176502017-07-04 20:45:06 +000044 reclass_config_master: ${_param:infra_config_deploy_address}
45 single_address: ${_param:infra_config_address}
Ales Komarekc12dd412017-06-27 16:24:42 +020046 salt_master_host: 127.0.0.1
47 salt_master_base_environment: prd
48 salt_minion_ca_host: ${linux:network:fqdn}
49 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
50 linux:
51 network:
52 interface:
53 ens4:
54 enabled: true
55 type: eth
56 proto: static
57 address: ${_param:single_address}
58 netmask: 255.255.255.0
59 nginx:
60 server:
61 site:
62 nginx_proxy_openstack_web:
63 proxy:
Adam Tengler5b31d072017-07-19 10:33:04 +000064 host: ${_param:openstack_control_address}
Ales Komarekc12dd412017-06-27 16:24:42 +020065 nginx_proxy_openstack_api_heat_cfn:
66 enabled: false
Adam Tengler4f23d962017-07-04 19:54:59 +000067 salt:
68 master:
69 reactor:
70 reclass/minion/classify:
71 - salt://reclass/reactor/node_register.sls
Ales Komarekc12dd412017-06-27 16:24:42 +020072 reclass:
73 storage:
Adam Tengler4f23d962017-07-04 19:54:59 +000074 class_mapping:
75 common_node:
76 expression: all
77 node_param:
78 single_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000079 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000080 linux_system_codename:
81 value_template: <<node_os>>
82 salt_master_host:
83 value_template: <<node_master_ip>>
84 infra_config:
85 expression: <<node_hostname>>__startswith__cfg
86 cluster_param:
87 infra_config_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000088 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000089 infra_config_deploy_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000090 value_template: <<node_deploy_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000091 cluster_domain:
92 value_template: <<node_domain>>
93 openstack_control01:
94 expression: <<node_hostname>>__equals__ctl01
95 cluster_param:
96 openstack_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000097 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000098 openstack_control02:
99 expression: <<node_hostname>>__equals__ctl02
100 cluster_param:
101 openstack_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000102 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000103 openstack_control03:
104 expression: <<node_hostname>>__equals__ctl03
105 cluster_param:
106 openstack_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000107 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000108 opencontrail_control01:
109 expression: <<node_hostname>>__equals__ntw01
110 cluster_param:
111 opencontrail_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000112 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000113 opencontrail_control02:
114 expression: <<node_hostname>>__equals__ntw02
115 cluster_param:
116 opencontrail_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000117 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000118 opencontrail_control03:
119 expression: <<node_hostname>>__equals__ntw03
120 cluster_param:
121 opencontrail_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000122 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000123 openstack_compute:
124 expression: <<node_hostname>>__startswith__cmp
125 node_class:
126 value_template:
127 - cluster.<<node_cluster>>.openstack.compute
128 node_param:
129 tenant_address:
130 value_template: <<node_tenant_ip>>
131 external_address:
132 value_template: <<node_external_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +0200133 node:
134 openstack_control_node01:
135 classes:
136 - service.galera.master.cluster
Petr Michalecf05e3ea2017-08-21 17:33:16 +0200137 - cluster.os-ha-contrail.openstack.dashboard
Ales Komarekc12dd412017-06-27 16:24:42 +0200138 params:
139 mysql_cluster_role: master
140 linux_system_codename: xenial
Adam Tengler29945d92017-08-11 15:00:47 +0000141 horizon_identity_host: ${_param:openstack_control_address}
Ales Komarekc12dd412017-06-27 16:24:42 +0200142 openstack_control_node02:
143 classes:
144 - service.galera.slave.cluster
Petr Michalecf05e3ea2017-08-21 17:33:16 +0200145 - cluster.os-ha-contrail.openstack.dashboard
Ales Komarekc12dd412017-06-27 16:24:42 +0200146 params:
147 mysql_cluster_role: slave
148 linux_system_codename: xenial
Adam Tengler29945d92017-08-11 15:00:47 +0000149 horizon_identity_host: ${_param:openstack_control_address}
Ales Komarekc12dd412017-06-27 16:24:42 +0200150 openstack_control_node03:
151 classes:
152 - service.galera.slave.cluster
Petr Michalecf05e3ea2017-08-21 17:33:16 +0200153 - cluster.os-ha-contrail.openstack.dashboard
Ales Komarekc12dd412017-06-27 16:24:42 +0200154 params:
155 mysql_cluster_role: slave
156 linux_system_codename: xenial
Adam Tengler29945d92017-08-11 15:00:47 +0000157 horizon_identity_host: ${_param:openstack_control_address}
158