blob: 7d36a2b3a0f4bb7b42653ee23dff77e26af5f9fa [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
Adam Tengler2b36a762017-07-13 14:34:47 +000016- system.mysql.client
17- system.mysql.client.database.cinder
18- system.mysql.client.database.glance
19- system.mysql.client.database.heat
20- system.mysql.client.database.keystone
21- system.mysql.client.database.nova
22- system.mysql.client.database.nova_api
23- system.mysql.client.database.neutron
Ales Komarekc12dd412017-06-27 16:24:42 +020024- system.reclass.storage.system.openstack_control_cluster
Ales Komarekc12dd412017-06-27 16:24:42 +020025- cluster.os_ha_ovs.openstack.proxy
Adam Tengler0c624442017-07-04 13:25:36 +000026- cluster.os_ha_ovs.openstack.dashboard
Ales Komarekc12dd412017-06-27 16:24:42 +020027- cluster.os_ha_ovs
28parameters:
29 _param:
30 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
31 reclass_data_revision: master
32 salt_master_environment_repository: "https://github.com/tcpcloud"
33 salt_master_environment_revision: master
Adam Tengler250d5bb2017-06-29 15:59:02 +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 Tengler250d5bb2017-06-29 15:59:02 +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 Tengler250d5bb2017-06-29 15:59:02 +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 Tengler250d5bb2017-06-29 15:59:02 +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 Tengler250d5bb2017-06-29 15:59:02 +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>>
Adam Tengler250d5bb2017-06-29 15:59:02 +000083 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 Tengler250d5bb2017-06-29 15:59:02 +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 Tengler250d5bb2017-06-29 15:59:02 +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 Tengler250d5bb2017-06-29 15:59:02 +000098 openstack_compute:
99 expression: <<node_hostname>>__startswith__cmp
100 node_class:
101 value_template:
102 - cluster.<<node_cluster>>.openstack.compute
Adam Tengler8b254412017-06-29 18:30:32 +0000103 node_param:
104 tenant_address:
105 value_template: <<node_tenant_ip>>
106 external_address:
107 value_template: <<node_external_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +0200108 node:
109 openstack_control_node01:
110 classes:
111 - service.galera.master.cluster
112 params:
113 mysql_cluster_role: master
114 linux_system_codename: xenial
115 openstack_control_node02:
116 classes:
117 - service.galera.slave.cluster
118 params:
119 mysql_cluster_role: slave
120 linux_system_codename: xenial
121 openstack_control_node03:
122 classes:
123 - service.galera.slave.cluster
124 params:
125 mysql_cluster_role: slave
126 linux_system_codename: xenial