diff options
Diffstat (limited to 'bin/dependencies')
-rwxr-xr-x | bin/dependencies | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/bin/dependencies b/bin/dependencies index 507145b..94d3765 100755 --- a/bin/dependencies +++ b/bin/dependencies @@ -3,6 +3,15 @@ # Puppet bootstrap dependencies. # +# Parameters +DEPENDENCIES="puppet-common git mr whois" +DEPLOY_DEPENDENCIES="ruby-sqlite3 ruby-activerecord" + +# Additional non-wheezy package +if [ "`head -c 1 /etc/debian_version`" != '7' ]; then + DEPLOY_DEPENDENCIES="$DEPLOY_DEPENDENCIES ruby-activerecord-deprecated-finders" +fi + # Install a package, thanks to the Hydra Suite. function provision_package { if [ -z "$1" ]; then @@ -23,6 +32,6 @@ if [ "`whoami`" != 'root' ]; then fi # Ensure basic packages are installed. -for package in puppet git mr whois; do +for package in $DEPENDENCIES; do provision_package $package done |