mhoey
2014-May-27 19:26 UTC
[Puppet Users] Implicit conversion of string to integer error with ec2_userdata
I recently installed a puppet 3.4.3 puppetmaster. I am working on a project to convert all of our manifests over from 2.7 to 3.4.3. While trying to run a master/agent setup on the puppetmaster itself, I am getting the following error: "Error: Could not retrieve catalog from remote server: Error 400 on SERVER: no implicit conversion of String into Integer." The line in question is a call to a custom function. The problem seems to go back to the "ec2_userdata" facter fact. If I alter the line "userdata.split" to just "userdata" in /usr/lib/ruby/vendor_ruby/facter/ec2.rb everything starts to work. What's interesting is that when I alter my function to not even use this variable (for debug purposes) it still throws the error. This leads me to believe that this fact is getting loaded no matter what and ultimately causing the problem. I saw in the Facter 2.0.1 documentation that arrays are now accepted but puppet does not have them turned on by default. I set stringify_facts to false in both main and master sections of puppet.conf but the problem still persists. Any help would be appreciated. Here is my environment: puppet 3.4.3 facter 2.0.1 ubuntu 14.04 ruby 2.0.0 and ruby 1.9.1 with I believe all of the binaries (ruby, irb, gem, etc) pointing at 2.0. no rvm or rbenv -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/1efc91f8-f474-4744-a7c6-a4c5e3655e49%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.