blob: 16d7f3238a564a9c2c8d02870c8f27295f9e738f [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
13- system.keystone.client.service.aodh
14- system.keystone.client.service.ceilometer
15- system.keystone.client.service.nova21
16- system.keystone.client.service.glare
17- system.keystone.client.service.cinder3
18- system.keystone.client.service.designate
19- system.mysql.client.single
20- system.reclass.storage.system.openstack_control_cluster
21- system.reclass.storage.system.opencontrail_control_cluster
Ales Komarekc12dd412017-06-27 16:24:42 +020022- cluster.os_ha_contrail.openstack.proxy
Adam Tengler0c624442017-07-04 13:25:36 +000023- cluster.os_ha_contrail.openstack.dashboard
Ales Komarekc12dd412017-06-27 16:24:42 +020024- cluster.os_ha_contrail
25parameters:
26 _param:
27 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab"
28 reclass_data_revision: master
Adam Tenglerc6176502017-07-04 20:45:06 +000029 reclass_config_master: ${_param:infra_config_deploy_address}
30 single_address: ${_param:infra_config_address}
Ales Komarekc12dd412017-06-27 16:24:42 +020031 salt_master_host: 127.0.0.1
32 salt_master_base_environment: prd
33 salt_minion_ca_host: ${linux:network:fqdn}
34 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
35 linux:
36 network:
37 interface:
38 ens4:
39 enabled: true
40 type: eth
41 proto: static
42 address: ${_param:single_address}
43 netmask: 255.255.255.0
44 nginx:
45 server:
46 site:
47 nginx_proxy_openstack_web:
48 proxy:
49 host: prx
50 nginx_proxy_openstack_api_heat_cfn:
51 enabled: false
Adam Tengler4f23d962017-07-04 19:54:59 +000052 salt:
53 master:
54 reactor:
55 reclass/minion/classify:
56 - salt://reclass/reactor/node_register.sls
Ales Komarekc12dd412017-06-27 16:24:42 +020057 reclass:
58 storage:
Adam Tengler4f23d962017-07-04 19:54:59 +000059 class_mapping:
60 common_node:
61 expression: all
62 node_param:
63 single_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000064 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000065 linux_system_codename:
66 value_template: <<node_os>>
67 salt_master_host:
68 value_template: <<node_master_ip>>
69 infra_config:
70 expression: <<node_hostname>>__startswith__cfg
71 cluster_param:
72 infra_config_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000073 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000074 infra_config_deploy_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000075 value_template: <<node_deploy_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000076 cluster_domain:
77 value_template: <<node_domain>>
78 openstack_control01:
79 expression: <<node_hostname>>__equals__ctl01
80 cluster_param:
81 openstack_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000082 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000083 openstack_control02:
84 expression: <<node_hostname>>__equals__ctl02
85 cluster_param:
86 openstack_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000087 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000088 openstack_control03:
89 expression: <<node_hostname>>__equals__ctl03
90 cluster_param:
91 openstack_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000092 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000093 opencontrail_control01:
94 expression: <<node_hostname>>__equals__ntw01
95 cluster_param:
96 opencontrail_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000097 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000098 opencontrail_control02:
99 expression: <<node_hostname>>__equals__ntw02
100 cluster_param:
101 opencontrail_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000102 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000103 opencontrail_control03:
104 expression: <<node_hostname>>__equals__ntw03
105 cluster_param:
106 opencontrail_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000107 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000108 openstack_compute:
109 expression: <<node_hostname>>__startswith__cmp
110 node_class:
111 value_template:
112 - cluster.<<node_cluster>>.openstack.compute
113 node_param:
114 tenant_address:
115 value_template: <<node_tenant_ip>>
116 external_address:
117 value_template: <<node_external_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +0200118 node:
119 openstack_control_node01:
120 classes:
121 - service.galera.master.cluster
122 params:
123 mysql_cluster_role: master
124 linux_system_codename: xenial
125 openstack_control_node02:
126 classes:
127 - service.galera.slave.cluster
128 params:
129 mysql_cluster_role: slave
130 linux_system_codename: xenial
131 openstack_control_node03:
132 classes:
133 - service.galera.slave.cluster
134 params:
135 mysql_cluster_role: slave
136 linux_system_codename: xenial