diff options
-rw-r--r-- | manifests/init.pp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 10a8fc5..1ce1643 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -146,12 +146,20 @@ class drupal( backup => false, } + # TODO: move to a custom module + if ! defined(Package["curl"]) { + package { 'curl': + ensure => present, + } + } + # Composer exec { 'getcomposer': command => '/usr/bin/curl -sS https://getcomposer.org/installer | /usr/bin/php && /bin/mv composer.phar /usr/local/bin/composer', user => 'root', cwd => '/tmp', creates => '/usr/local/bin/composer', + require => Package['curl'], } # TODO: future |