aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-10-27 20:15:45 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-10-27 20:15:45 -0200
commite9c3cef4d02f5984dce207244d1b3fb01e4e91cc (patch)
tree2ec80fb8ac50298c3d0d28e9e52ca539229b11d4 /manifests
parentdb6a27e1050630f9376dc2d118faa63d08cfeaa5 (diff)
downloadpuppet-drupal-e9c3cef4d02f5984dce207244d1b3fb01e4e91cc.tar.gz
puppet-drupal-e9c3cef4d02f5984dce207244d1b3fb01e4e91cc.tar.bz2
Ensure we have a 7.x and 8.x instances
Diffstat (limited to 'manifests')
-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'],
+ }
}