Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 1 | classes: |
Victor Ryzhenkin | 3e602a3 | 2018-04-04 02:43:53 +0400 | [diff] [blame] | 2 | - system.linux.system.single |
azvyagintsev | 2859f0e | 2018-06-11 17:45:47 +0300 | [diff] [blame] | 3 | - system.linux.system.repo.mcp.apt_mirantis.ubuntu |
Martin Polreich | a0addcc | 2018-06-25 11:32:52 +0200 | [diff] [blame] | 4 | - system.linux.system.repo.mcp.apt_mirantis.saltstack |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 5 | - system.openssh.client.lab |
| 6 | - system.salt.master.pkg |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 7 | - system.salt.master.api |
| 8 | - system.reclass.storage.salt |
Victor Ryzhenkin | 3e602a3 | 2018-04-04 02:43:53 +0400 | [diff] [blame] | 9 | - system.salt.minion.ca.salt_master |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 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 |
Victor Ryzhenkin | 3e602a3 | 2018-04-04 02:43:53 +0400 | [diff] [blame] | 38 | pre_up_cmds: |
| 39 | - "iptables -t nat -A POSTROUTING -o ens3 -j MASQUERADE" |
| 40 | post_down_cmds: |
| 41 | - "iptables -t nat -F POSTROUTING" |
| 42 | system: |
| 43 | kernel: |
| 44 | sysctl: |
| 45 | net.ipv4.conf.ens3.forwarding: 1 |
| 46 | net.ipv4.conf.ens3.send_redirects: 0 |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 47 | reclass: |
| 48 | storage: |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 49 | class_mapping: |
| 50 | common_node: |
| 51 | expression: all |
| 52 | node_param: |
| 53 | single_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 54 | value_template: <<node_control_ip>> |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 55 | linux_system_codename: |
| 56 | value_template: <<node_os>> |
| 57 | salt_master_host: |
| 58 | value_template: <<node_master_ip>> |
vrovachev | 61bffdc | 2017-08-14 20:23:27 +0400 | [diff] [blame] | 59 | deploy_address: |
Tomáš Kukrál | 075ec9a | 2017-07-27 11:35:51 +0200 | [diff] [blame] | 60 | value_template: <<node_deploy_ip>> |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 61 | infra_config: |
| 62 | expression: <<node_hostname>>__startswith__cfg |
| 63 | cluster_param: |
| 64 | infra_config_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 65 | value_template: <<node_control_ip>> |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 66 | infra_config_deploy_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 67 | value_template: <<node_deploy_ip>> |
Adam Tengler | 4f23d96 | 2017-07-04 19:54:59 +0000 | [diff] [blame] | 68 | cluster_domain: |
| 69 | value_template: <<node_domain>> |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 70 | kubernetes_control01: |
| 71 | expression: <<node_hostname>>__equals__ctl01 |
| 72 | cluster_param: |
| 73 | kubernetes_control_node01_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 74 | value_template: <<node_control_ip>> |
vrovachev | 61bffdc | 2017-08-14 20:23:27 +0400 | [diff] [blame] | 75 | kubernetes_control_node01_deploy_address: |
| 76 | value_template: <<node_deploy_ip>> |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 77 | kubernetes_control02: |
| 78 | expression: <<node_hostname>>__equals__ctl02 |
| 79 | cluster_param: |
| 80 | kubernetes_control_node02_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 81 | value_template: <<node_control_ip>> |
vrovachev | 61bffdc | 2017-08-14 20:23:27 +0400 | [diff] [blame] | 82 | kubernetes_control_node02_deploy_address: |
| 83 | value_template: <<node_deploy_ip>> |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 84 | kubernetes_control03: |
| 85 | expression: <<node_hostname>>__equals__ctl03 |
| 86 | cluster_param: |
| 87 | kubernetes_control_node03_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 88 | value_template: <<node_control_ip>> |
vrovachev | 61bffdc | 2017-08-14 20:23:27 +0400 | [diff] [blame] | 89 | kubernetes_control_node03_deploy_address: |
| 90 | value_template: <<node_deploy_ip>> |
Tomáš Kukrál | 81fd9a3 | 2017-07-26 16:24:52 +0200 | [diff] [blame] | 91 | etcd_control01: |
| 92 | expression: <<node_hostname>>__equals__ctl01 |
| 93 | cluster_param: |
| 94 | etcd_control_node01_address: |
| 95 | value_template: <<node_deploy_ip>> |
| 96 | etcd_control02: |
| 97 | expression: <<node_hostname>>__equals__ctl02 |
| 98 | cluster_param: |
| 99 | etcd_control_node02_address: |
| 100 | value_template: <<node_deploy_ip>> |
| 101 | etcd_control03: |
| 102 | expression: <<node_hostname>>__equals__ctl03 |
| 103 | cluster_param: |
| 104 | etcd_control_node03_address: |
| 105 | value_template: <<node_deploy_ip>> |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 106 | opencontrail_control01: |
| 107 | expression: <<node_hostname>>__equals__ntw01 |
| 108 | cluster_param: |
| 109 | opencontrail_control_node01_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 | opencontrail_control02: |
| 112 | expression: <<node_hostname>>__equals__ntw02 |
| 113 | cluster_param: |
| 114 | opencontrail_control_node02_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 115 | value_template: <<node_control_ip>> |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 116 | opencontrail_control03: |
| 117 | expression: <<node_hostname>>__equals__ntw03 |
| 118 | cluster_param: |
| 119 | opencontrail_control_node03_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 120 | value_template: <<node_control_ip>> |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 121 | kubernetes_compute: |
| 122 | expression: <<node_hostname>>__startswith__cmp |
| 123 | node_class: |
| 124 | value_template: |
| 125 | - cluster.<<node_cluster>>.kubernetes.compute |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 126 | node: |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 127 | opencontrail_control_node01: |
| 128 | params: |
| 129 | rabbitmq_cluster_role: master |
| 130 | opencontrail_control_node02: |
| 131 | params: |
| 132 | rabbitmq_cluster_role: slave |
| 133 | opencontrail_control_node03: |
| 134 | params: |
| 135 | rabbitmq_cluster_role: slave |