diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2020-07-24 16:45:42 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2020-07-24 16:45:42 -0300 |
commit | 176d152fb83176cdcbac910acf1d5ad9f8ba1e44 (patch) | |
tree | d606047d21eb28f6fccceaac1f06ea0d60a39c78 /manifests | |
parent | c83077d522260fa53277bc46382e74362b09a872 (diff) | |
download | puppet-php-176d152fb83176cdcbac910acf1d5ad9f8ba1e44.tar.gz puppet-php-176d152fb83176cdcbac910acf1d5ad9f8ba1e44.tar.bz2 |
Updates getcomposer (4)
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/composer.pp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/manifests/composer.pp b/manifests/composer.pp index 3f51ecd..ea3b80e 100644 --- a/manifests/composer.pp +++ b/manifests/composer.pp @@ -22,18 +22,6 @@ class php::composer( } } - cron { "composer-self-update": - command => "/usr/local/bin/composer self-update > /dev/null 2>&1", - user => root, - hour => "03", - minute => "30", - ensure => $provider ? { - 'upstream' => present, - default => absent, - }, - require => Exec['getcomposer'], - } - if ($provider == 'upstream') { exec { 'getcomposer': # 'The HOME or COMPOSER_HOME environment variable must be set for composer to install correctly' @@ -46,4 +34,16 @@ class php::composer( require => File['/usr/local/bin/getcomposer'], } } + + cron { "composer-self-update": + command => "/usr/local/bin/composer self-update > /dev/null 2>&1", + user => root, + hour => "03", + minute => "30", + ensure => $provider ? { + 'upstream' => present, + default => absent, + }, + require => Exec['getcomposer'], + } } |