blob: 4cb7db5e0306834a6a7784c92368f3fcaca98fff [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}
18 salt_api_password: hovno12345!
19 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
Adam Tenglerd4996202017-07-25 10:32:19 +000020 cluster_public_host: ${_param:infra_config_address}
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>>
59 cicd_control01:
60 expression: <<node_hostname>>__equals__cid01
61 cluster_param:
62 cicd_control_node01_address:
63 value_template: <<node_control_ip>>
64 cicd_control02:
65 expression: <<node_hostname>>__equals__cid02
66 cluster_param:
67 cicd_control_node02_address:
68 value_template: <<node_control_ip>>
69 cicd_control03:
70 expression: <<node_hostname>>__equals__cid03
71 cluster_param:
72 cicd_control_node03_address:
73 value_template: <<node_control_ip>>
74