Skip to content

Commit

Permalink
Merge pull request voxpupuli#74 from craigwatson/master
Browse files Browse the repository at this point in the history
Removing --quiet from certonly cron
  • Loading branch information
juniorsysadmin authored Dec 31, 2016
2 parents 557bdc5 + ea7fd83 commit ca87541
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifests/certonly.pp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
}

if $manage_cron {
$renewcommand = "${command_start}--keep-until-expiring --quiet ${command_domains}${command_end}"
$renewcommand = "${command_start}--keep-until-expiring ${command_domains}${command_end}"
if $cron_success_command {
$cron_cmd = "${renewcommand} && (${cron_success_command})"
} else {
Expand Down
4 changes: 2 additions & 2 deletions spec/defines/letsencrypt_certonly_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
{ plugin: 'apache',
manage_cron: true }
end
it { is_expected.to contain_cron('letsencrypt renew cron foo.example.com').with_command 'letsencrypt --agree-tos certonly -a apache --keep-until-expiring --quiet -d foo.example.com' }
it { is_expected.to contain_cron('letsencrypt renew cron foo.example.com').with_command 'letsencrypt --agree-tos certonly -a apache --keep-until-expiring -d foo.example.com' }
end

context 'with custom plugin and manage cron and cron_success_command' do
Expand All @@ -80,7 +80,7 @@
manage_cron: true,
cron_success_command: 'echo success' }
end
it { is_expected.to contain_cron('letsencrypt renew cron foo.example.com').with_command 'letsencrypt --agree-tos certonly -a apache --keep-until-expiring --quiet -d foo.example.com && (echo success)' }
it { is_expected.to contain_cron('letsencrypt renew cron foo.example.com').with_command 'letsencrypt --agree-tos certonly -a apache --keep-until-expiring -d foo.example.com && (echo success)' }
end

context 'with invalid plugin' do
Expand Down

0 comments on commit ca87541

Please sign in to comment.