From: Silvio Rhatto Date: Fri, 27 Oct 2017 22:15:45 +0000 (-0200) Subject: Ensure we have a 7.x and 8.x instances X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=e9c3cef4d02f5984dce207244d1b3fb01e4e91cc;p=puppet-drupal.git Ensure we have a 7.x and 8.x instances --- 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'], + } }