If you're using 2.6 you can make a pure ruby class that will look at each variable and see if its value is a function if it is, call that function. However, I don't know how to replace the value of the variable with what re function returns. You can get the basic concept I'm talking about here: http://flybyunix.carlcaum.com/2010/12/use-external-nodes-to-define-puppet.html
On Dec 6, 2010, at 4:06 PM, Peter Meier <peter.me...@immerda.ch> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > >> The yaml isn't being auto generated by anything. All the external node >> script does it reprint it. This was by design because I am dead set against >> putting the configuration into anything except files. > > The issue is that parameters is just a yaml hash and puppet is afaik > just copying that over into its variable scope. > > However, I think your use case might be not that uncommon and it's worth > a feature request aka. we should be able to pass function "calls" with > an external node tool. > > ~pete > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAkz9XfsACgkQbwltcAfKi39R1QCgikcsF1Mf6ACP8sxoHVo1nRTJ > 2JkAoIkVyCHk/RzzGKnjMcvgbBmtlgKV > =2x74 > -----END PGP SIGNATURE----- > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-us...@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.