Skip to content

Commit

Permalink
refactor: replace tf with tofu in bastion
Browse files Browse the repository at this point in the history
  • Loading branch information
krtk6160 committed Sep 19, 2024
1 parent 7b3892f commit f90c9a8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
7 changes: 6 additions & 1 deletion modules/inception/gcp/bastion-startup.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key --keyring /

# Keep make and terraform the first items installed as they are needed
# for testflight to complete
apt-get update && apt-get install -y terraform make jq tree wget redis postgresql vault
apt-get update && apt-get install -y make jq tree wget redis postgresql vault unzip gnupg

curl --proto '=https' --tlsv1.2 -fsSL https://get.opentofu.org/install-opentofu.sh -o install-opentofu.sh \
&& chmod +x install-opentofu.sh \
&& ./install-opentofu.sh --install-method standalone --opentofu-version ${opentofu_version} \
&& rm -f install-opentofu.sh

cat <<EOF > /etc/profile.d/aliases.sh
alias tf="terraform"
Expand Down
20 changes: 11 additions & 9 deletions modules/inception/gcp/bastion.tf
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
locals {
tag = "${local.name_prefix}-bastion"
bria_version = "0.1.106"
bitcoin_version = "25.2"
cepler_version = "0.7.15"
lnd_version = "0.18.0-beta"
kubectl_version = "1.30.4"
k9s_version = "0.32.5"
bos_version = "18.2.0"
kratos_version = "0.11.1"
tag = "${local.name_prefix}-bastion"
bria_version = "0.1.106"
bitcoin_version = "25.2"
cepler_version = "0.7.15"
lnd_version = "0.18.0-beta"
kubectl_version = "1.30.4"
k9s_version = "0.32.5"
bos_version = "18.2.0"
kratos_version = "0.11.1"
opentofu_version = "1.8.2"
}
data "google_compute_image" "bastion" {
family = local.bastion_image_family
Expand Down Expand Up @@ -56,6 +57,7 @@ resource "google_compute_instance" "bastion" {
lnd_version : local.lnd_version
bos_version : local.bos_version
kratos_version : local.kratos_version
opentofu_version : local.opentofu_version
})

depends_on = [
Expand Down

0 comments on commit f90c9a8

Please sign in to comment.