blob: 25e78fa36705cf3a70d1559f6d5baa5d0e095e78 [file] [log] [blame]
Adam Tengler2feb6b22017-07-19 17:12:46 +02001classes:
2- system.salt.master.pkg
3- system.salt.master.api
4- system.salt.minion.ca.salt_master
5- system.reclass.storage.salt
6- system.sphinx.server.doc.reclass
7- cluster.drivetrain_ha_clusters
8parameters:
9 _param:
10 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab"
11 reclass_data_revision: master
12 reclass_config_master: ${_param:infra_config_deploy_address}
13 single_address: ${_param:infra_config_address}
14 linux_system_codename: xenial
15 salt_master_base_environment: prd
16 salt_minion_ca_host: ${linux:network:fqdn}
17 salt_master_host: ${_param:infra_config_deploy_address}
Adam Tenglerd4996202017-07-25 10:32:19 +000018 cluster_public_host: ${_param:infra_config_address}
Adam Tengler2feb6b22017-07-19 17:12:46 +020019 salt:
20 master:
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000021 order_masters: true
Adam Tengler2feb6b22017-07-19 17:12:46 +020022 reactor:
23 reclass/minion/classify:
24 - salt://reclass/reactor/node_register.sls
25 linux:
26 network:
27 interface:
28 ens4:
29 enabled: true
30 type: eth
31 proto: static
32 address: ${_param:single_address}
33 netmask: 255.255.255.0
34 reclass:
35 storage:
36 class_mapping:
37 common_node:
38 expression: all
39 node_param:
40 single_address:
41 value_template: <<node_control_ip>>
42 linux_system_codename:
43 value_template: <<node_os>>
44 salt_master_host:
45 value_template: <<node_master_ip>>
46 infra_config:
Adam Tengler500745f2017-07-27 15:51:10 +000047 expression:
48 - <<node_hostname>>__startswith__cfg
49 - <<node_cluster>>__equals__drivetrain_ha_clusters
Adam Tengler2feb6b22017-07-19 17:12:46 +020050 cluster_param:
51 infra_config_address:
52 value_template: <<node_control_ip>>
53 infra_config_deploy_address:
54 value_template: <<node_deploy_ip>>
55 cluster_domain:
56 value_template: <<node_domain>>
Adam Tenglerdc5ef782017-08-04 10:06:58 +000057 cicd_control_node01:
Adam Tengler2feb6b22017-07-19 17:12:46 +020058 expression: <<node_hostname>>__equals__cid01
59 cluster_param:
60 cicd_control_node01_address:
61 value_template: <<node_control_ip>>
Adam Tenglerdc5ef782017-08-04 10:06:58 +000062 cicd_control_node02:
Adam Tengler2feb6b22017-07-19 17:12:46 +020063 expression: <<node_hostname>>__equals__cid02
64 cluster_param:
65 cicd_control_node02_address:
66 value_template: <<node_control_ip>>
Adam Tenglerdc5ef782017-08-04 10:06:58 +000067 cicd_control_node03:
Adam Tengler2feb6b22017-07-19 17:12:46 +020068 expression: <<node_hostname>>__equals__cid03
69 cluster_param:
70 cicd_control_node03_address:
71 value_template: <<node_control_ip>>
Adam Tenglerdc5ef782017-08-04 10:06:58 +000072 node:
73 cicd_control_node01:
74 name: ${_param:cicd_control_node01_hostname}
75 domain: ${_param:cluster_domain}
76 classes:
77 - cluster.${_param:cluster_name}.cicd.control.master
78 params:
79 salt_master_host: ${_param:reclass_config_master}
80 linux_system_codename: xenial
81 single_address: ${_param:cicd_control_node01_address}
82 keepalived_vip_priority: 103
83 cicd_control_node02:
84 name: ${_param:cicd_control_node02_hostname}
85 domain: ${_param:cluster_domain}
86 classes:
87 - cluster.${_param:cluster_name}.cicd.control.slave
88 params:
89 salt_master_host: ${_param:reclass_config_master}
90 linux_system_codename: xenial
91 single_address: ${_param:cicd_control_node02_address}
92 keepalived_vip_priority: 102
93 docker_swarm_role: worker
94 cicd_control_node03:
95 name: ${_param:cicd_control_node03_hostname}
96 domain: ${_param:cluster_domain}
97 classes:
98 - cluster.${_param:cluster_name}.cicd.control.slave
99 params:
100 salt_master_host: ${_param:reclass_config_master}
101 linux_system_codename: xenial
102 single_address: ${_param:cicd_control_node03_address}
103 keepalived_vip_priority: 101
104 docker_swarm_role: worker
Adam Tengler2feb6b22017-07-19 17:12:46 +0200105