Functions run on puppet master, facts and resource provider run on
puppet agent. Writing functions won't allow you to change puppet agent
files (unless you clone module and run puppet apply). If you are
trying to write line to a file either use augeas type or puppet
file_line from stdlib:
http://forge.puppetlabs.com/puppetlabs/stdlib
HTH,
Nan
For more complicated things than a single line in a file (like RedHat-
style network configs), I've had success with using a template to emit
YAML and then having a puppetized script on the node execute to
complete the configuration. It's a half-decent way of puppetizing an
arbitrary number of files at once.
> HTH,
>
> Nan
>
> --
> You received this message because you are subscribed to the Google Groups "Puppet Users" group.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
>
>