Skip to content

Commit

Permalink
always log foreman-rake output
Browse files Browse the repository at this point in the history
this is useful when debugging which migrations ran and how long they
took
  • Loading branch information
evgeni authored and ekohl committed Jun 17, 2024
1 parent 7a820e4 commit f31e9ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion manifests/rake.pp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
command => "/usr/sbin/foreman-rake ${title}",
user => $user,
environment => sort(join_keys_to_values({ 'HOME' => $app_root } + $environment, '=')),
logoutput => 'on_failure',
logoutput => true,
refreshonly => $unless =~ Undef,
timeout => $timeout,
unless => $unless,
Expand Down
8 changes: 4 additions & 4 deletions spec/defines/foreman_rake_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
.with_command('/usr/sbin/foreman-rake db:migrate')
.with_user('foreman')
.with_environment(['HOME=/usr/share/foreman'])
.with_logoutput('on_failure')
.with_logoutput(true)
.with_refreshonly(true)
.with_timeout(nil)
.with_unless(nil)
Expand All @@ -37,7 +37,7 @@
.with_command('/usr/sbin/foreman-rake db:migrate')
.with_user('foreman')
.with_environment(['HOME=/usr/share/foreman', 'SEED_USER=admin'])
.with_logoutput('on_failure')
.with_logoutput(true)
.with_refreshonly(true)
end
end
Expand All @@ -51,7 +51,7 @@
.with_user('foreman')
.with_environment(['HOME=/usr/share/foreman'])
.with_timeout(60)
.with_logoutput('on_failure')
.with_logoutput(true)
.with_refreshonly(true)
end
end
Expand All @@ -64,7 +64,7 @@
.with_command('/usr/sbin/foreman-rake db:migrate')
.with_user('foreman')
.with_environment(['HOME=/usr/share/foreman'])
.with_logoutput('on_failure')
.with_logoutput(true)
.with_refreshonly(false)
.with_unless('/usr/bin/true')
end
Expand Down

0 comments on commit f31e9ba

Please sign in to comment.