Skip to content

Commit 15df74b

Browse files
authored
Merge pull request #707 from PureStorage-OpenConnect/bastion
update PS1 for bastions
2 parents 649f771 + c56495d commit 15df74b

File tree

5 files changed

+20
-10
lines changed

5 files changed

+20
-10
lines changed

infra/aks-master

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
cat <<EOF >>/etc/bashrc
2+
PS1='[\u@bastion-'$cluster' \W]\$ '
3+
EOF
4+
15
while ! rpm --import https://packages.microsoft.com/keys/microsoft.asc; do
26
sleep 2
37
done

infra/eks-master

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
cat <<EOF >>/etc/bashrc
2+
PS1='[\u@bastion-'$cluster' \W]\$ '
3+
EOF
4+
15
curl -sL -o /usr/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/v1.23.6/bin/linux/amd64/kubectl
26
chmod 755 /usr/bin/kubectl
37

infra/gke-master

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
1+
cat <<EOF >>/etc/bashrc
2+
PS1='[\u@bastion-'$cluster' \W]\$ '
3+
EOF
4+
15
GKE_CLUSTER_NAME=px-deploy-$name-$cluster
26

37
dnf install -y docker google-cloud-cli-gke-gcloud-auth-plugin
48
systemctl enable --now docker
59

6-
#curl -L https://github.com/containerd/containerd/releases/download/v1.6.15/containerd-1.6.15-linux-amd64.tar.gz | tar Cxzvf /usr/local -
7-
#curl -o /etc/systemd/system/containerd.service https://raw.githubusercontent.com/containerd/containerd/main/containerd.service
8-
#mkdir /etc/containerd
9-
#containerd config default | sed 's/SystemdCgroup = false/SystemdCgroup = true/' >/etc/containerd/config.toml
10-
#curl -Lo /usr/sbin/runc https://github.com/opencontainers/runc/releases/download/v1.1.4/runc.amd64
11-
#chmod 755 /usr/sbin/runc
12-
#systemctl daemon-reload
13-
#systemctl enable --now containerd
14-
#systemctl enable --now podman
15-
1610
curl -sL -o /usr/bin/kubectl "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
1711
chmod 755 /usr/bin/kubectl
1812

infra/ocp4-master

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
cat <<EOF >>/etc/bashrc
2+
PS1='[\u@bastion-'$cluster' \W]\$ '
3+
EOF
4+
15
dnf install -y docker wget
26
systemctl enable --now docker
37

infra/rancher-master

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
cat <<EOF >>/etc/bashrc
2+
PS1='[\u@bastion-'$cluster' \W]\$ '
3+
EOF
4+
15
repo=$(echo $rancher_k8s_version | cut -f 1,2 -d .)
26
cat <<EOF >/etc/yum.repos.d/kubernetes.repo
37
[kubernetes]

0 commit comments

Comments
 (0)