On Thu, Apr 23, 2009 at 1:27 PM, [email protected] <[email protected]> wrote: > > How can I get generate to run the command on the client, not the > server. > > I have the following > > class exports { > $dirs = generate("/bin/sh","-c","/bin/mount -t ext3,xfs") > file { "exports.test": > name => "/etc/exports.test", > content => template("exports.erb") > } > } > > And when run on the client, I get the same results that I get when run > on the server. It seems that generate should run the command on the > client, otherwise it isn't very useful. > > Thanks, > > Andy > Generate runs on the server. it is actually a pretty useful tool that way. For instance, it lets you have a dynamical produce file or template content outside of the puppet manifest and then return that information into a puppet. For what you are doing you might want to use a facter fact so that the information is available to the puppet to instead of using generate.
Evan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
