aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-11-23 18:27:40 -0200
committerSilvio Rhatto <rhatto@riseup.net>2015-11-23 18:27:40 -0200
commit446d3b2d7d784adea943292db82002e84f8dd03c (patch)
tree7d438357d116eb5f15389d60b06335c49ae975c5
parentd6eacb67610021ca0ded14f1c7983d9907a51cee (diff)
downloadpuppet-drupal-446d3b2d7d784adea943292db82002e84f8dd03c.tar.gz
puppet-drupal-446d3b2d7d784adea943292db82002e84f8dd03c.tar.bz2
Handle curl dependency
-rw-r--r--manifests/init.pp8
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