View | Details | Raw Unified | Return to bug 215258
Collapse All | Expand All

(-)release/tools/openstack.conf (working copy) (-1 / +28 lines)
Lines 11-20 Link Here
11
# Set to a list of third-party software to enable in rc.conf(5).
11
# Set to a list of third-party software to enable in rc.conf(5).
12
export VM_RC_LIST="cloudinit"
12
export VM_RC_LIST="cloudinit"
13
export NOSWAP=YES
14
13
vm_extra_pre_umount() {
15
vm_extra_pre_umount() {
16
       #Enable sshd by default
14
       echo 'sshd_enable="YES"' >> ${DESTDIR}/etc/rc.conf
17
       echo 'sshd_enable="YES"' >> ${DESTDIR}/etc/rc.conf
18
19
       # Disable DNS lookups by default to make SSH connect quickly
20
       echo 'UseDNS no' >> ${DESTDIR}/etc/ssh/sshd_config
21
22
       # Allow root to ssh using keys
23
       echo 'PermitRootLogin without-password' >> ${DESTDIR}/etc/ssh/sshd_config
24
25
       # Disable sendmail
26
       echo 'sendmail_enable="NO"' >> ${DESTDIR}/etc/rc.conf
27
       echo 'sendmail_submit_enable="NO"' >> ${DESTDIR}/etc/rc.conf
28
       echo 'sendmail_outbound_enable="NO"' >> ${DESTDIR}/etc/rc.conf
29
       echo 'sendmail_msp_queue_enable="NO"' >> ${DESTDIR}/etc/rc.conf
30
31
       # Enable DHCP for the OpenStack instance
15
       echo 'ifconfig_DEFAULT="SYNCDHCP"' >> ${DESTDIR}/etc/rc.conf
32
       echo 'ifconfig_DEFAULT="SYNCDHCP"' >> ${DESTDIR}/etc/rc.conf
16
33
17
       # Openstack wants sudo(8) usable by default without a password.
34
       # Openstack wants sudo(8) usable by default without a password.
18
       echo 'ALL ALL=(ALL) NOPASSWD:ALL' >> \
35
       echo 'ALL ALL=(ALL) NOPASSWD:ALL' >> \
19
               ${DESTDIR}/usr/local/etc/sudoers.d/cloud-init
36
               ${DESTDIR}/usr/local/etc/sudoers.d/cloud-init
Lines 21-25 Link Here
21
       rm -f ${DESTDIR}/etc/resolv.conf
38
       rm -f ${DESTDIR}/etc/resolv.conf
39
       # The console is not interactive, so we might as well boot quickly.
40
       echo 'autoboot_delay="-1"' >> ${DESTDIR}/boot/loader.conf
41
       echo 'beastie_disable="YES"' >> ${DESTDIR}/boot/loader.conf
42
43
       # Reboot quickly, Don't wait at the panic screen
44
       echo 'debug.trace_on_panic=1' >> ${DESTDIR}/etc/sysctl.conf
45
       echo 'debug.debugger_on_panic=0' >> ${DESTDIR}/etc/sysctl.conf
46
       echo 'kern.panic_reboot_wait_time=0' >> ${DESTDIR}/etc/sysctl.conf
47
48
       touch ${DESTDIR}/firstboot
22
       return 0
49
       return 0
23
}
50
}

Return to bug 215258