1273833Sgjb#!/bin/sh
2273833Sgjb#
3273833Sgjb# $FreeBSD: releng/11.0/release/tools/openstack.conf 277458 2015-01-20 23:56:04Z gjb $
4273833Sgjb#
5273833Sgjb
6273833Sgjb# Set to a list of packages to install.
7277458Sgjbexport VM_EXTRA_PACKAGES="net/cloud-init devel/py-pbr devel/py-iso8601 \
8277458Sgjb	net/py-eventlet net/py-netaddr comms/py-serial devel/py-six \
9277458Sgjb	devel/py-babel net/py-oauth net/py-netifaces"
10273833Sgjb
11273833Sgjb# Set to a list of third-party software to enable in rc.conf(5).
12277458Sgjbexport VM_RC_LIST="cloudinit"
13277458Sgjb
14277458Sgjbvm_extra_pre_umount() {
15277458Sgjb	echo 'sshd_enable="YES"' >> ${DESTDIR}/etc/rc.conf
16277458Sgjb	echo 'ifconfig_DEFAULT="SYNCDHCP"' >> ${DESTDIR}/etc/rc.conf
17277458Sgjb
18277458Sgjb	# Openstack wants sudo(8) usable by default without a password.
19277458Sgjb	echo 'ALL ALL=(ALL) NOPASSWD:ALL' >> \
20277458Sgjb		${DESTDIR}/usr/local/etc/sudoers.d/cloud-init
21277458Sgjb
22277458Sgjb	rm -f ${DESTDIR}/etc/resolv.conf
23277458Sgjb
24277458Sgjb	return 0
25277458Sgjb}
26