Adam Tengler | 317b0d5 | 2017-07-13 12:42:22 +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 |
| 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} |
| 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 Tengler | f7911f3 | 2017-08-02 15:57:14 +0000 | [diff] [blame] | 25 | environment: |
| 26 | prd: |
| 27 | formula: |
| 28 | glusterfs: |
| 29 | source: pkg |
| 30 | name: salt-formula-glusterfs |
Adam Tengler | 317b0d5 | 2017-07-13 12:42:22 +0200 | [diff] [blame] | 31 | 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 Tengler | 493da1f | 2017-08-04 10:11:25 +0000 | [diff] [blame^] | 53 | expression: <<node_hostname>>__equals__cid01 |
Adam Tengler | 317b0d5 | 2017-07-13 12:42:22 +0200 | [diff] [blame] | 54 | 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 Tengler | 493da1f | 2017-08-04 10:11:25 +0000 | [diff] [blame^] | 61 | cicd_control_node_node01_address: |
Adam Tengler | 317b0d5 | 2017-07-13 12:42:22 +0200 | [diff] [blame] | 62 | value_template: <<node_control_ip>> |
Adam Tengler | 493da1f | 2017-08-04 10:11:25 +0000 | [diff] [blame^] | 63 | cicd_control_node02: |
Adam Tengler | 317b0d5 | 2017-07-13 12:42:22 +0200 | [diff] [blame] | 64 | expression: <<node_hostname>>__equals__cid02 |
| 65 | cluster_param: |
Adam Tengler | 493da1f | 2017-08-04 10:11:25 +0000 | [diff] [blame^] | 66 | cicd_control_node_node02_address: |
Adam Tengler | 317b0d5 | 2017-07-13 12:42:22 +0200 | [diff] [blame] | 67 | value_template: <<node_control_ip>> |
Adam Tengler | 493da1f | 2017-08-04 10:11:25 +0000 | [diff] [blame^] | 68 | cicd_control_node03: |
Adam Tengler | 317b0d5 | 2017-07-13 12:42:22 +0200 | [diff] [blame] | 69 | expression: <<node_hostname>>__equals__cid03 |
| 70 | cluster_param: |
| 71 | cicd_control_node03_address: |
| 72 | value_template: <<node_control_ip>> |
Adam Tengler | 493da1f | 2017-08-04 10:11:25 +0000 | [diff] [blame^] | 73 | 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 Tengler | 317b0d5 | 2017-07-13 12:42:22 +0200 | [diff] [blame] | 107 | |