Skip to content

Commit

Permalink
Add schedule arg to composer::selfupdate
Browse files Browse the repository at this point in the history
Otherwise, it runs every time and it's kind of slow
  • Loading branch information
ftzdomino committed Oct 1, 2015
1 parent 5873293 commit aae818a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions manifests/selfupdate.pp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
$logoutput = false,
$timeout = 300,
$tries = 3,
$schedule = undef,
) {
require ::composer

Expand Down Expand Up @@ -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,
}
}

0 comments on commit aae818a

Please sign in to comment.