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