Simon Pasquier | 3f9d3fc | 2017-04-26 10:47:10 +0200 | [diff] [blame] | 1 | |
| 2 | classes: |
| 3 | - system.linux.system.single |
| 4 | - system.openssh.server.team.lab |
| 5 | - system.openssh.server.team.tcpcloud |
| 6 | - system.openssh.server.team.mcp_qa |
Simon Pasquier | 3f9d3fc | 2017-04-26 10:47:10 +0200 | [diff] [blame] | 7 | - cluster.virtual-mcp11-k8s-calico.kubernetes |
Tomáš Kukrál | 5f4e574 | 2017-04-27 15:43:58 +0200 | [diff] [blame] | 8 | - cluster.overwrite |
Simon Pasquier | 3f9d3fc | 2017-04-26 10:47:10 +0200 | [diff] [blame] | 9 | parameters: |
| 10 | _param: |
| 11 | # infra service addresses |
| 12 | infra_config_hostname: cfg01 |
Tomáš Kukrál | f9efedf | 2017-04-28 12:57:37 +0200 | [diff] [blame^] | 13 | infra_config_address: 172.16.10.100 |
Simon Pasquier | 3f9d3fc | 2017-04-26 10:47:10 +0200 | [diff] [blame] | 14 | infra_config_deploy_address: 192.168.10.100 |
| 15 | |
| 16 | cluster_domain: virtual-mcp11-k8s-calico.local |
| 17 | cluster_name: virtual-mcp11-k8s-calico |
| 18 | #cluster_public_host: "" |
| 19 | linux: |
| 20 | network: |
| 21 | host: |
| 22 | cfg01: |
| 23 | address: ${_param:infra_config_address} |
| 24 | names: |
| 25 | - ${_param:infra_config_hostname} |
| 26 | - ${_param:infra_config_hostname}.${_param:cluster_domain} |
Tomáš Kukrál | 8c25ac9 | 2017-04-27 22:46:12 +0200 | [diff] [blame] | 27 | cfg: |
| 28 | address: ${_param:infra_config_address} |
| 29 | names: |
| 30 | - cfg |
| 31 | - cfg.${_param:cluster_domain} |
Simon Pasquier | 3f9d3fc | 2017-04-26 10:47:10 +0200 | [diff] [blame] | 32 | interface: |
| 33 | ens4: |
| 34 | enabled: true |
| 35 | type: eth |
| 36 | proto: static |
| 37 | address: ${_param:single_address} |
| 38 | netmask: 255.255.255.0 |
Tomáš Kukrál | f9efedf | 2017-04-28 12:57:37 +0200 | [diff] [blame^] | 39 | route: |
| 40 | kubernetes_services: |
| 41 | address: 10.254.0.0 |
| 42 | netmask: 255.255.0.0 |
| 43 | gateway: ${_param:single_address} |
Simon Pasquier | 3f9d3fc | 2017-04-26 10:47:10 +0200 | [diff] [blame] | 44 | system: |
| 45 | name: ${_param:infra_config_hostname} |
| 46 | domain: ${_param:cluster_domain} |
Tomáš Kukrál | f9efedf | 2017-04-28 12:57:37 +0200 | [diff] [blame^] | 47 | rc: |
| 48 | local: | |
| 49 | #!/bin/sh -e |
| 50 | # |
| 51 | # rc.local |
| 52 | # |
| 53 | ######### This file is managed by Salt! ########## |
| 54 | # This script is executed at the end of each multiuser runlevel. |
| 55 | # Make sure that the script will "exit 0" on success or any other |
| 56 | # value on error. |
| 57 | # |
| 58 | ip r a 10.254.0.0/16 dev ens4 |
| 59 | exit 0 |