summaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
authorgjb <gjb@FreeBSD.org>2015-01-14 15:45:18 +0000
committergjb <gjb@FreeBSD.org>2015-01-14 15:45:18 +0000
commit64286bf832c873a4fd62113d3329836ae6ee2c68 (patch)
tree50860a7394876c0eef3905d1ff618c71ffa2b890 /release
parent5107643b94d616de8402a3bfdcf5c4c9fca0901e (diff)
downloadFreeBSD-src-64286bf832c873a4fd62113d3329836ae6ee2c68.zip
FreeBSD-src-64286bf832c873a4fd62113d3329836ae6ee2c68.tar.gz
Enable password-less sudo for openstack images.
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'release')
-rw-r--r--release/tools/openstack.conf4
1 files changed, 4 insertions, 0 deletions
diff --git a/release/tools/openstack.conf b/release/tools/openstack.conf
index a88e0f8..3eb7b1d 100644
--- a/release/tools/openstack.conf
+++ b/release/tools/openstack.conf
@@ -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
OpenPOWER on IntegriCloud