Skip to content
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

Open
PhilippeBerard opened this issue Aug 19, 2015 · 5 comments
Open

Error with a simple update #5

PhilippeBerard opened this issue Aug 19, 2015 · 5 comments
Assignees
Labels

Comments

@PhilippeBerard
Copy link

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 :

  • ruby_block[CREATE test.myzone.com(A)=1.2.3.4] action run[2015-08-19T11:39:24+02:00] INFO: Processing ruby_block[CREATE test.myzone.com(A)=1.2.3.4] action run (/var/chef/cache/cookbooks/ddnsupdate/providers/rr.rb line 62)
    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

@vkhatri
Copy link
Owner

vkhatri commented Aug 27, 2015

@PhilippeBerard sorry for the delay, will try to reproduce it on my end.

@cseke
Copy link

cseke commented Sep 11, 2015

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']
+attribute :server, :kind_of => String, :default => node['ddnsupdate']['server']

@PhilippeBerard
Copy link
Author

OK, thanks, I'll check this on monday and get back to tell you if it works.

Cordialement,

Philippe Bérard
Responsable Informatique
Tel : +33 (0)1 39 23 31 17
Mob : +33 (0)6 01 27 87 86
Fax : +33 (0)1 39 55 47 56
58, Rue Pottier
78150 Le Chesnay
www.jalios.com http://www.jalios.com/

Le 11 sept. 2015 à 10:49, Zsolt Csábi [email protected] a écrit :

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']
+attribute :server, :kind_of => String, :default => node['ddnsupdate']['server']


Reply to this email directly or view it on GitHub #5 (comment).

@vkhatri
Copy link
Owner

vkhatri commented Sep 14, 2015

@cseke strange, i will try to reproduce it on my end too. thank you for sharing!

@vkhatri vkhatri self-assigned this Sep 14, 2015
@vkhatri vkhatri added the bug label Sep 14, 2015
@vkhatri
Copy link
Owner

vkhatri commented Oct 10, 2015

seems to be an issue with Chef12, will check it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants