diff options
| author | hc <hc@email.ch> | 2024-12-29 16:42:34 +0800 |
|---|---|---|
| committer | hc <hc@email.ch> | 2024-12-29 16:44:42 +0800 |
| commit | 26d1a94dfd4eeb91b259bfd9d4b8f8d1cdfabd98 (patch) | |
| tree | 01e11a6c260721f2a4cd1b3be60fc80ced68e992 | |
| parent | 885b76a594fc0a75e28152b2e806c2e0f46aee3d (diff) | |
udpate
| -rw-r--r-- | others/.vm.sh2.swp | bin | 0 -> 16384 bytes | |||
| -rw-r--r-- | others/meta-data | 2 | ||||
| -rw-r--r-- | others/user-data | 16 | ||||
| -rwxr-xr-x | others/vm3/compute/create.sh | 2 |
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 @@ | |||
| 1 | instance-id: iid-fedora-vm | ||
| 2 | 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 @@ | |||
| 1 | #cloud-config | ||
| 2 | users: | ||
| 3 | - name: fedora | ||
| 4 | ssh-authorized-keys: | ||
| 5 | - | ||
| 6 | sudo: ['ALL=(ALL) NOPASSWD:ALL'] | ||
| 7 | groups: wheel | ||
| 8 | shell: /bin/bash | ||
| 9 | runcmd: | ||
| 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 |
| 7 | vcpu=8 | 7 | vcpu=8 |
| 8 | ram_gb=4 | 8 | ram_gb=8 |
| 9 | disk_gb=32 | 9 | disk_gb=32 |
| 10 | os="fedora40" | 10 | os="fedora40" |
| 11 | ostype="linux" | 11 | ostype="linux" |
