Adam Tengler | 2feb6b2 | 2017-07-19 17:12:46 +0200 | [diff] [blame] | 1 | classes: |
| 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 |
| 8 | parameters: |
| 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 Tengler | d499620 | 2017-07-25 10:32:19 +0000 | [diff] [blame] | 18 | cluster_public_host: ${_param:infra_config_address} |
Adam Tengler | 2feb6b2 | 2017-07-19 17:12:46 +0200 | [diff] [blame] | 19 | salt: |
| 20 | master: |
Adam Tengler | c1cd4d6 | 2017-07-25 11:19:37 +0000 | [diff] [blame] | 21 | order_masters: true |
Adam Tengler | 2feb6b2 | 2017-07-19 17:12:46 +0200 | [diff] [blame] | 22 | 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 Tengler | 500745f | 2017-07-27 15:51:10 +0000 | [diff] [blame] | 47 | expression: |
| 48 | - <<node_hostname>>__startswith__cfg |
| 49 | - <<node_cluster>>__equals__drivetrain_ha_clusters |
Adam Tengler | 2feb6b2 | 2017-07-19 17:12:46 +0200 | [diff] [blame] | 50 | 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 Tengler | dc5ef78 | 2017-08-04 10:06:58 +0000 | [diff] [blame] | 57 | cicd_control_node01: |
Adam Tengler | 2feb6b2 | 2017-07-19 17:12:46 +0200 | [diff] [blame] | 58 | expression: <<node_hostname>>__equals__cid01 |
| 59 | cluster_param: |
| 60 | cicd_control_node01_address: |
| 61 | value_template: <<node_control_ip>> |
Adam Tengler | dc5ef78 | 2017-08-04 10:06:58 +0000 | [diff] [blame] | 62 | cicd_control_node02: |
Adam Tengler | 2feb6b2 | 2017-07-19 17:12:46 +0200 | [diff] [blame] | 63 | expression: <<node_hostname>>__equals__cid02 |
| 64 | cluster_param: |
| 65 | cicd_control_node02_address: |
| 66 | value_template: <<node_control_ip>> |
Adam Tengler | dc5ef78 | 2017-08-04 10:06:58 +0000 | [diff] [blame] | 67 | cicd_control_node03: |
Adam Tengler | 2feb6b2 | 2017-07-19 17:12:46 +0200 | [diff] [blame] | 68 | expression: <<node_hostname>>__equals__cid03 |
| 69 | cluster_param: |
| 70 | cicd_control_node03_address: |
| 71 | value_template: <<node_control_ip>> |
Adam Tengler | dc5ef78 | 2017-08-04 10:06:58 +0000 | [diff] [blame] | 72 | 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 Tengler | 2feb6b2 | 2017-07-19 17:12:46 +0200 | [diff] [blame] | 105 | |