As I know puppet merge both sources ENC and manifest file. You can use empty manifest file to avoid this behavior. Host name will be available as first argument to this script, all others facts you can query from puppetdb. Also you can use hiera as ENC, and all facts will be available for you out of the box.
On Monday, June 16, 2014 10:52:03 AM UTC+3, shlo....@gmail.com wrote: > > Hi, > > Until now I work with manifest file. Now I would like to create a perl/php > script that will create the YAML script and should overwrite the manifest > file. > > So I edit the file puppet.conf and put: > > mode_terminus = exec > external_nodes = /usr/bin/env PUPPET_DASHBOARD_URL=http://localhost:3000 > /path/to/bin/external_node > > In the file /path/to/bin/external_node I put my code for the perl script. > when I run Puppet on the agent, it's look like it still take the manifest > instead of the script I put. > > How Can I make this script work instead of the manifest files? how can I > debug it? > > Also, How can I send parameters to the script? How to access to fact > variables from the script, like $hostname etc? > > Thanks. > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/eef1f326-e23a-4334-b229-0ef2682cb7df%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.