diff --git a/manifests/composer/auto_update.pp b/manifests/composer/auto_update.pp index 78c0c626..a60b765a 100644 --- a/manifests/composer/auto_update.pp +++ b/manifests/composer/auto_update.pp @@ -44,7 +44,8 @@ } exec { 'update composer': - command => "${path} --no-interaction --quiet self-update", + # touch binary when an update is attempted to update its mtime for idempotency when no update is available + command => "${path} --no-interaction --quiet self-update; touch ${path}", environment => $env, onlyif => "test `find '${path}' -mtime +${max_age}`", path => [ '/bin/', '/sbin/' , '/usr/bin/', '/usr/sbin/', '/usr/local/bin', '/usr/local/sbin' ],