What does your ENC output look like? You keep refering to it as Hiera YAML, 
but ENC and Hiera are not the same. Make sure it follows the format rules 
here: https://docs.puppetlabs.com/guides/external_nodes.html#enc-output-format

-Doug

On Monday, December 14, 2015 at 5:11:18 AM UTC-5, Sergiu Cornea wrote:
>
> Hi Matt,
>
> Thank you for your answer.
>
> I have executed the 2 commands that you've mentioned and for the first 
> command (puppet master --no-daemonize --debug) shows that my script it is 
> run, however, nothing it is happening with the data and the second command 
> (/var/lib/puppet/fetch_enc.sh yournode.example.com ) gives me a hiera 
> file, which matches the YAML file that I previously had. Also, I have done 
> a syntax check on my Hiera Yaml file and seems fine.
>
> Then only thing I cannot seem to understand is that I have edit the 
> puppet.conf file and added those lines, I can execute the script and as 
> I've said using the 2nd command I can clearly see the YAML file in the 
> correct format as I have test it with the ruby -e command also I copy paste 
> into a file called .yaml and run it and runs smoothly.
>
> I don't know what really goes on and Puppet does nothing with it :(
>
> Thank you once again,
>
> Kind regards,
> Sergiu
>
> On Friday, 11 December 2015 17:54:02 UTC, Sergiu Cornea wrote:
>>
>> Hello guys,
>>
>> I have an ENC which is producing the right data as far as I could have 
>> test it (copy and paste it in a yaml file), however, when I am using Puppet 
>> directly Puppet seems to do nothing with it. 
>>
>> This is my Puppet.conf file and logging shows that this script is being 
>> executed by the Puppet master, like I've said Puppet doesn't seem to be 
>> using the data.
>>
>> [master]
>>   node_terminus = exec
>>   external_nodes = /var/lib/puppet/fetch_enc.sh
>>
>> Thank you,
>>
>> Regards,
>> Sergiu
>>
>

-- 
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/e5f6c1ad-34a8-409c-b6ba-947297a62434%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to