On Tuesday, March 11, 2014 7:44:58 AM UTC-4, Dirk Heinrichs wrote:
>
>  Am 11.03.2014 10:17, schrieb Dirk Heinrichs:
>
>  To do this, I've placed a simple text file "custom_facts.txt" into 
> C:\ProgramData\PuppetLabs\facter\facts.d with content
>
> [facts]
> role = PuppetDev
>
>
> Got it to work by removing the blanks:
>
> role=PuppetDev
>
> Bye...
>
>     Dirk
> -- 
>
> *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions
> *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach
> *Tel*: +49 2226 1596666 (Ansage) 1149
> *Email*: [email protected] <javascript:>
> *Skype*: dirk.heinrichs.recommind
> www.recommind.com
>



Hi,

I ran into a similar issue and wanted to post the fix here for others. To 
create the text file I used

  echo key=value > file.txt

After looking in /var/lib/puppet/yaml/facts/<certname>.yaml, I found that 
there was trailing whitespace as I had 'key=value '. To fix, I edited in 
notepad to remove the trailing whitespace.

Hope this saves someone else some time :>
-g

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/57fafb9b-bd9c-46dc-a9a8-598721c0909f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to