Artem Panchenko | fce4c64 | 2017-05-22 16:59:03 +0300 | [diff] [blame] | 1 | classes: |
| 2 | - system.linux.system.repo.ubuntu |
| 3 | - system.openssh.client.lab |
| 4 | - system.salt.master.pkg |
| 5 | - system.salt.minion.ca.salt_master |
| 6 | - system.salt.master.api |
| 7 | - system.salt.minion.cert.k8s_server |
| 8 | - system.reclass.storage.salt |
| 9 | - system.reclass.storage.system.kubernetes_control_cluster |
| 10 | - cluster.virtual-mcp11-k8s-calico-minimal |
| 11 | parameters: |
| 12 | _param: |
| 13 | salt_master_base_environment: prd |
| 14 | reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab.git" |
| 15 | reclass_data_revision: master |
| 16 | reclass_config_master: ${_param:infra_config_deploy_address} |
| 17 | single_address: ${_param:infra_config_address} |
| 18 | linux_system_codename: xenial |
| 19 | salt_api_password_hash: "$6$WV0P1shnoDh2gI/Z$22/Bcd7ffMv0jDlFpT63cAU4PiXHz9pjXwngToKwqAsgoeK4HNR3PiKaushjxp3JsQ8hNoJmAC6TxzVqfV8WH/" |
| 20 | salt_master_host: ${_param:infra_config_deploy_address} |
| 21 | salt: |
| 22 | master: |
| 23 | reactor: |
| 24 | reclass/minion/classify: |
| 25 | - salt://reclass/reactor/node_register.sls |
| 26 | reclass: |
| 27 | storage: |
| 28 | class_mapping: |
| 29 | common_node: |
| 30 | expression: all |
| 31 | node_param: |
| 32 | single_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 33 | value_template: <<node_control_ip>> |
Artem Panchenko | fce4c64 | 2017-05-22 16:59:03 +0300 | [diff] [blame] | 34 | linux_system_codename: |
| 35 | value_template: <<node_os>> |
| 36 | salt_master_host: |
| 37 | value_template: <<node_master_ip>> |
| 38 | infra_config: |
| 39 | expression: <<node_hostname>>__equals__cfg01 |
| 40 | cluster_param: |
| 41 | infra_config_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 42 | value_template: <<node_control_ip>> |
Artem Panchenko | fce4c64 | 2017-05-22 16:59:03 +0300 | [diff] [blame] | 43 | infra_config_deploy_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 44 | value_template: <<node_deploy_ip>> |
Artem Panchenko | fce4c64 | 2017-05-22 16:59:03 +0300 | [diff] [blame] | 45 | kubernetes_control01: |
| 46 | expression: <<node_hostname>>__equals__ctl01 |
| 47 | cluster_param: |
| 48 | kubernetes_control_node01_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 49 | value_template: <<node_control_ip>> |
Artem Panchenko | fce4c64 | 2017-05-22 16:59:03 +0300 | [diff] [blame] | 50 | kubernetes_control02: |
| 51 | expression: <<node_hostname>>__equals__ctl02 |
| 52 | cluster_param: |
| 53 | kubernetes_control_node02_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 54 | value_template: <<node_control_ip>> |
Artem Panchenko | fce4c64 | 2017-05-22 16:59:03 +0300 | [diff] [blame] | 55 | kubernetes_control03: |
| 56 | expression: <<node_hostname>>__equals__ctl03 |
| 57 | cluster_param: |
| 58 | kubernetes_control_node03_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 59 | value_template: <<node_control_ip>> |
Artem Panchenko | fce4c64 | 2017-05-22 16:59:03 +0300 | [diff] [blame] | 60 | kubernetes_compute: |
| 61 | expression: <<node_hostname>>__startswith__cmp |
| 62 | node_class: |
| 63 | value_template: |
| 64 | - cluster.<<node_cluster>>.kubernetes.compute |
| 65 | node: |
| 66 | kubernetes_compute_node01: |
| 67 | name: ${_param:kubernetes_compute_node01_hostname} |
| 68 | domain: ${_param:cluster_domain} |
| 69 | classes: |
| 70 | - cluster.${_param:cluster_name}.kubernetes.compute |
| 71 | params: |
| 72 | salt_master_host: ${_param:infra_config_deploy_address} |
| 73 | linux_system_codename: xenial |
| 74 | single_address: ${_param:kubernetes_compute_node01_address} |