diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-03-04 12:05:56 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-03-04 12:05:56 -0300 |
commit | 4c1bab861dba2f1d8bca76b5545729189a508f54 (patch) | |
tree | 7bb30e3c3b065ee1b28855ceba7ef320340aa9e3 /bin/provision | |
parent | 3f871bf28d79fd2446f8f07e10249b288b7bbc6e (diff) | |
download | puppet-bootstrap-4c1bab861dba2f1d8bca76b5545729189a508f54.tar.gz puppet-bootstrap-4c1bab861dba2f1d8bca76b5545729189a508f54.tar.bz2 |
Make deps target
Diffstat (limited to 'bin/provision')
-rwxr-xr-x | bin/provision | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/bin/provision b/bin/provision index fa76b53..4d096b8 100755 --- a/bin/provision +++ b/bin/provision @@ -3,25 +3,14 @@ # Simple shell provisioner for Vagrant instances. # -# Install a package, thanks to the Hydra Suite. -function provision_package { - if [ -z "$1" ]; then - return - fi - - dpkg -s $1 &> /dev/null - - if [ "$?" == "1" ]; then - echo "Installing package $1..." - DEBIAN_FRONTEND=noninteractive apt-get install $1 -y - fi -} - # Ensure the system is updated. sudo apt-get update && sudo apt-get dist-upgrade -y && sudo apt-get autoremove -y && sudo apt-get clean -# Ensure basic packages are installed. -for package in sqlite3 libsqlite3-ruby ruby-hiera-puppet libactiverecord-ruby ruby-sqlite3 usbutils; do +# Install dependencies +source /vagrant/puppet/bin/dependencies + +# Ensure additional dependencies are installed. +for package in sqlite3 libsqlite3-ruby libactiverecord-ruby ruby-sqlite3 usbutils; do provision_package $package done |