So, I am about to wade into the world of custom functions and had a question right off the bat: How do I tell Puppet to put the functions in the right place so it can find them? I was hoping I could use a variable like $libdir and have the puppet client on my puppetmaster put the files in the right place... but $libdir isn''t resolving for me. Any tips? --Paul --~--~---------~--~----~------------~-------~--~----~ 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 Paul Lathrop wrote:> So, I am about to wade into the world of custom functions and had a > question right off the bat: > > How do I tell Puppet to put the functions in the right place so it can > find them? I was hoping I could use a variable like $libdir and have > the puppet client on my puppetmaster put the files in the right > place... but $libdir isn''t resolving for me. >Paul This should be up-to-date: http://reductivelabs.com/trac/puppet/wiki/WritingYourOwnFunctions Regards James - -- Author of: * Pulling Strings with Puppet (http://www.amazon.com/gp/product/1590599780/) * Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/) * Hardening Linux (http://www.amazon.com/gp/product/1590594444/) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIrLsM9hTGvAxC30ARAo4rAKDHtoglOhF8PHRIFiUiKp7xsUrBcACggbtI uXmkS7B04i40cmFVR0ZBSZc=zy7u -----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 -~----------~----~----~----~------~----~------~--~---
James, Yeah, I''ve read through it. It tells you where to put things, but doesn''t suggest a robust way of automatically distributing them. I configure puppetmasters with Puppet. I''d like my puppetmasters to have the functions in the "right" place. What if we decide to change Puppet''s libdir? Then I need to go through the manifests and search out the functions and change where I am distributing them? Just trying to see if there is a good, clean way to make sure custom functions end up where Puppet will see them. Thanks, Paul On Wed, Aug 20, 2008 at 5:47 PM, James Turnbull <james@lovedthanlost.net> wrote:> > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Paul Lathrop wrote: >> So, I am about to wade into the world of custom functions and had a >> question right off the bat: >> >> How do I tell Puppet to put the functions in the right place so it can >> find them? I was hoping I could use a variable like $libdir and have >> the puppet client on my puppetmaster put the files in the right >> place... but $libdir isn''t resolving for me. >> > Paul > > This should be up-to-date: > > http://reductivelabs.com/trac/puppet/wiki/WritingYourOwnFunctions > > Regards > > James > > - -- > Author of: > * Pulling Strings with Puppet > (http://www.amazon.com/gp/product/1590599780/) > * Pro Nagios 2.0 > (http://www.amazon.com/gp/product/1590596099/) > * Hardening Linux > (http://www.amazon.com/gp/product/1590594444/) > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.7 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFIrLsM9hTGvAxC30ARAo4rAKDHtoglOhF8PHRIFiUiKp7xsUrBcACggbtI > uXmkS7B04i40cmFVR0ZBSZc> =zy7u > -----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 -~----------~----~----~----~------~----~------~--~---
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Paul Lathrop wrote:> James, > > Yeah, I''ve read through it. It tells you where to put things, but > doesn''t suggest a robust way of automatically distributing them. I > configure puppetmasters with Puppet. I''d like my puppetmasters to have > the functions in the "right" place. What if we decide to change > Puppet''s libdir? Then I need to go through the manifests and search > out the functions and change where I am distributing them? Just trying > to see if there is a good, clean way to make sure custom functions end > up where Puppet will see them.I distribute them with Puppet itself but I only have two production puppetmasterds. Define a variable for the directory and then only have to update that one variable? Cheers James - -- Author of: * Pulling Strings with Puppet (http://www.amazon.com/gp/product/1590599780/) * Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/) * Hardening Linux (http://www.amazon.com/gp/product/1590594444/) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIrL9M9hTGvAxC30ARAsSyAJ9o/oEB/tKQP3lXdW4/xSSUCO4fqgCfXXdZ H4xvIDwZZOu88xECiXeIHxk=9kWu -----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 -~----------~----~----~----~------~----~------~--~---