Skip to content

Commit

Permalink
Merge pull request #15 from bcorner13/chef13-fixes
Browse files Browse the repository at this point in the history
Updated the format of the attributes to meet FC001
Passes all tests.
  • Loading branch information
Bradley Corner authored Mar 7, 2018
2 parents 25ac41d + 0212966 commit 223c22f
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 3 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,10 @@ AllCops:
Include:
- '**/metadata.rb'
- '**/*.rb'
Excludes:
Exclude:
- Thorfile
- Vagrantfile
- Rakefile
- Berksfile
Naming/UncommunicativeMethodParamName:
MinNameLength: 2
Empty file modified Gemfile
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
3 changes: 1 addition & 2 deletions templates/default/host_nsupdate.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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']%>
3 changes: 1 addition & 2 deletions templates/default/host_nsupdate_nodsec.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
# Do NOT modify this file directly.
#

nsupdate -d <%=node.ddnsupdate.host.config%>

nsupdate -d <%=node['ddnsupdate']['host']['config']%>
6 changes: 3 additions & 3 deletions templates/default/nsupdate.key.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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']-%>";
};

0 comments on commit 223c22f

Please sign in to comment.