Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [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.mysql.client |
| 9 | - system.mysql.client.database.grafana |
| 10 | - system.reclass.storage.salt |
| 11 | - system.reclass.storage.system.kubernetes_control_cluster |
| 12 | - cluster.sl_k8s_calico |
| 13 | parameters: |
| 14 | _param: |
| 15 | salt_master_base_environment: prd |
| 16 | reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab.git" |
| 17 | reclass_data_revision: master |
| 18 | reclass_config_master: ${_param:infra_config_deploy_address} |
| 19 | single_address: ${_param:infra_config_address} |
| 20 | linux_system_codename: xenial |
| 21 | salt_api_password_hash: "$6$WV0P1shnoDh2gI/Z$22/Bcd7ffMv0jDlFpT63cAU4PiXHz9pjXwngToKwqAsgoeK4HNR3PiKaushjxp3JsQ8hNoJmAC6TxzVqfV8WH/" |
| 22 | salt_master_host: 127.0.0.1 |
| 23 | salt: |
| 24 | master: |
| 25 | reactor: |
| 26 | reclass/minion/classify: |
| 27 | - salt://reclass/reactor/node_register.sls |
| 28 | reclass: |
| 29 | storage: |
| 30 | class_mapping: |
| 31 | common_node: |
| 32 | expression: all |
| 33 | node_param: |
| 34 | single_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 35 | value_template: <<node_control_ip>> |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 36 | linux_system_codename: |
| 37 | value_template: <<node_os>> |
| 38 | salt_master_host: |
| 39 | value_template: <<node_master_ip>> |
| 40 | infra_config: |
| 41 | expression: <<node_hostname>>__startswith__cfg |
| 42 | cluster_param: |
| 43 | infra_config_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 44 | value_template: <<node_control_ip>> |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 45 | infra_config_deploy_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 46 | value_template: <<node_deploy_ip>> |
Adam Tengler | 4f23d96 | 2017-07-04 19:54:59 +0000 | [diff] [blame] | 47 | cluster_domain: |
| 48 | value_template: <<node_domain>> |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 49 | infra_proxy: |
| 50 | expression: <<node_hostname>>__startswith__prx |
| 51 | node_class: |
| 52 | value_template: |
| 53 | - cluster.<<node_cluster>>.stacklight.proxy |
| 54 | kubernetes_control01: |
| 55 | expression: <<node_hostname>>__equals__ctl01 |
| 56 | cluster_param: |
| 57 | kubernetes_control_node01_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 58 | value_template: <<node_control_ip>> |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 59 | kubernetes_control02: |
| 60 | expression: <<node_hostname>>__equals__ctl02 |
| 61 | cluster_param: |
| 62 | kubernetes_control_node02_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_control03: |
| 65 | expression: <<node_hostname>>__equals__ctl03 |
| 66 | cluster_param: |
| 67 | kubernetes_control_node03_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_compute: |
| 70 | expression: <<node_hostname>>__startswith__cmp |
| 71 | node_class: |
| 72 | value_template: |
| 73 | - cluster.<<node_cluster>>.kubernetes.compute |
| 74 | stacklight_monitor01: |
| 75 | expression: <<node_hostname>>__equals__mon01 |
| 76 | cluster_param: |
| 77 | stacklight_node01_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 78 | value_template: <<node_control_ip>> |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 79 | stacklight_monitor02: |
| 80 | expression: <<node_hostname>>__equals__mon02 |
| 81 | cluster_param: |
| 82 | stacklight_node02_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 83 | value_template: <<node_control_ip>> |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 84 | stacklight_monitor03: |
| 85 | expression: <<node_hostname>>__equals__mon03 |
| 86 | cluster_param: |
| 87 | stacklight_node03_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 88 | value_template: <<node_control_ip>> |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 89 | node: |
| 90 | prx_node: |
| 91 | name: ${_param:kubernetes_proxy_node01_hostname} |
| 92 | domain: ${_param:cluster_domain} |
| 93 | classes: |
| 94 | - cluster.${_param:cluster_name}.stacklight.proxy |
| 95 | params: |
| 96 | salt_master_host: ${_param:infra_config_deploy_address} |
| 97 | linux_system_codename: xenial |
| 98 | single_address: ${_param:kubernetes_proxy_node01_address} |