-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error with a simple update #5
Comments
@PhilippeBerard sorry for the delay, will try to reproduce it on my end. |
As I see the problem is "#node['ddnsupdate']['server']" attribute value is disappeared after RegEx check in resources (.. cookbooks/chef-ddnsupdate/resources/rr.rb) After I remove this check the recipe works perfectly. -attribute :server, :kind_of => String, :regex => Resolv::IPv4::Regex, :default => node['ddnsupdate']['server'] |
OK, thanks, I'll check this on monday and get back to tell you if it works. Cordialement, Philippe Bérard
|
@cseke strange, i will try to reproduce it on my end too. thank you for sharing! |
seems to be an issue with Chef12, will check it out. |
System : Ubuntu 14.04 Server
CHEF Version : 12.4.1
This simple cookbook crashes in the ruby_block "CREATE test.myzone.com(A)=1.2.3.4" with the following error :
could not read server name
syntax error"
Any clue ?
Here is the cookbook I use (don"t worry for the key, it's a simple test server) :
node.override['ddnsupdate']['ddnssec']['file'] = '/etc/bind/ddns-key.txt'
node.override['ddnsupdate']['ddnssec']['secret'] = "ZM1jQpkgDBSy5aa/+5aWsgvTqyb/8RysyBc8z6RtdQU="
node.override['ddnsupdate']['host']['nsupdate_bin'] = '/usr/bin/nsupdate'
node.override['ddnsupdate']['ddnssec']['manage'] = true
node.override['ddnsupdate']['ddnssec']['name'] = "localhost"
node.default['ddnsupdate']['server'] = '127.0.0.1'
include_recipe "ddnsupdate::rr"
ddnsupdate_rr "test.myzone.com" do
zone "myzone.com"
type "A"
value [ "1.2.3.4" ]
end
The text was updated successfully, but these errors were encountered: