svn commit: r277184 - projects/release-vmimage/release/tools
Glen Barber
gjb at FreeBSD.org
Wed Jan 14 15:45:19 UTC 2015
Author: gjb
Date: Wed Jan 14 15:45:18 2015
New Revision: 277184
URL: https://svnweb.freebsd.org/changeset/base/277184
Log:
Enable password-less sudo for openstack images.
Sponsored by: The FreeBSD Foundation
Modified:
projects/release-vmimage/release/tools/openstack.conf
Modified: projects/release-vmimage/release/tools/openstack.conf
==============================================================================
--- projects/release-vmimage/release/tools/openstack.conf Wed Jan 14 15:23:58 2015 (r277183)
+++ projects/release-vmimage/release/tools/openstack.conf Wed Jan 14 15:45:18 2015 (r277184)
@@ -13,6 +13,10 @@ 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
More information about the svn-src-projects
mailing list