--
<-- http://23.me.uk/2 -->
<--Time flies like an arrow; fruit flies like a banana.  -->


On 16 June 2014 08:52, <shlo.af...@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
>
>
​ dont think you need the extra option in your external_nodes... i use:

    node_terminus = exec
    external_nodes = /PATH/TO/ENC/findrole.rb

FYI My enc script is here, it reads json files though and can pass querys
back of to the dashboard.
http://paste.debian.net/104832
​



> 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/6eb837b7-b3d8-4531-ad1b-4f14c2826c60%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/6eb837b7-b3d8-4531-ad1b-4f14c2826c60%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAFWLKdeJf3G9XapM7nfJgekzhYnMZ9MLUn5d_SMu9SdKSUs_hg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to