blob: 3ab57492ed7e6a1d9a58df29c51e37f3e7810fd3 [file] [log] [blame]
Adam Tengler317b0d52017-07-13 12:42:22 +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
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}
18 salt_api_password: hovno12345!
19 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
20 salt:
21 master:
22 reactor:
23 reclass/minion/classify:
24 - salt://reclass/reactor/node_register.sls
Adam Tenglerf7911f32017-08-02 15:57:14 +000025 environment:
26 prd:
27 formula:
28 glusterfs:
29 source: pkg
30 name: salt-formula-glusterfs
Adam Tengler317b0d52017-07-13 12:42:22 +020031 linux:
32 network:
33 interface:
34 ens4:
35 enabled: true
36 type: eth
37 proto: static
38 address: ${_param:single_address}
39 netmask: 255.255.255.0
40 reclass:
41 storage:
42 class_mapping:
43 common_node:
44 expression: all
45 node_param:
46 single_address:
47 value_template: <<node_control_ip>>
48 linux_system_codename:
49 value_template: <<node_os>>
50 salt_master_host:
51 value_template: <<node_master_ip>>
52 infra_config:
Adam Tengler493da1f2017-08-04 10:11:25 +000053 expression: <<node_hostname>>__equals__cid01
Adam Tengler317b0d52017-07-13 12:42:22 +020054 cluster_param:
55 infra_config_address:
56 value_template: <<node_control_ip>>
57 infra_config_deploy_address:
58 value_template: <<node_deploy_ip>>
59 cluster_domain:
60 value_template: <<node_domain>>
Adam Tengler493da1f2017-08-04 10:11:25 +000061 cicd_control_node_node01_address:
Adam Tengler317b0d52017-07-13 12:42:22 +020062 value_template: <<node_control_ip>>
Adam Tengler493da1f2017-08-04 10:11:25 +000063 cicd_control_node02:
Adam Tengler317b0d52017-07-13 12:42:22 +020064 expression: <<node_hostname>>__equals__cid02
65 cluster_param:
Adam Tengler493da1f2017-08-04 10:11:25 +000066 cicd_control_node_node02_address:
Adam Tengler317b0d52017-07-13 12:42:22 +020067 value_template: <<node_control_ip>>
Adam Tengler493da1f2017-08-04 10:11:25 +000068 cicd_control_node03:
Adam Tengler317b0d52017-07-13 12:42:22 +020069 expression: <<node_hostname>>__equals__cid03
70 cluster_param:
71 cicd_control_node03_address:
72 value_template: <<node_control_ip>>
Adam Tengler493da1f2017-08-04 10:11:25 +000073 node:
74 cicd_control_node01:
75 name: ${_param:cicd_control_node01_hostname}
76 domain: ${_param:cluster_domain}
77 classes:
78 - cluster.${_param:cluster_name}.infra.config
79 - cluster.${_param:cluster_name}.cicd.control.master
80 params:
81 salt_master_host: 127.0.0.1
82 linux_system_codename: xenial
83 single_address: ${_param:cicd_control_node01_address}
84 keepalived_vip_priority: 103
85 cicd_control_node02:
86 name: ${_param:cicd_control_node02_hostname}
87 domain: ${_param:cluster_domain}
88 classes:
89 - cluster.${_param:cluster_name}.cicd.control.slave
90 params:
91 salt_master_host: ${_param:reclass_config_master}
92 linux_system_codename: xenial
93 single_address: ${_param:cicd_control_node02_address}
94 keepalived_vip_priority: 102
95 docker_swarm_role: worker
96 cicd_control_node03:
97 name: ${_param:cicd_control_node03_hostname}
98 domain: ${_param:cluster_domain}
99 classes:
100 - cluster.${_param:cluster_name}.cicd.control.slave
101 params:
102 salt_master_host: ${_param:reclass_config_master}
103 linux_system_codename: xenial
104 single_address: ${_param:cicd_control_node03_address}
105 keepalived_vip_priority: 101
106 docker_swarm_role: worker
Adam Tengler317b0d52017-07-13 12:42:22 +0200107