diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-11-23 18:27:40 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-11-23 18:27:40 -0200 |
commit | 446d3b2d7d784adea943292db82002e84f8dd03c (patch) | |
tree | 7d438357d116eb5f15389d60b06335c49ae975c5 /manifests | |
parent | d6eacb67610021ca0ded14f1c7983d9907a51cee (diff) | |
download | puppet-drupal-446d3b2d7d784adea943292db82002e84f8dd03c.tar.gz puppet-drupal-446d3b2d7d784adea943292db82002e84f8dd03c.tar.bz2 |
Handle curl dependency
Diffstat (limited to 'manifests')
-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 |