Template for deploying with Helm
All checks were successful
--> Linted: ANSIBLE No errors were found in the linting process
--> Linted: GITLEAKS No errors were found in the linting process
--> Linted: JSCPD No errors were found in the linting process
--> Linted: TERRAFORM_TFLINT No errors were found in the linting process
--> Linted: TERRAFORM_TERRASCAN No errors were found in the linting process
Lint Code Base / run-lint (push) Successful in 48s
All checks were successful
--> Linted: ANSIBLE No errors were found in the linting process
--> Linted: GITLEAKS No errors were found in the linting process
--> Linted: JSCPD No errors were found in the linting process
--> Linted: TERRAFORM_TFLINT No errors were found in the linting process
--> Linted: TERRAFORM_TERRASCAN No errors were found in the linting process
Lint Code Base / run-lint (push) Successful in 48s
This commit is contained in:
parent
bb7393b05e
commit
fec3446ecc
@ -207,6 +207,33 @@ resource null_resource run_benchmark {
|
||||
user = "ansible"
|
||||
private_key = data.template_file.private_key.rendered
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
resource null_resource deploy_helm {
|
||||
depends_on = [
|
||||
null_resource.run_benchmark
|
||||
]
|
||||
|
||||
provisioner "local-exec" {
|
||||
command = "scp -i ${path.module}/.local/.ssh/id_rsa -r ../helm ansible@${libvirt_domain.k8s_masters[0].network_interface[0].addresses[0]}:/home/ansible/helm"
|
||||
}
|
||||
# https://helm.sh/docs/intro/install/#from-apt-debianubuntu
|
||||
provisioner "remote-exec" {
|
||||
inline = [
|
||||
"curl https://baltocdn.com/helm/signing.asc | gpg --dearmor | sudo tee /usr/share/keyrings/helm.gpg > /dev/null",
|
||||
"sudo apt-get install apt-transport-https --yes",
|
||||
"echo \"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/helm.gpg] https://baltocdn.com/helm/stable/debian/ all main\" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list",
|
||||
"sudo apt-get update",
|
||||
"sudo apt-get install helm"
|
||||
]
|
||||
|
||||
|
||||
connection {
|
||||
host = libvirt_domain.k8s_masters[0].network_interface[0].addresses[0]
|
||||
type = "ssh"
|
||||
user = "ansible"
|
||||
private_key = data.template_file.private_key.rendered
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user