Skip to content

Commit

Permalink
Refs #21873 - Switch warn to fail
Browse files Browse the repository at this point in the history
  • Loading branch information
chris1984 authored and ehelms committed Jan 24, 2018
1 parent f61f335 commit 42583ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifests/foreman_proxy_content.pp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
validate_present($foreman_proxy_fqdn)

if $foreman_proxy_fqdn == $::fqdn {
warning('The hostname is the same as the foreman-proxy')
fail('The hostname is the same as the provided hostname for the foreman-proxy')
}

class { '::certs::puppet': hostname => $foreman_proxy_fqdn, cname => $foreman_proxy_cname }
Expand Down
3 changes: 2 additions & 1 deletion spec/classes/certs_foreman_proxy_content_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@

let :params do
{
:certs_tar => '/tmp/tar'
:certs_tar => '/tmp/tar',
:foreman_proxy_fqdn => 'bar.example.com'
}
end

Expand Down

0 comments on commit 42583ce

Please sign in to comment.