blob: a96d9fe5e341c0118e447220ad279d64bfdc4160 [file] [log] [blame]
Adam Tengler2feb6b22017-07-19 17:12:46 +02001classes:
Sergey Novikov4799d612017-09-25 16:23:37 +04002 - 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
Adam Tengler2feb6b22017-07-19 17:12:46 +02008parameters:
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}
Sergey Novikov4799d612017-09-25 16:23:37 +040019 salt_api_password: hovno12345!
20 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
Adam Tengler2feb6b22017-07-19 17:12:46 +020021 salt:
22 master:
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000023 order_masters: true
Adam Tengler2feb6b22017-07-19 17:12:46 +020024 reactor:
25 reclass/minion/classify:
26 - salt://reclass/reactor/node_register.sls
27 linux:
28 network:
29 interface:
30 ens4:
31 enabled: true
32 type: eth
33 proto: static
34 address: ${_param:single_address}
35 netmask: 255.255.255.0
36 reclass:
37 storage:
38 class_mapping:
39 common_node:
40 expression: all
41 node_param:
42 single_address:
43 value_template: <<node_control_ip>>
44 linux_system_codename:
45 value_template: <<node_os>>
46 salt_master_host:
47 value_template: <<node_master_ip>>
48 infra_config:
Adam Tengler500745f2017-07-27 15:51:10 +000049 expression:
50 - <<node_hostname>>__startswith__cfg
51 - <<node_cluster>>__equals__drivetrain_ha_clusters
Adam Tengler2feb6b22017-07-19 17:12:46 +020052 cluster_param:
53 infra_config_address:
54 value_template: <<node_control_ip>>
55 infra_config_deploy_address:
56 value_template: <<node_deploy_ip>>
57 cluster_domain:
58 value_template: <<node_domain>>
Adam Tenglerdc5ef782017-08-04 10:06:58 +000059 cicd_control_node01:
Adam Tengler2feb6b22017-07-19 17:12:46 +020060 expression: <<node_hostname>>__equals__cid01
61 cluster_param:
62 cicd_control_node01_address:
63 value_template: <<node_control_ip>>
Adam Tenglerdc5ef782017-08-04 10:06:58 +000064 cicd_control_node02:
Adam Tengler2feb6b22017-07-19 17:12:46 +020065 expression: <<node_hostname>>__equals__cid02
66 cluster_param:
67 cicd_control_node02_address:
68 value_template: <<node_control_ip>>
Adam Tenglerdc5ef782017-08-04 10:06:58 +000069 cicd_control_node03:
Adam Tengler2feb6b22017-07-19 17:12:46 +020070 expression: <<node_hostname>>__equals__cid03
71 cluster_param:
72 cicd_control_node03_address:
73 value_template: <<node_control_ip>>
Adam Tenglerdc5ef782017-08-04 10:06:58 +000074 node:
75 cicd_control_node01:
76 name: ${_param:cicd_control_node01_hostname}
77 domain: ${_param:cluster_domain}
78 classes:
Sergey Novikov4799d612017-09-25 16:23:37 +040079 - cluster.${_param:cluster_name}.infra.config
Adam Tenglerdc5ef782017-08-04 10:06:58 +000080 - cluster.${_param:cluster_name}.cicd.control.master
Sergey Novikov4799d612017-09-25 16:23:37 +040081 - cluster.overrides
Adam Tenglerdc5ef782017-08-04 10:06:58 +000082 params:
83 salt_master_host: ${_param:reclass_config_master}
84 linux_system_codename: xenial
85 single_address: ${_param:cicd_control_node01_address}
86 keepalived_vip_priority: 103
87 cicd_control_node02:
88 name: ${_param:cicd_control_node02_hostname}
89 domain: ${_param:cluster_domain}
90 classes:
91 - cluster.${_param:cluster_name}.cicd.control.slave
Sergey Novikov4799d612017-09-25 16:23:37 +040092 - cluster.overrides
Adam Tenglerdc5ef782017-08-04 10:06:58 +000093 params:
94 salt_master_host: ${_param:reclass_config_master}
95 linux_system_codename: xenial
96 single_address: ${_param:cicd_control_node02_address}
97 keepalived_vip_priority: 102
98 docker_swarm_role: worker
99 cicd_control_node03:
100 name: ${_param:cicd_control_node03_hostname}
101 domain: ${_param:cluster_domain}
102 classes:
103 - cluster.${_param:cluster_name}.cicd.control.slave
Sergey Novikov4799d612017-09-25 16:23:37 +0400104 - cluster.overrides
Adam Tenglerdc5ef782017-08-04 10:06:58 +0000105 params:
106 salt_master_host: ${_param:reclass_config_master}
107 linux_system_codename: xenial
108 single_address: ${_param:cicd_control_node03_address}
109 keepalived_vip_priority: 101
110 docker_swarm_role: worker