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.reclass.storage.salt |
| 8 | - system.salt.minion.cert.k8s_server |
| 9 | - system.reclass.storage.system.kubernetes_control_cluster |
| 10 | - system.reclass.storage.system.opencontrail_control_cluster |
| 11 | - cluster.k8s_ha_contrail |
| 12 | parameters: |
| 13 | _param: |
| 14 | salt_master_base_environment: prd |
| 15 | reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab" |
| 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: ${_param:infra_config_deploy_address} |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 22 | salt: |
| 23 | master: |
| 24 | reactor: |
| 25 | reclass/minion/classify: |
| 26 | - salt://reclass/reactor/node_register.sls |
Marek Celoud | 9749b27 | 2017-07-10 17:47:42 +0200 | [diff] [blame] | 27 | linux: |
| 28 | network: |
| 29 | interface: |
| 30 | ens4: |
| 31 | enabled: true |
| 32 | type: eth |
| 33 | proto: static |
| 34 | address: ${_param:single_address} |
| 35 | netmask: 255.255.255.0 |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 36 | reclass: |
| 37 | storage: |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 38 | class_mapping: |
| 39 | common_node: |
| 40 | expression: all |
| 41 | node_param: |
| 42 | single_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 43 | value_template: <<node_control_ip>> |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 44 | linux_system_codename: |
| 45 | value_template: <<node_os>> |
| 46 | salt_master_host: |
| 47 | value_template: <<node_master_ip>> |
| 48 | infra_config: |
| 49 | expression: <<node_hostname>>__startswith__cfg |
| 50 | cluster_param: |
| 51 | infra_config_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 52 | value_template: <<node_control_ip>> |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 53 | infra_config_deploy_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 54 | value_template: <<node_deploy_ip>> |
Adam Tengler | 4f23d96 | 2017-07-04 19:54:59 +0000 | [diff] [blame] | 55 | cluster_domain: |
| 56 | value_template: <<node_domain>> |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 57 | kubernetes_control01: |
| 58 | expression: <<node_hostname>>__equals__ctl01 |
| 59 | cluster_param: |
| 60 | kubernetes_control_node01_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 61 | value_template: <<node_control_ip>> |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 62 | kubernetes_control02: |
| 63 | expression: <<node_hostname>>__equals__ctl02 |
| 64 | cluster_param: |
| 65 | kubernetes_control_node02_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 66 | value_template: <<node_control_ip>> |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 67 | kubernetes_control03: |
| 68 | expression: <<node_hostname>>__equals__ctl03 |
| 69 | cluster_param: |
| 70 | kubernetes_control_node03_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 71 | value_template: <<node_control_ip>> |
Tomáš Kukrál | 81fd9a3 | 2017-07-26 16:24:52 +0200 | [diff] [blame^] | 72 | etcd_control01: |
| 73 | expression: <<node_hostname>>__equals__ctl01 |
| 74 | cluster_param: |
| 75 | etcd_control_node01_address: |
| 76 | value_template: <<node_deploy_ip>> |
| 77 | etcd_control02: |
| 78 | expression: <<node_hostname>>__equals__ctl02 |
| 79 | cluster_param: |
| 80 | etcd_control_node02_address: |
| 81 | value_template: <<node_deploy_ip>> |
| 82 | etcd_control03: |
| 83 | expression: <<node_hostname>>__equals__ctl03 |
| 84 | cluster_param: |
| 85 | etcd_control_node03_address: |
| 86 | value_template: <<node_deploy_ip>> |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 87 | opencontrail_control01: |
| 88 | expression: <<node_hostname>>__equals__ntw01 |
| 89 | cluster_param: |
| 90 | opencontrail_control_node01_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 91 | value_template: <<node_control_ip>> |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 92 | opencontrail_control02: |
| 93 | expression: <<node_hostname>>__equals__ntw02 |
| 94 | cluster_param: |
| 95 | opencontrail_control_node02_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 96 | value_template: <<node_control_ip>> |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 97 | opencontrail_control03: |
| 98 | expression: <<node_hostname>>__equals__ntw03 |
| 99 | cluster_param: |
| 100 | opencontrail_control_node03_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 101 | value_template: <<node_control_ip>> |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 102 | kubernetes_compute: |
| 103 | expression: <<node_hostname>>__startswith__cmp |
| 104 | node_class: |
| 105 | value_template: |
| 106 | - cluster.<<node_cluster>>.kubernetes.compute |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 107 | node: |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 108 | opencontrail_control_node01: |
| 109 | params: |
| 110 | rabbitmq_cluster_role: master |
| 111 | opencontrail_control_node02: |
| 112 | params: |
| 113 | rabbitmq_cluster_role: slave |
| 114 | opencontrail_control_node03: |
| 115 | params: |
| 116 | rabbitmq_cluster_role: slave |