I hereby claim:
- I am samgabrail on github.
- I am samgabrail (https://keybase.io/samgabrail) on keybase.
- I have a public key ASASKIUogTVESH4BYcR9-6neJSNaRFs2qYpAOxpcnnreUAo
To claim this, I am signing this object:
NAME READY STATUS RESTARTS AGE | |
pod/coredns-7448499f4d-2zcls 1/1 Running 0 14m | |
pod/helm-install-traefik-crd-99sbn 0/1 Completed 0 14m | |
pod/helm-install-traefik-zz45n 0/1 Completed 1 14m | |
pod/local-path-provisioner-5ff76fc89d-2rkzb 1/1 Running 0 14m | |
pod/metrics-server-86cbb8457f-zsfzv 1/1 Running 0 14m | |
pod/svclb-traefik-4wxzl 2/2 Running 0 12m | |
pod/svclb-traefik-l5cxt 2/2 Running 0 11m | |
pod/svclb-traefik-ld5ts 2/2 Running 0 13m | |
pod/svclb-traefik-svsd9 2/2 Running 0 11m |
#!/usr/bin/bash | |
arrMASTER_NAMES=($1) | |
arrWORKER_NAMES=($2) | |
arrMASTER_IPS=($3) | |
arrWORKER_IPS=($4) | |
echo master_nodes = { > ips.auto.tfvars | |
for (( i=0; i<${#arrMASTER_NAMES[@]}; i++ )) | |
do |
terraform-build-k3s: | |
stage: build | |
script: | |
- export USER=$(whoami) | |
- echo USER=${USER} > build.env | |
- mkdir -p /home/${USER}/.terraform.d | |
- |- | |
cat > /home/${USER}/.terraform.d/credentials.tfrc.json <<-EOF | |
{ | |
"credentials": { |
locals { | |
templatevars = { | |
name = var.name, | |
ipv4_address = var.ipv4_address, | |
ipv4_gateway = var.ipv4_gateway, | |
dns_server_1 = var.dns_server_list[0], | |
dns_server_2 = var.dns_server_list[1] | |
} | |
} |
#!/usr/bin/bash | |
echo '> Cleaning apt-get ...' | |
apt-get clean | |
# Cleans the machine-id. | |
echo '> Cleaning the machine-id ...' | |
rm /etc/machine-id | |
touch /etc/machine-id | |
# Start iscsi and ntp | |
echo '> Start iscsi and ntp ...' |
build { | |
sources = [ | |
"source.vsphere-iso.linux-ubuntu-server"] | |
provisioner "shell" { | |
execute_command = "echo '${var.ssh_password}' | {{.Vars}} sudo -S -E bash '{{.Path}}'" | |
environment_vars = [ | |
"BUILD_USERNAME=${var.ssh_username}", | |
] | |
scripts = var.shell_scripts | |
expect_disconnect = true |
source "vsphere-iso" "linux-ubuntu-server" { | |
...truncated | |
http_directory = var.http_directory | |
boot_order = "disk,cdrom" | |
boot_wait = var.vm_boot_wait | |
cd_files = [ | |
"./${var.http_directory}/meta-data", | |
"./${var.http_directory}/user-data"] | |
cd_label = "cidata" | |
...truncated |
#cloud-config | |
autoinstall: | |
version: 1 | |
early-commands: | |
# workaround to stop ssh for packer as it thinks it timed out | |
- sudo systemctl stop ssh | |
locale: en_US | |
keyboard: | |
layout: en | |
variant: us |
I hereby claim:
To claim this, I am signing this object: