diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-12-15 15:46:19 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-12-15 15:46:19 -0200 |
commit | 6e9565b2c91b06bb7439ca603a9f24bf882a183c (patch) | |
tree | 8ef2f38ccf0391d3e2fb78451cca62e17853d144 | |
parent | 7314f90753df81636e85440d4d1384b48862d00b (diff) | |
download | puppet-drupal-6e9565b2c91b06bb7439ca603a9f24bf882a183c.tar.gz puppet-drupal-6e9565b2c91b06bb7439ca603a9f24bf882a183c.tar.bz2 |
Convert drupal template to a script
-rwxr-xr-x[-rw-r--r--] | files/drupal (renamed from templates/drupal.sh.erb) | 4 | ||||
-rw-r--r-- | manifests/init.pp | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/templates/drupal.sh.erb b/files/drupal index 36e0650..948ed43 100644..100755 --- a/templates/drupal.sh.erb +++ b/files/drupal @@ -3,8 +3,8 @@ # Drupal management script. # -SITES="<%= scope.lookupvar('drupal::sites_folder') %>" -BASE="<%= scope.lookupvar('drupal::www_folder') %>" +BASE=${BASE:="/var/www/data"} +SITES=${SITES:="$BASE/drupal"} SERIES="5 6 7" # Read a parameter from user diff --git a/manifests/init.pp b/manifests/init.pp index df9eb3e..4e1cf58 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -1,7 +1,4 @@ class drupal( - $folder = hiera('drupal::folder', '/var/www/data/drupal'), - $sites_folder = hiera('drupal::sites_folder', '/var/sites'), - $www_folder = hiera('drupal::www_folder', '/var/www/data'), $drush_version = hiera('drupal::drush::version', '8.0.1') ) { # Needed packages |