I don''t suppose I can do this in an external node, can I....? classes: - network::config::app_bonded environment: production parameters: password : extlookup("password", "", "default_${domain}") Doug. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 12/06/2010 09:01 PM, Douglas Garstang wrote:> I don''t suppose I can do this in an external node, can I....?no but you can probably tune your extlookup tool to do that for you, before it spits out the yaml for the puppetmaster. ~pete -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkz9Q8gACgkQbwltcAfKi38C2ACggS1jXSq0miIG+XUVgiVFLu6q 0N0AnRcr6tPRoR3BpmnWH6GCn9gLdgFC =7qTb -----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-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Darn. I was hoping I could. 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. Doug. On Mon, Dec 6, 2010 at 12:13 PM, Peter Meier <peter.meier@immerda.ch> wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 12/06/2010 09:01 PM, Douglas Garstang wrote: > > I don''t suppose I can do this in an external node, can I....? > > no but you can probably tune your extlookup tool to do that for you, > before it spits out the yaml for the puppetmaster. > > ~pete > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAkz9Q8gACgkQbwltcAfKi38C2ACggS1jXSq0miIG+XUVgiVFLu6q > 0N0AnRcr6tPRoR3BpmnWH6GCn9gLdgFC > =7qTb > -----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-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- Regards, Douglas Garstang http://www.linkedin.com/in/garstang Email: doug.garstang@gmail.com Cell: +1-805-340-5627 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
-----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-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
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.meier@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-users@googlegroups.com. > To unsubscribe from this group, send email to puppet-users+unsubscribe@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-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.