2014-10-29 17:04:09 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
# Set to a list of packages to install.
|
2014-11-21 02:30:37 +00:00
|
|
|
export VM_EXTRA_PACKAGES="net/cloud-init"
|
2014-10-29 17:04:09 +00:00
|
|
|
|
|
|
|
# Set to a list of third-party software to enable in rc.conf(5).
|
2014-11-01 20:41:47 +00:00
|
|
|
export VM_RC_LIST="cloudinit"
|
2014-11-05 13:22:19 +00:00
|
|
|
|
|
|
|
vm_extra_pre_umount() {
|
|
|
|
echo 'sshd_enable="YES"' >> ${DESTDIR}/etc/rc.conf
|
|
|
|
echo 'ifconfig_DEFAULT="SYNCDHCP"' >> ${DESTDIR}/etc/rc.conf
|
|
|
|
|
2015-01-14 15:45:18 +00:00
|
|
|
# Openstack wants sudo(8) usable by default without a password.
|
|
|
|
echo 'ALL ALL=(ALL) NOPASSWD:ALL' >> \
|
|
|
|
${DESTDIR}/usr/local/etc/sudoers.d/cloud-init
|
|
|
|
|
2014-11-21 02:30:37 +00:00
|
|
|
rm -f ${DESTDIR}/etc/resolv.conf
|
|
|
|
|
2014-11-05 13:22:19 +00:00
|
|
|
return 0
|
|
|
|
}
|