blob: fb26bc0397cae3e4429dce1c44e0f4f0f52fc580 [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
Ales Komarekc12dd412017-06-27 16:24:42 +020013- system.keystone.client.service.nova21
14- system.keystone.client.service.glare
15- system.keystone.client.service.cinder3
16- system.keystone.client.service.designate
Adam Tengler2b36a762017-07-13 14:34:47 +000017- system.mysql.client
18- system.mysql.client.database.cinder
19- system.mysql.client.database.glance
20- system.mysql.client.database.heat
21- system.mysql.client.database.keystone
22- system.mysql.client.database.nova
23- system.mysql.client.database.nova_api
24- system.mysql.client.database.neutron
Ales Komarekc12dd412017-06-27 16:24:42 +020025- system.reclass.storage.system.openstack_control_cluster
26- system.reclass.storage.system.opencontrail_control_cluster
Ales Komarekc12dd412017-06-27 16:24:42 +020027- cluster.os_ha_contrail.openstack.proxy
Adam Tengler0c624442017-07-04 13:25:36 +000028- cluster.os_ha_contrail.openstack.dashboard
Ales Komarekc12dd412017-06-27 16:24:42 +020029- cluster.os_ha_contrail
30parameters:
31 _param:
32 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab"
33 reclass_data_revision: master
Adam Tenglerc6176502017-07-04 20:45:06 +000034 reclass_config_master: ${_param:infra_config_deploy_address}
35 single_address: ${_param:infra_config_address}
Ales Komarekc12dd412017-06-27 16:24:42 +020036 salt_master_host: 127.0.0.1
37 salt_master_base_environment: prd
38 salt_minion_ca_host: ${linux:network:fqdn}
39 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
40 linux:
41 network:
42 interface:
43 ens4:
44 enabled: true
45 type: eth
46 proto: static
47 address: ${_param:single_address}
48 netmask: 255.255.255.0
49 nginx:
50 server:
51 site:
52 nginx_proxy_openstack_web:
53 proxy:
54 host: prx
55 nginx_proxy_openstack_api_heat_cfn:
56 enabled: false
Adam Tengler4f23d962017-07-04 19:54:59 +000057 salt:
58 master:
59 reactor:
60 reclass/minion/classify:
61 - salt://reclass/reactor/node_register.sls
Ales Komarekc12dd412017-06-27 16:24:42 +020062 reclass:
63 storage:
Adam Tengler4f23d962017-07-04 19:54:59 +000064 class_mapping:
65 common_node:
66 expression: all
67 node_param:
68 single_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000069 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000070 linux_system_codename:
71 value_template: <<node_os>>
72 salt_master_host:
73 value_template: <<node_master_ip>>
74 infra_config:
75 expression: <<node_hostname>>__startswith__cfg
76 cluster_param:
77 infra_config_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000078 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000079 infra_config_deploy_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000080 value_template: <<node_deploy_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000081 cluster_domain:
82 value_template: <<node_domain>>
83 openstack_control01:
84 expression: <<node_hostname>>__equals__ctl01
85 cluster_param:
86 openstack_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000087 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000088 openstack_control02:
89 expression: <<node_hostname>>__equals__ctl02
90 cluster_param:
91 openstack_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000092 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000093 openstack_control03:
94 expression: <<node_hostname>>__equals__ctl03
95 cluster_param:
96 openstack_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000097 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000098 opencontrail_control01:
99 expression: <<node_hostname>>__equals__ntw01
100 cluster_param:
101 opencontrail_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000102 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000103 opencontrail_control02:
104 expression: <<node_hostname>>__equals__ntw02
105 cluster_param:
106 opencontrail_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000107 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000108 opencontrail_control03:
109 expression: <<node_hostname>>__equals__ntw03
110 cluster_param:
111 opencontrail_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000112 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000113 openstack_compute:
114 expression: <<node_hostname>>__startswith__cmp
115 node_class:
116 value_template:
117 - cluster.<<node_cluster>>.openstack.compute
118 node_param:
119 tenant_address:
120 value_template: <<node_tenant_ip>>
121 external_address:
122 value_template: <<node_external_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +0200123 node:
124 openstack_control_node01:
125 classes:
126 - service.galera.master.cluster
127 params:
128 mysql_cluster_role: master
129 linux_system_codename: xenial
130 openstack_control_node02:
131 classes:
132 - service.galera.slave.cluster
133 params:
134 mysql_cluster_role: slave
135 linux_system_codename: xenial
136 openstack_control_node03:
137 classes:
138 - service.galera.slave.cluster
139 params:
140 mysql_cluster_role: slave
141 linux_system_codename: xenial