From 26d1a94dfd4eeb91b259bfd9d4b8f8d1cdfabd98 Mon Sep 17 00:00:00 2001 From: hc Date: Sun, 29 Dec 2024 16:42:34 +0800 Subject: udpate --- others/.vm.sh2.swp | Bin 0 -> 16384 bytes others/meta-data | 2 ++ others/user-data | 16 ++++++++++++++++ others/vm3/compute/create.sh | 2 +- 4 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 others/.vm.sh2.swp create mode 100644 others/meta-data create mode 100644 others/user-data (limited to 'others') diff --git a/others/.vm.sh2.swp b/others/.vm.sh2.swp new file mode 100644 index 0000000..bfa52a2 Binary files /dev/null and b/others/.vm.sh2.swp differ diff --git a/others/meta-data b/others/meta-data new file mode 100644 index 0000000..ce225e1 --- /dev/null +++ b/others/meta-data @@ -0,0 +1,2 @@ +instance-id: iid-fedora-vm +local-hostname: fedora-cloudimg diff --git a/others/user-data b/others/user-data new file mode 100644 index 0000000..795fb19 --- /dev/null +++ b/others/user-data @@ -0,0 +1,16 @@ +#cloud-config +users: + - name: fedora + ssh-authorized-keys: + - + sudo: ['ALL=(ALL) NOPASSWD:ALL'] + groups: wheel + shell: /bin/bash +runcmd: + - sudo growpart /dev/sda 1 + - sudo xfs_growfs / + - sudo dnf install -y vim git + - cd /home/fedora + - git clone https://git.0nom.ch/setup + - sudo ./setup/setup.sh + - touch /home/fedora/runcmd_done diff --git a/others/vm3/compute/create.sh b/others/vm3/compute/create.sh index 84646d7..3e6c088 100755 --- a/others/vm3/compute/create.sh +++ b/others/vm3/compute/create.sh @@ -5,7 +5,7 @@ # default values vcpu=8 -ram_gb=4 +ram_gb=8 disk_gb=32 os="fedora40" ostype="linux" -- cgit v1.2.3-70-g09d2