-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathcloud-init
More file actions
25 lines (25 loc) · 1.17 KB
/
cloud-init
File metadata and controls
25 lines (25 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#cloud-config
fqdn: nkp-quickstart
ssh_pwauth: true
users:
- name: nutanix
primary_group: nutanix
groups: nutanix, docker, wheel
sudo: ['ALL=(ALL) NOPASSWD:ALL']
lock_passwd: false
plain_text_passwd: nutanix/4u
bootcmd:
- mkdir -p /etc/docker
runcmd:
- mv /etc/yum.repos.d/nutanix_rocky9.repo /etc/yum.repos.d/nutanix_rocky9.repo.disabled
- dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
- dnf -y install docker-ce docker-ce-cli containerd.io docker-compose-plugin git tmux
- systemctl --now enable docker
- usermod -aG docker nutanix
- 'curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl'
- chmod +x ./kubectl
- mv ./kubectl /usr/local/bin/kubectl
- 'curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash'
- eject
- 'wall "If you are seeing this message, please reconnect your SSH session. Otherwise, the NKP CLI installation process may fail."'
final_message: "The machine is ready after $UPTIME seconds. Go ahead and install the NKP CLI using: /home/nutanix/nkp-quickstart/scripts/get-nkp-cli.sh"