Svimba | 6f9ffc5 | 2018-06-05 17:36:36 +0200 | [diff] [blame] | 1 | classes: |
| 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 |
Svimba | 6f9ffc5 | 2018-06-05 17:36:36 +0200 | [diff] [blame] | 5 | - system.openssh.client.lab |
| 6 | - system.salt.master.pkg |
| 7 | - system.salt.minion.ca.salt_master |
| 8 | - system.salt.master.api |
Sergey Kolekonov | 41ffdfa | 2018-10-30 19:47:23 +0000 | [diff] [blame] | 9 | - system.salt.minion.cert.k8s_server |
Svimba | 6f9ffc5 | 2018-06-05 17:36:36 +0200 | [diff] [blame] | 10 | - system.reclass.storage.salt |
| 11 | - system.reclass.storage.system.kubernetes_control_cluster |
| 12 | - cluster.k8s-ha-contrail-40.infra |
Svimba | 7fee673 | 2018-06-06 17:15:18 +0200 | [diff] [blame] | 13 | - cluster.overrides |
Svimba | 6f9ffc5 | 2018-06-05 17:36:36 +0200 | [diff] [blame] | 14 | |
| 15 | parameters: |
| 16 | _param: |
| 17 | salt_master_base_environment: prd |
| 18 | reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab" |
| 19 | reclass_data_revision: master |
| 20 | reclass_config_master: ${_param:infra_config_deploy_address} |
| 21 | single_address: ${_param:infra_config_address} |
| 22 | deploy_address: ${_param:infra_config_deploy_address} |
| 23 | linux_system_codename: xenial |
| 24 | salt_api_password_hash: "$6$WV0P1shnoDh2gI/Z$22/Bcd7ffMv0jDlFpT63cAU4PiXHz9pjXwngToKwqAsgoeK4HNR3PiKaushjxp3JsQ8hNoJmAC6TxzVqfV8WH/" |
| 25 | salt_master_host: ${_param:infra_config_deploy_address} |
| 26 | salt_master_environment_revision: master |
| 27 | salt_master_environment_repository: 'https://github.com/salt-formulas' |
| 28 | salt: |
| 29 | master: |
| 30 | reactor: |
| 31 | reclass/minion/classify: |
| 32 | - salt://reclass/reactor/node_register.sls |
| 33 | linux: |
| 34 | network: |
| 35 | interface: |
| 36 | ens4: |
| 37 | enabled: true |
| 38 | type: eth |
| 39 | proto: static |
| 40 | address: ${_param:single_address} |
| 41 | netmask: 255.255.255.0 |
| 42 | pre_up_cmds: |
| 43 | - "iptables -t nat -A POSTROUTING -o ens3 -j MASQUERADE" |
| 44 | post_down_cmds: |
| 45 | - "iptables -t nat -F POSTROUTING" |
| 46 | system: |
| 47 | kernel: |
| 48 | sysctl: |
| 49 | net.ipv4.conf.ens3.forwarding: 1 |
| 50 | net.ipv4.conf.ens3.send_redirects: 0 |
| 51 | reclass: |
| 52 | storage: |
| 53 | class_mapping: |
| 54 | common_node: |
| 55 | expression: all |
| 56 | node_param: |
| 57 | single_address: |
| 58 | value_template: <<node_control_ip>> |
| 59 | linux_system_codename: |
| 60 | value_template: <<node_os>> |
| 61 | salt_master_host: |
| 62 | value_template: <<node_master_ip>> |
| 63 | deploy_address: |
| 64 | value_template: <<node_deploy_ip>> |
| 65 | infra_config: |
| 66 | expression: <<node_hostname>>__startswith__cfg |
| 67 | cluster_param: |
| 68 | infra_config_address: |
| 69 | value_template: <<node_control_ip>> |
| 70 | infra_config_deploy_address: |
| 71 | value_template: <<node_deploy_ip>> |
| 72 | cluster_domain: |
| 73 | value_template: <<node_domain>> |
| 74 | kubernetes_control01: |
| 75 | expression: <<node_hostname>>__equals__ctl01 |
| 76 | cluster_param: |
| 77 | kubernetes_control_node01_address: |
| 78 | value_template: <<node_control_ip>> |
| 79 | kubernetes_control_node01_deploy_address: |
| 80 | value_template: <<node_deploy_ip>> |
| 81 | kubernetes_control02: |
| 82 | expression: <<node_hostname>>__equals__ctl02 |
| 83 | cluster_param: |
| 84 | kubernetes_control_node02_address: |
| 85 | value_template: <<node_control_ip>> |
| 86 | kubernetes_control_node02_deploy_address: |
| 87 | value_template: <<node_deploy_ip>> |
| 88 | kubernetes_control03: |
| 89 | expression: <<node_hostname>>__equals__ctl03 |
| 90 | cluster_param: |
| 91 | kubernetes_control_node03_address: |
| 92 | value_template: <<node_control_ip>> |
| 93 | kubernetes_control_node03_deploy_address: |
| 94 | value_template: <<node_deploy_ip>> |
| 95 | etcd_control01: |
| 96 | expression: <<node_hostname>>__equals__ctl01 |
| 97 | cluster_param: |
| 98 | etcd_control_node01_address: |
| 99 | value_template: <<node_deploy_ip>> |
| 100 | etcd_control02: |
| 101 | expression: <<node_hostname>>__equals__ctl02 |
| 102 | cluster_param: |
| 103 | etcd_control_node02_address: |
| 104 | value_template: <<node_deploy_ip>> |
| 105 | etcd_control03: |
| 106 | expression: <<node_hostname>>__equals__ctl03 |
| 107 | cluster_param: |
| 108 | etcd_control_node03_address: |
| 109 | value_template: <<node_deploy_ip>> |
| 110 | kubernetes_compute: |
| 111 | expression: <<node_hostname>>__startswith__cmp |
| 112 | node_class: |
| 113 | value_template: |
| 114 | - cluster.<<node_cluster>>.kubernetes.compute |
| 115 | node: |
| 116 | kubernetes_control_node01: |
Svimba | 7fee673 | 2018-06-06 17:15:18 +0200 | [diff] [blame] | 117 | classes: |
| 118 | - cluster.${_param:cluster_name}.opencontrail.control |
Svimba | 6f9ffc5 | 2018-06-05 17:36:36 +0200 | [diff] [blame] | 119 | params: |
| 120 | rabbitmq_cluster_role: master |
| 121 | opencontrail_database_id: 1 |
Svimba | 7fee673 | 2018-06-06 17:15:18 +0200 | [diff] [blame] | 122 | |
Svimba | 6f9ffc5 | 2018-06-05 17:36:36 +0200 | [diff] [blame] | 123 | kubernetes_control_node02: |
Svimba | 7fee673 | 2018-06-06 17:15:18 +0200 | [diff] [blame] | 124 | classes: |
| 125 | - cluster.${_param:cluster_name}.opencontrail.control |
Svimba | 6f9ffc5 | 2018-06-05 17:36:36 +0200 | [diff] [blame] | 126 | params: |
| 127 | rabbitmq_cluster_role: slave |
| 128 | opencontrail_database_id: 2 |
Svimba | 7fee673 | 2018-06-06 17:15:18 +0200 | [diff] [blame] | 129 | |
Svimba | 6f9ffc5 | 2018-06-05 17:36:36 +0200 | [diff] [blame] | 130 | kubernetes_control_node03: |
Svimba | 7fee673 | 2018-06-06 17:15:18 +0200 | [diff] [blame] | 131 | classes: |
| 132 | - cluster.${_param:cluster_name}.opencontrail.control |
Svimba | 6f9ffc5 | 2018-06-05 17:36:36 +0200 | [diff] [blame] | 133 | params: |
| 134 | rabbitmq_cluster_role: slave |
| 135 | opencontrail_database_id: 3 |