Commit e28cc71a authored by Samuel Bernard's avatar Samuel Bernard

Fix default hostmaster email (1.0.1)

parent c200d600
......@@ -108,7 +108,7 @@ default['bind-ddns']['zones'] = [
# # interface names will be resolved to their first non-local IP address
# 'ns.myzone' => 'eth0'
# }
# 'contact' => "foo@myzone", # default is contact@'myzone'
# 'contact' => "foo.zone.com.", # default is hostmaster
# 'serial' => 123 # set it ONLY if you want to force the serial
# # by default (ie if nil), it uses the current unix time
#
......
......@@ -6,6 +6,6 @@ description 'Install and configure ISC Bind on server and nsupdate on clients'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
source_url 'https://gitlab.com/s4m-chef-repositories/bind-ddns'
issues_url 'https://gitlab.com/s4m-chef-repositories/bind-ddns/issues'
version '1.0.0'
version '1.0.1'
supports 'centos', '>= 7.1'
......@@ -128,7 +128,7 @@ node['bind-ddns']['zones'].each do |zone|
mode 0644
variables({
'global_ttl' => zone['global_ttl'] || default['global_ttl'],
'contact' => zone['contact'] || "contact@#{zone['name']}",
'contact' => zone['contact'] || 'hostmaster',
'ns' => zone['ns'],
'a' => resolved_zone_a,
'refresh' => zone['refresh'] || default['refresh'],
......
......@@ -66,7 +66,7 @@ end
describe file('/var/named/dynamic/db-chef-kitchen.erb') do
its(:content) {
should contain '@ IN SOA ns.chef.kitchen. contact@chef.kitchen \('
should contain '@ IN SOA ns.chef.kitchen. hostmaster \('
}
its(:content) { should contain ' IN NS ns.chef.kitchen.' }
its(:content) { should contain "ns.chef.kitchen. IN A #{get_ip_eth0}" }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment