Matthew Mosesohn | 0e8bc58 | 2017-09-01 16:26:03 +0300 | [diff] [blame] | 1 | classes: |
azvyagintsev | 2859f0e | 2018-06-11 17:45:47 +0300 | [diff] [blame] | 2 | - system.linux.system.repo.mcp.apt_mirantis.ubuntu |
Martin Polreich | a0addcc | 2018-06-25 11:32:52 +0200 | [diff] [blame^] | 3 | - system.linux.system.repo.mcp.apt_mirantis.saltstack |
Matthew Mosesohn | 0e8bc58 | 2017-09-01 16:26:03 +0300 | [diff] [blame] | 4 | - system.openssh.client.lab |
| 5 | - system.salt.master.pkg |
| 6 | - system.salt.minion.ca.salt_master |
| 7 | - system.salt.master.api |
| 8 | - system.salt.minion.cert.k8s_server |
| 9 | - system.reclass.storage.salt |
| 10 | - system.reclass.storage.system.kubernetes_control_cluster |
| 11 | - cluster.k8s-ha-calico-cloudprovider |
| 12 | parameters: |
| 13 | _param: |
| 14 | salt_master_base_environment: prd |
| 15 | reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab.git" |
| 16 | reclass_data_revision: master |
| 17 | reclass_config_master: ${_param:infra_config_deploy_address} |
| 18 | single_address: ${_param:infra_config_address} |
| 19 | linux_system_codename: xenial |
| 20 | salt_api_password_hash: "$6$WV0P1shnoDh2gI/Z$22/Bcd7ffMv0jDlFpT63cAU4PiXHz9pjXwngToKwqAsgoeK4HNR3PiKaushjxp3JsQ8hNoJmAC6TxzVqfV8WH/" |
| 21 | salt_master_host: 127.0.0.1 |
| 22 | salt_master_environment_revision: master |
| 23 | salt_master_environment_repository: 'https://github.com/salt-formulas' |
| 24 | salt: |
| 25 | master: |
| 26 | reactor: |
| 27 | reclass/minion/classify: |
| 28 | - salt://reclass/reactor/node_register.sls |
| 29 | environment: |
| 30 | # TODO: remove formulas in development once they are stable and part of shared the system-level reclass |
| 31 | prd: |
| 32 | formula: |
| 33 | helm: |
| 34 | source: pkg |
| 35 | name: salt-formula-helm |
| 36 | #source: git |
| 37 | #address: '${_param:salt_master_environment_repository}/salt-formula-helm.git' |
| 38 | #revision: ${_param:salt_master_environment_revision} |
| 39 | reclass: |
| 40 | storage: |
| 41 | class_mapping: |
| 42 | common_node: |
| 43 | expression: all |
| 44 | node_param: |
| 45 | single_address: |
| 46 | value_template: <<node_control_ip>> |
| 47 | linux_system_codename: |
| 48 | value_template: <<node_os>> |
| 49 | salt_master_host: |
| 50 | value_template: <<node_master_ip>> |
| 51 | infra_config: |
| 52 | expression: <<node_hostname>>__startswith__cfg |
| 53 | cluster_param: |
| 54 | infra_config_address: |
| 55 | value_template: <<node_control_ip>> |
| 56 | infra_config_deploy_address: |
| 57 | value_template: <<node_deploy_ip>> |
| 58 | cluster_domain: |
| 59 | value_template: <<node_domain>> |
| 60 | kubernetes_control01: |
| 61 | expression: <<node_hostname>>__equals__ctl01 |
| 62 | cluster_param: |
| 63 | kubernetes_control_node01_address: |
| 64 | value_template: <<node_control_ip>> |
| 65 | kubernetes_control02: |
| 66 | expression: <<node_hostname>>__equals__ctl02 |
| 67 | cluster_param: |
| 68 | kubernetes_control_node02_address: |
| 69 | value_template: <<node_control_ip>> |
| 70 | kubernetes_control03: |
| 71 | expression: <<node_hostname>>__equals__ctl03 |
| 72 | cluster_param: |
| 73 | kubernetes_control_node03_address: |
| 74 | value_template: <<node_control_ip>> |
| 75 | kubernetes_compute: |
| 76 | expression: <<node_hostname>>__startswith__cmp |
| 77 | node_class: |
| 78 | value_template: |
| 79 | - cluster.<<node_cluster>>.kubernetes.compute |