xref: /freebsd/release/tools/openstack.conf (revision 0b3105a37d7adcadcb720112fed4dc4e8040be99)
1#!/bin/sh
2#
3# $FreeBSD$
4#
5
6# Set to a list of packages to install.
7export VM_EXTRA_PACKAGES="net/cloud-init devel/py-pbr devel/py-iso8601 \
8	net/py-eventlet net/py-netaddr comms/py-serial devel/py-six \
9	devel/py-babel net/py-oauth net/py-netifaces"
10
11# Set to a list of third-party software to enable in rc.conf(5).
12export VM_RC_LIST="cloudinit"
13
14vm_extra_pre_umount() {
15	echo 'sshd_enable="YES"' >> ${DESTDIR}/etc/rc.conf
16	echo 'ifconfig_DEFAULT="SYNCDHCP"' >> ${DESTDIR}/etc/rc.conf
17
18	# Openstack wants sudo(8) usable by default without a password.
19	echo 'ALL ALL=(ALL) NOPASSWD:ALL' >> \
20		${DESTDIR}/usr/local/etc/sudoers.d/cloud-init
21
22	rm -f ${DESTDIR}/etc/resolv.conf
23
24	return 0
25}
26