vagrant-lxc-base-boxes/fedora/install-extras.sh
Michael Adam 6bfbe0e8d7 Add support to set up fedora boxes.
Currently only f20 and f19 are provided by the lxc-download template,
not f21.
2015-12-07 10:44:06 +01:00

22 lines
489 B
Bash
Executable file

#!/bin/bash
set -e
source common/ui.sh
source common/utils.sh
info 'Installing extra packages and upgrading'
debug 'Bringing container up'
utils.lxc.start
# Sleep for a bit so that the container can get an IP
SECS=20
log "Sleeping for $SECS seconds..."
sleep $SECS
# TODO: Support for appending to this list from outside
PACKAGES=(vim curl wget man-db bash-completion ca-certificates sudo openssh-server)
utils.lxc.attach yum update -y
utils.lxc.attach yum install ${PACKAGES[*]} -y