mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-23 12:31:13 +01:00
9af30cb24c
Sponsored by: The FreeBSD Foundation
24 lines
546 B
Bash
24 lines
546 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# Set to a list of packages to install.
|
|
export VM_EXTRA_PACKAGES="net/cloud-init"
|
|
|
|
# Set to a list of third-party software to enable in rc.conf(5).
|
|
export VM_RC_LIST="cloudinit"
|
|
|
|
vm_extra_pre_umount() {
|
|
echo 'sshd_enable="YES"' >> ${DESTDIR}/etc/rc.conf
|
|
echo 'ifconfig_DEFAULT="SYNCDHCP"' >> ${DESTDIR}/etc/rc.conf
|
|
|
|
# Openstack wants sudo(8) usable by default without a password.
|
|
echo 'ALL ALL=(ALL) NOPASSWD:ALL' >> \
|
|
${DESTDIR}/usr/local/etc/sudoers.d/cloud-init
|
|
|
|
rm -f ${DESTDIR}/etc/resolv.conf
|
|
|
|
return 0
|
|
}
|