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