Adam Tengler | 048f45d | 2017-07-10 11:06:20 +0000 | [diff] [blame] | 1 | classes: |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 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 |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 8 | - system.reclass.storage.salt |
| 9 | - system.reclass.storage.system.kubernetes_control_cluster |
| 10 | - cluster.k8s_ha_calico |
| 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: 127.0.0.1 |
Petr Michalec | 87f3968 | 2017-08-17 06:54:05 +0200 | [diff] [blame^] | 21 | salt_master_environment_revision: master |
| 22 | salt_master_environment_repository: 'https://github.com/salt-formulas' |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 23 | salt: |
| 24 | master: |
| 25 | reactor: |
| 26 | reclass/minion/classify: |
| 27 | - salt://reclass/reactor/node_register.sls |
Petr Michalec | 95e2543 | 2017-08-15 17:53:23 +0200 | [diff] [blame] | 28 | environment: |
| 29 | # TODO: remove formulas in development once they are stable and part of shared the system-level reclass |
Petr Michalec | 87f3968 | 2017-08-17 06:54:05 +0200 | [diff] [blame^] | 30 | prd: |
Petr Michalec | 95e2543 | 2017-08-15 17:53:23 +0200 | [diff] [blame] | 31 | formula: |
| 32 | helm: |
Petr Michalec | 87f3968 | 2017-08-17 06:54:05 +0200 | [diff] [blame^] | 33 | source: pkg |
| 34 | name: salt-formula-helm |
| 35 | #source: git |
| 36 | #address: '${_param:salt_master_environment_repository}/salt-formula-helm.git' |
| 37 | #revision: ${_param:salt_master_environment_revision} |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 38 | reclass: |
| 39 | storage: |
| 40 | class_mapping: |
| 41 | common_node: |
| 42 | expression: all |
| 43 | node_param: |
| 44 | single_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 45 | value_template: <<node_control_ip>> |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 46 | linux_system_codename: |
| 47 | value_template: <<node_os>> |
| 48 | salt_master_host: |
| 49 | value_template: <<node_master_ip>> |
| 50 | infra_config: |
| 51 | expression: <<node_hostname>>__startswith__cfg |
| 52 | cluster_param: |
| 53 | infra_config_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 54 | value_template: <<node_control_ip>> |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 55 | infra_config_deploy_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 56 | value_template: <<node_deploy_ip>> |
Adam Tengler | 4f23d96 | 2017-07-04 19:54:59 +0000 | [diff] [blame] | 57 | cluster_domain: |
| 58 | value_template: <<node_domain>> |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 59 | kubernetes_control01: |
| 60 | expression: <<node_hostname>>__equals__ctl01 |
| 61 | cluster_param: |
| 62 | kubernetes_control_node01_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 63 | value_template: <<node_control_ip>> |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 64 | kubernetes_control02: |
| 65 | expression: <<node_hostname>>__equals__ctl02 |
| 66 | cluster_param: |
| 67 | kubernetes_control_node02_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 68 | value_template: <<node_control_ip>> |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 69 | kubernetes_control03: |
| 70 | expression: <<node_hostname>>__equals__ctl03 |
| 71 | cluster_param: |
| 72 | kubernetes_control_node03_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 73 | value_template: <<node_control_ip>> |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 74 | kubernetes_compute: |
| 75 | expression: <<node_hostname>>__startswith__cmp |
| 76 | node_class: |
| 77 | value_template: |
| 78 | - cluster.<<node_cluster>>.kubernetes.compute |