You might be able to use generate() for this - it runs the command on the puppetmaster and returns the result to the client. Should be easy enough to use safely!
On Tue, Sep 11, 2012 at 7:28 PM, JeremyCampbell <jeremycampbel...@gmail.com> wrote: > I've written a script which adds a new server to our Zabbix monitoring system > using their api. This script contains the api username and password so I > wouldn't want it sitting on the puppet clients. I assume to execute it on > the puppetmaster side I need to configure the script as a custom function? > And to avoid the script from contacting the Zabbix server every run, it > could write the host name to a file which it checks beforehand. Would that > be the way to go or are there any better approaches? > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/puppet-users/-/zpww3ilJjlMJ. > To post to this group, send email to puppet-users@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-users@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.