openstack.conf revision 278985
1278985Sgjb#!/bin/sh 2278985Sgjb# 3278985Sgjb# $FreeBSD: stable/10/release/tools/openstack.conf 278985 2015-02-19 03:57:47Z gjb $ 4278985Sgjb# 5278985Sgjb 6278985Sgjb# Set to a list of packages to install. 7278985Sgjbexport VM_EXTRA_PACKAGES="net/cloud-init devel/py-pbr devel/py-iso8601 \ 8278985Sgjb net/py-eventlet net/py-netaddr comms/py-serial devel/py-six \ 9278985Sgjb devel/py-babel net/py-oauth net/py-netifaces" 10278985Sgjb 11278985Sgjb# Set to a list of third-party software to enable in rc.conf(5). 12278985Sgjbexport VM_RC_LIST="cloudinit" 13278985Sgjb 14278985Sgjbvm_extra_pre_umount() { 15278985Sgjb echo 'sshd_enable="YES"' >> ${DESTDIR}/etc/rc.conf 16278985Sgjb echo 'ifconfig_DEFAULT="SYNCDHCP"' >> ${DESTDIR}/etc/rc.conf 17278985Sgjb 18278985Sgjb # Openstack wants sudo(8) usable by default without a password. 19278985Sgjb echo 'ALL ALL=(ALL) NOPASSWD:ALL' >> \ 20278985Sgjb ${DESTDIR}/usr/local/etc/sudoers.d/cloud-init 21278985Sgjb 22278985Sgjb rm -f ${DESTDIR}/etc/resolv.conf 23278985Sgjb 24278985Sgjb return 0 25278985Sgjb} 26