diff --git a/manifests/manage_binding.pp b/manifests/manage_binding.pp index 9951520..efcca28 100644 --- a/manifests/manage_binding.pp +++ b/manifests/manage_binding.pp @@ -24,7 +24,7 @@ if ($protocol == 'https') { validate_re($certificate_name, ['^(.)+$'], 'certificate_name required for https bindings') - if ($ip_address == '*' or $ip_address == '0.0.0.0') { + if ($ip_address == '0.0.0.0') { fail('https bindings require a valid ip_address') } diff --git a/spec/defines/manage_binding_spec.rb b/spec/defines/manage_binding_spec.rb index c06d5ea..a637f15 100644 --- a/spec/defines/manage_binding_spec.rb +++ b/spec/defines/manage_binding_spec.rb @@ -95,7 +95,7 @@ :ip_address => '*', } } - it { expect { should contain_exec('Attach-Certificate-myWebSite-port-443')}.to raise_error(Puppet::Error, /https bindings require a valid ip_address/) } + it { should contain_exec('Attach-Certificate-myWebSite-port-443')} end describe 'when protocol is https and ip address 0.0.0.0' do