From e9c3cef4d02f5984dce207244d1b3fb01e4e91cc Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 27 Oct 2017 20:15:45 -0200 Subject: Ensure we have a 7.x and 8.x instances --- manifests/init.pp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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'], + } } -- cgit v1.2.3