From aae818ab5d9f73286b2bb34e1a2b9129551a2208 Mon Sep 17 00:00:00 2001 From: Jon Snell Date: Thu, 1 Oct 2015 13:45:43 -0500 Subject: [PATCH] Add schedule arg to composer::selfupdate Otherwise, it runs every time and it's kind of slow --- manifests/selfupdate.pp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/manifests/selfupdate.pp b/manifests/selfupdate.pp index d72d522..e723fab 100644 --- a/manifests/selfupdate.pp +++ b/manifests/selfupdate.pp @@ -39,6 +39,7 @@ $logoutput = false, $timeout = 300, $tries = 3, + $schedule = undef, ) { require ::composer @@ -79,9 +80,10 @@ $cmd = "${base_command}${rollback_arg}${clean_backups_arg}${version_arg}" exec { $exec_name: - command => $cmd, - tries => $tries, - timeout => $timeout, - user => $user, + command => $cmd, + tries => $tries, + timeout => $timeout, + user => $user, + schedule => $schedule, } }