xref: /freebsd/release/tools/openstack.conf (revision 1e7c1f17428a0b342afd622fad341a389bed7a3f)
1#!/bin/sh
2#
3# $FreeBSD$
4#
5
6# Set to a list of packages to install.
7export VM_EXTRA_PACKAGES="net/cloud-init"
8
9# Set to a list of third-party software to enable in rc.conf(5).
10export VM_RC_LIST="cloudinit"
11
12vm_extra_install_base() {
13	fetch -o ${DESTDIR}/usr/sbin/waagent \
14		http://people.freebsd.org/~gjb/waagent
15	chmod +x ${DESTDIR}/usr/sbin/waagent
16	rm -f ${DESTDIR}/etc/resolv.conf
17
18	return 0
19}
20
21vm_extra_pre_umount() {
22	echo 'sshd_enable="YES"' >> ${DESTDIR}/etc/rc.conf
23	echo 'ifconfig_DEFAULT="SYNCDHCP"' >> ${DESTDIR}/etc/rc.conf
24
25	return 0
26}
27