added openbsd guest support
This commit is contained in:
25
files/freebsd-user-data
Normal file
25
files/freebsd-user-data
Normal file
@ -0,0 +1,25 @@
|
||||
#cloud-config
|
||||
package_reboot_if_required: true
|
||||
package_update: true
|
||||
package_upgrade: true
|
||||
packages:
|
||||
- sudo
|
||||
- vim
|
||||
ssh_pwauth: false
|
||||
users:
|
||||
- name: __VM_USERNAME__
|
||||
sudo: "ALL=(ALL) NOPASSWD:ALL"
|
||||
groups: wheel
|
||||
hashed_passwd: "!"
|
||||
lock_passwd: true
|
||||
shell: /bin/tcsh
|
||||
ssh_authorized_keys:
|
||||
- __SSH_PUB_KEY__
|
||||
- name: root
|
||||
hashed_passwd: "!"
|
||||
lock_passwd: true
|
||||
write_files:
|
||||
- path: /usr/local/etc/sudoers
|
||||
content: |
|
||||
%wheel ALL=(ALL) NOPASSWD: ALL
|
||||
append: true
|
||||
14
files/linux-user-data
Normal file
14
files/linux-user-data
Normal file
@ -0,0 +1,14 @@
|
||||
#cloud-config
|
||||
ssh_pwauth: true
|
||||
disable_root: true
|
||||
package_reboot_if_required: true
|
||||
package_update: true
|
||||
package_upgrade: true
|
||||
users:
|
||||
- name: __VM_USERNAME__
|
||||
ssh_authorized_keys:
|
||||
- __SSH_PUB_KEY__
|
||||
sudo: ["ALL=(ALL) NOPASSWD:ALL"]
|
||||
groups: sudo
|
||||
shell: /bin/bash
|
||||
lock-passwd: true
|
||||
25
files/openbsd-user-data
Normal file
25
files/openbsd-user-data
Normal file
@ -0,0 +1,25 @@
|
||||
#cloud-config
|
||||
package_reboot_if_required: true
|
||||
package_update: true
|
||||
package_upgrade: true
|
||||
packages:
|
||||
- sudo
|
||||
- vim
|
||||
ssh_pwauth: false
|
||||
users:
|
||||
- name: __VM_USERNAME__
|
||||
sudo: "ALL=(ALL) NOPASSWD:ALL"
|
||||
groups: wheel
|
||||
hashed_passwd: "!"
|
||||
lock_passwd: true
|
||||
shell: /usr/local/bin/bash
|
||||
ssh_authorized_keys:
|
||||
- __SSH_PUB_KEY__
|
||||
- name: root
|
||||
hashed_passwd: "!"
|
||||
lock_passwd: true
|
||||
write_files:
|
||||
- path: /etc/sudoers
|
||||
content: |
|
||||
%wheel ALL=(ALL) NOPASSWD: ALL
|
||||
append: true
|
||||
@ -74,7 +74,7 @@
|
||||
{
|
||||
"id": 8,
|
||||
"name": "FreeBSD 14.3 UFS",
|
||||
"os_type": "freebsd",
|
||||
"os_type": "BSD",
|
||||
"variant": "freebsd14.2",
|
||||
"url": "https://download.freebsd.org/ftp/snapshots/VM-IMAGES/14.3-STABLE/amd64/Latest/FreeBSD-14.3-STABLE-amd64-BASIC-CLOUDINIT-ufs.qcow2.xz",
|
||||
"origin_image_name": "FreeBSD-14.3-STABLE-amd64-BASIC-CLOUDINIT-ufs.qcow2.xz",
|
||||
@ -83,11 +83,20 @@
|
||||
{
|
||||
"id": 9,
|
||||
"name": "FreeBSD 14.3 ZFS",
|
||||
"os_type": "freebsd",
|
||||
"os_type": "BSD",
|
||||
"variant": "freebsd14.2",
|
||||
"url": "https://download.freebsd.org/ftp/snapshots/VM-IMAGES/14.3-STABLE/amd64/Latest/FreeBSD-14.3-STABLE-amd64-BASIC-CLOUDINIT-zfs.qcow2.xz",
|
||||
"origin_image_name": "FreeBSD-14.3-STABLE-amd64-BASIC-CLOUDINIT-zfs.qcow2.xz",
|
||||
"md5sum": "https://download.freebsd.org/ftp/snapshots/VM-IMAGES/14.3-STABLE/amd64/Latest/CHECKSUM.SHA512"
|
||||
}
|
||||
} ,
|
||||
{
|
||||
"id": 10,
|
||||
"name": "OpenBSD 7.7 generic",
|
||||
"os_type": "BSD",
|
||||
"variant": "openbsd7.6",
|
||||
"url": "",
|
||||
"origin_image_name": "openbsd-generic.qcow2",
|
||||
"md5sum": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@ -1,12 +0,0 @@
|
||||
ssh_pwauth: true
|
||||
disable_root: true
|
||||
users:
|
||||
- name: user
|
||||
ssh_authorized_keys:
|
||||
- __SSH_KEY__
|
||||
sudo: ["ALL=(ALL) NOPASSWD:ALL"]
|
||||
groups: sudo
|
||||
shell: /bin/bash
|
||||
hashed_passwd: __USER_PASSWORD__
|
||||
lock-passwd: false
|
||||
|
||||
Reference in New Issue
Block a user