mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-23 11:41:07 +01:00
Enable password-less sudo for openstack images.
Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
ab7c3d12db
commit
9af30cb24c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/projects/release-vmimage/; revision=277184
@ -13,6 +13,10 @@ vm_extra_pre_umount() {
|
|||||||
echo 'sshd_enable="YES"' >> ${DESTDIR}/etc/rc.conf
|
echo 'sshd_enable="YES"' >> ${DESTDIR}/etc/rc.conf
|
||||||
echo 'ifconfig_DEFAULT="SYNCDHCP"' >> ${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
|
rm -f ${DESTDIR}/etc/resolv.conf
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
Reference in New Issue
Block a user