This commit is contained in:
2022-10-09 19:59:09 +02:00
parent 6ee851f4b1
commit 8a39ecac5c
3 changed files with 16 additions and 2 deletions

View File

@ -35,6 +35,9 @@ cat >/etc/motd <<'EOF'
|___/
EOF
h1 "Install NFS libs"
apt-get install -y nfs-common
h1 "Install rke2 agent"
h2 "Version: ${rke2_version}"
h2 "Server: ${rke2_server_url}"

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -x
set -euo pipefail
#
# Helper functions
@ -65,6 +65,16 @@ cluster-dns: 10.13.0.10
cluster-domain: cluster.local
EOF
h1 "Install NFS"
apt-get install -y nfs-common
mkdir /data
chmod -cR 777 /
cat << EOF >> /etc/exports
/data ${ip_address}(rw,no_subtree_check,no_root_squash)
EOF
systemctl enable --now nfs-server
exportfs -ar
h1 "Install rke2 server"
h2 "Version: ${rke2_version}"
# install rke2 server.