Files
kvm-cloudimage/files/freebsd-user-data

36 lines
741 B
Plaintext

#cloud-config
package_reboot_if_required: true
package_update: true
package_upgrade: true
packages:
- sudo
- vim
- git
- qemu-guest-agent
ssh_pwauth: false
config:
- type: physical
name: vtnet0
subnets:
- type: dhcp
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
runcmd:
- sysrc qemu_guest_agent_enable=YES
- sysrc ifconfig_vtnet0="DHCP ifconfig_vnet0="DHCP -tso4 -tso6 -lro -vlanhwtso"
- sysrc ifconfig_DEFAULT=""