6eeb4883af
* Fixes various issues in vSphere Terraform code Provided to address various shortcomings and to fix the following issue in upstream Kubespray: https://github.com/kubernetes-sigs/kubespray/issues/8176 * Resolves Terraform formatting issues * Sets default prefix to human-readable name * Documents new default prefix in README
35 lines
778 B
Cheetah
35 lines
778 B
Cheetah
#cloud-config
|
|
|
|
ssh_authorized_keys:
|
|
%{ for ssh_public_key in ssh_public_keys ~}
|
|
- ${ssh_public_key}
|
|
%{ endfor ~}
|
|
|
|
write_files:
|
|
- path: /etc/netplan/20-internal-network.yaml
|
|
content: |
|
|
network:
|
|
version: 2
|
|
ethernets:
|
|
"lo:0":
|
|
match:
|
|
name: lo
|
|
dhcp4: false
|
|
addresses:
|
|
- 172.17.0.100/32
|
|
- path: /etc/netplan/10-user-network.yaml
|
|
content: |
|
|
network:
|
|
version: 2
|
|
ethernets:
|
|
ens192:
|
|
dhcp4: false #true to use dhcp
|
|
addresses:
|
|
- ${ip}/${netmask}
|
|
gateway4: ${gw} # Set gw here
|
|
nameservers:
|
|
addresses:
|
|
- ${dns} # Set DNS ip address here
|
|
|
|
runcmd:
|
|
- netplan apply
|