summaryrefslogtreecommitdiff
path: root/others
diff options
context:
space:
mode:
authorhc <hc@email.ch>2024-12-29 16:42:34 +0800
committerhc <hc@email.ch>2024-12-29 16:44:42 +0800
commit26d1a94dfd4eeb91b259bfd9d4b8f8d1cdfabd98 (patch)
tree01e11a6c260721f2a4cd1b3be60fc80ced68e992 /others
parent885b76a594fc0a75e28152b2e806c2e0f46aee3d (diff)
udpate
Diffstat (limited to 'others')
-rw-r--r--others/.vm.sh2.swpbin0 -> 16384 bytes
-rw-r--r--others/meta-data2
-rw-r--r--others/user-data16
-rwxr-xr-xothers/vm3/compute/create.sh2
4 files changed, 19 insertions, 1 deletions
diff --git a/others/.vm.sh2.swp b/others/.vm.sh2.swp
new file mode 100644
index 0000000..bfa52a2
--- /dev/null
+++ b/others/.vm.sh2.swp
Binary files 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 @@
1instance-id: iid-fedora-vm
2local-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 @@
1#cloud-config
2users:
3 - name: fedora
4 ssh-authorized-keys:
5 -
6 sudo: ['ALL=(ALL) NOPASSWD:ALL']
7 groups: wheel
8 shell: /bin/bash
9runcmd:
10 - sudo growpart /dev/sda 1
11 - sudo xfs_growfs /
12 - sudo dnf install -y vim git
13 - cd /home/fedora
14 - git clone https://git.0nom.ch/setup
15 - sudo ./setup/setup.sh
16 - 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 @@
5 5
6# default values 6# default values
7vcpu=8 7vcpu=8
8ram_gb=4 8ram_gb=8
9disk_gb=32 9disk_gb=32
10os="fedora40" 10os="fedora40"
11ostype="linux" 11ostype="linux"