aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/init.pp16
1 files changed, 16 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 0b78200..b81f231 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -65,4 +65,20 @@ class drupal {
force => true,
backup => false,
}
+
+ # Ensure we have an 8.x instance
+ exec { 'drupal-download-8.x':
+ command => '/usr/local/bin/drupal download 8',
+ user => "root",
+ creates => '/var/www/data/drupal-8',
+ require => File['/usr/local/bin/drupal'],
+ }
+
+ # Ensure we have an 7.x instance
+ exec { 'drupal-download-7.x':
+ command => '/usr/local/bin/drupal download 7',
+ user => "root",
+ creates => '/var/www/data/drupal-7',
+ require => File['/usr/local/bin/drupal'],
+ }
}