diff --git a/.rubocop.yml b/.rubocop.yml index 96cbff6..8c24dcf 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -73,8 +73,10 @@ AllCops: Include: - '**/metadata.rb' - '**/*.rb' - Excludes: + Exclude: - Thorfile - Vagrantfile - Rakefile - Berksfile +Naming/UncommunicativeMethodParamName: + MinNameLength: 2 diff --git a/Gemfile b/Gemfile old mode 100644 new mode 100755 diff --git a/metadata.rb b/metadata.rb index 8ef5e34..c6c6163 100644 --- a/metadata.rb +++ b/metadata.rb @@ -4,7 +4,7 @@ license 'Apache 2.0' description 'Installs/Configures nsupdate to manage host dynamic dns and other RR' long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) -version '0.2.0' +version '0.2.1' source_url 'https://github.com/vkhatri/chef-ddnsupdate/' issues_url 'https://github.com/vkhatri/chef-ddnsupdate/issues' diff --git a/templates/default/host_nsupdate.erb b/templates/default/host_nsupdate.erb index 2f5c255..b585405 100644 --- a/templates/default/host_nsupdate.erb +++ b/templates/default/host_nsupdate.erb @@ -4,5 +4,4 @@ # Do NOT modify this file directly. # -nsupdate -k <%=node.ddnsupdate.ddnssec.file-%> -d <%=node.ddnsupdate.host.config%> - +nsupdate -k <%=node['ddnsupdate']['ddnssec']['file']-%> -d <%=node['ddnsupdate']['host']['config']%> diff --git a/templates/default/host_nsupdate_nodsec.erb b/templates/default/host_nsupdate_nodsec.erb index cf63ebc..2373c71 100644 --- a/templates/default/host_nsupdate_nodsec.erb +++ b/templates/default/host_nsupdate_nodsec.erb @@ -4,5 +4,4 @@ # Do NOT modify this file directly. # -nsupdate -d <%=node.ddnsupdate.host.config%> - +nsupdate -d <%=node['ddnsupdate']['host']['config']%> diff --git a/templates/default/nsupdate.key.erb b/templates/default/nsupdate.key.erb index 9325b0f..ee58d86 100644 --- a/templates/default/nsupdate.key.erb +++ b/templates/default/nsupdate.key.erb @@ -3,7 +3,7 @@ # Do NOT modify this file directly. # -key <%=node.ddnsupdate.ddnssec.name-%> { - algorithm <%=node.ddnsupdate.ddnssec.algo-%>; - secret "<%=node.ddnsupdate.ddnssec.secret-%>"; +key <%=node['ddnsupdate']['ddnssec']['name']-%> { + algorithm <%=node['ddnsupdate']['ddnssec']['algo']-%>; + secret "<%=node['ddnsupdate']['ddnssec']['secret']-%>"; };