Adam Tengler | 2feb6b2 | 2017-07-19 17:12:46 +0200 | [diff] [blame] | 1 | classes: |
Martin Polreich | a0addcc | 2018-06-25 11:32:52 +0200 | [diff] [blame] | 2 | - system.linux.system.repo.mcp.apt_mirantis.saltstack |
Sergey Novikov | 4799d61 | 2017-09-25 16:23:37 +0400 | [diff] [blame] | 3 | - system.salt.master.pkg |
| 4 | - system.salt.master.api |
| 5 | - system.salt.minion.ca.salt_master |
| 6 | - system.reclass.storage.salt |
| 7 | - system.sphinx.server.doc.reclass |
| 8 | - cluster.drivetrain-ha-clusters |
Adam Tengler | 2feb6b2 | 2017-07-19 17:12:46 +0200 | [diff] [blame] | 9 | parameters: |
Adam Tengler | 2feb6b2 | 2017-07-19 17:12:46 +0200 | [diff] [blame] | 10 | salt: |
| 11 | master: |
Adam Tengler | c1cd4d6 | 2017-07-25 11:19:37 +0000 | [diff] [blame] | 12 | order_masters: true |
Adam Tengler | 2feb6b2 | 2017-07-19 17:12:46 +0200 | [diff] [blame] | 13 | reactor: |
| 14 | reclass/minion/classify: |
| 15 | - salt://reclass/reactor/node_register.sls |
| 16 | linux: |
| 17 | network: |
| 18 | interface: |
| 19 | ens4: |
| 20 | enabled: true |
| 21 | type: eth |
| 22 | proto: static |
| 23 | address: ${_param:single_address} |
| 24 | netmask: 255.255.255.0 |
| 25 | reclass: |
| 26 | storage: |
| 27 | class_mapping: |
| 28 | common_node: |
| 29 | expression: all |
| 30 | node_param: |
| 31 | single_address: |
| 32 | value_template: <<node_control_ip>> |
| 33 | linux_system_codename: |
| 34 | value_template: <<node_os>> |
| 35 | salt_master_host: |
| 36 | value_template: <<node_master_ip>> |
| 37 | infra_config: |
Adam Tengler | 500745f | 2017-07-27 15:51:10 +0000 | [diff] [blame] | 38 | expression: |
| 39 | - <<node_hostname>>__startswith__cfg |
| 40 | - <<node_cluster>>__equals__drivetrain_ha_clusters |
Adam Tengler | 2feb6b2 | 2017-07-19 17:12:46 +0200 | [diff] [blame] | 41 | cluster_param: |
| 42 | infra_config_address: |
| 43 | value_template: <<node_control_ip>> |
| 44 | infra_config_deploy_address: |
| 45 | value_template: <<node_deploy_ip>> |
| 46 | cluster_domain: |
| 47 | value_template: <<node_domain>> |
Adam Tengler | dc5ef78 | 2017-08-04 10:06:58 +0000 | [diff] [blame] | 48 | cicd_control_node01: |
Adam Tengler | 2feb6b2 | 2017-07-19 17:12:46 +0200 | [diff] [blame] | 49 | expression: <<node_hostname>>__equals__cid01 |
| 50 | cluster_param: |
| 51 | cicd_control_node01_address: |
| 52 | value_template: <<node_control_ip>> |
Adam Tengler | dc5ef78 | 2017-08-04 10:06:58 +0000 | [diff] [blame] | 53 | cicd_control_node02: |
Adam Tengler | 2feb6b2 | 2017-07-19 17:12:46 +0200 | [diff] [blame] | 54 | expression: <<node_hostname>>__equals__cid02 |
| 55 | cluster_param: |
| 56 | cicd_control_node02_address: |
| 57 | value_template: <<node_control_ip>> |
Adam Tengler | dc5ef78 | 2017-08-04 10:06:58 +0000 | [diff] [blame] | 58 | cicd_control_node03: |
Adam Tengler | 2feb6b2 | 2017-07-19 17:12:46 +0200 | [diff] [blame] | 59 | expression: <<node_hostname>>__equals__cid03 |
| 60 | cluster_param: |
| 61 | cicd_control_node03_address: |
| 62 | value_template: <<node_control_ip>> |
Adam Tengler | dc5ef78 | 2017-08-04 10:06:58 +0000 | [diff] [blame] | 63 | node: |
| 64 | cicd_control_node01: |
| 65 | name: ${_param:cicd_control_node01_hostname} |
| 66 | domain: ${_param:cluster_domain} |
| 67 | classes: |
Vladimir Jigulin | 5fe6027 | 2017-11-13 16:09:23 +0400 | [diff] [blame] | 68 | - cluster.${_param:cluster_name}.infra.config |
Adam Tengler | dc5ef78 | 2017-08-04 10:06:58 +0000 | [diff] [blame] | 69 | - cluster.${_param:cluster_name}.cicd.control.master |
| 70 | params: |
| 71 | salt_master_host: ${_param:reclass_config_master} |
| 72 | linux_system_codename: xenial |
| 73 | single_address: ${_param:cicd_control_node01_address} |
| 74 | keepalived_vip_priority: 103 |
Mykyta Karpin | 8e5f182 | 2018-09-14 09:47:56 +0300 | [diff] [blame] | 75 | glusterfs_node_role: primary |
Adam Tengler | dc5ef78 | 2017-08-04 10:06:58 +0000 | [diff] [blame] | 76 | cicd_control_node02: |
| 77 | name: ${_param:cicd_control_node02_hostname} |
| 78 | domain: ${_param:cluster_domain} |
| 79 | classes: |
| 80 | - cluster.${_param:cluster_name}.cicd.control.slave |
| 81 | params: |
| 82 | salt_master_host: ${_param:reclass_config_master} |
| 83 | linux_system_codename: xenial |
| 84 | single_address: ${_param:cicd_control_node02_address} |
| 85 | keepalived_vip_priority: 102 |
| 86 | docker_swarm_role: worker |
Mykyta Karpin | 8e5f182 | 2018-09-14 09:47:56 +0300 | [diff] [blame] | 87 | glusterfs_node_role: secondary |
Adam Tengler | dc5ef78 | 2017-08-04 10:06:58 +0000 | [diff] [blame] | 88 | cicd_control_node03: |
| 89 | name: ${_param:cicd_control_node03_hostname} |
| 90 | domain: ${_param:cluster_domain} |
| 91 | classes: |
| 92 | - cluster.${_param:cluster_name}.cicd.control.slave |
| 93 | params: |
| 94 | salt_master_host: ${_param:reclass_config_master} |
| 95 | linux_system_codename: xenial |
| 96 | single_address: ${_param:cicd_control_node03_address} |
| 97 | keepalived_vip_priority: 101 |
| 98 | docker_swarm_role: worker |
Mykyta Karpin | 8e5f182 | 2018-09-14 09:47:56 +0300 | [diff] [blame] | 99 | glusterfs_node_role: secondary |