Skip to content

Commit

Permalink
Fix-bastion-errors (#79)
Browse files Browse the repository at this point in the history
* fix: bos completion on the bastion
* fix: install gke-gcloud-auth-plugin with apt
  • Loading branch information
openoms authored Aug 15, 2022
1 parent 8172049 commit cef7fe7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions modules/inception/gcp/bastion-startup.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ sed -i'' 's/pam_mkhomedir.so$/pam_mkhomedir.so umask=0077/' /etc/pam.d/sshd # Ma
curl -fsSL https://apt.releases.hashicorp.com/gpg | apt-key add -
apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"

curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
apt-add-repository "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main"
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -

# Keep make and terraform the first items installed as they are needed
# for testflight to complete
Expand All @@ -21,7 +21,7 @@ alias kauth="gcloud container clusters get-credentials ${cluster_name} --zone ${
export GALOY_ENVIRONMENT=${project}
export KUBE_CONFIG_PATH=~/.kube/config
bos completion bash
source <(bos completion bash)
EOF

%{ if bastion_revoke_on_exit }
Expand Down Expand Up @@ -73,3 +73,5 @@ curl -sL https://deb.nodesource.com/setup_14.x | bash - \
&& npm config set prefix '/usr' \
&& npm i -g balanceofsatoshis@${bos_version} \
&& ln -s ../lib/node_modules/balanceofsatoshis/bos /usr/bin/

apt-get install -y google-cloud-sdk-gke-gcloud-auth-plugin

0 comments on commit cef7fe7

Please sign in to comment.