FreeBSD Bugzilla – Attachment 177922 Details for
Bug 215258
Update openstack.conf options
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
add missing parameters when creating a FreeBSD image for OpenStack
update_openstack.conf.diff (text/plain), 1.94 KB, created by
Diego Casati
on 2016-12-13 04:31:13 UTC
(
hide
)
Description:
add missing parameters when creating a FreeBSD image for OpenStack
Filename:
MIME Type:
Creator:
Diego Casati
Created:
2016-12-13 04:31:13 UTC
Size:
1.94 KB
patch
obsolete
>Index: release/tools/openstack.conf >=================================================================== >--- release/tools/openstack.conf (revision 310000) >+++ release/tools/openstack.conf (working copy) >@@ -11,10 +11,27 @@ > # Set to a list of third-party software to enable in rc.conf(5). > export VM_RC_LIST="cloudinit" > >+export NOSWAP=YES >+ > vm_extra_pre_umount() { >+ #Enable sshd by default > echo 'sshd_enable="YES"' >> ${DESTDIR}/etc/rc.conf >+ >+ # Disable DNS lookups by default to make SSH connect quickly >+ echo 'UseDNS no' >> ${DESTDIR}/etc/ssh/sshd_config >+ >+ # Allow root to ssh using keys >+ echo 'PermitRootLogin without-password' >> ${DESTDIR}/etc/ssh/sshd_config >+ >+ # Disable sendmail >+ echo 'sendmail_enable="NO"' >> ${DESTDIR}/etc/rc.conf >+ echo 'sendmail_submit_enable="NO"' >> ${DESTDIR}/etc/rc.conf >+ echo 'sendmail_outbound_enable="NO"' >> ${DESTDIR}/etc/rc.conf >+ echo 'sendmail_msp_queue_enable="NO"' >> ${DESTDIR}/etc/rc.conf >+ >+ # Enable DHCP for the OpenStack instance > 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 >@@ -21,5 +38,15 @@ > > rm -f ${DESTDIR}/etc/resolv.conf > >+ # The console is not interactive, so we might as well boot quickly. >+ echo 'autoboot_delay="-1"' >> ${DESTDIR}/boot/loader.conf >+ echo 'beastie_disable="YES"' >> ${DESTDIR}/boot/loader.conf >+ >+ # Reboot quickly, Don't wait at the panic screen >+ echo 'debug.trace_on_panic=1' >> ${DESTDIR}/etc/sysctl.conf >+ echo 'debug.debugger_on_panic=0' >> ${DESTDIR}/etc/sysctl.conf >+ echo 'kern.panic_reboot_wait_time=0' >> ${DESTDIR}/etc/sysctl.conf >+ >+ touch ${DESTDIR}/firstboot > return 0 > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 215258
: 177922