Hi there,

I'm trying to create some external facts from PowerShell objects, e.g.:

PS> @{"foo" = "bar"; "foo2" = "bar2"} | ConvertTo-Json | Out-File
C:\ProgramData\PuppetLabs\facter\facts.d\foo.json

PS> Get-Content C:\ProgramData\PuppetLabs\facter\facts.d\foo.json
{
    "foo":  "bar",
    "foo2":  "bar2"
}

Here is error Facter shows me:

c:\Program Files\Puppet Labs\Puppet\bin>facter -v
3.1.3 (commit 1aa380a82ec35b7f8e7e58fab627e74f93aaeff3)

c:\Program Files\Puppet Labs\Puppet\bin>facter -p foo
2015-12-14 10:32:50.582395 ERROR puppetlabs.facter - error while processing "C:/
ProgramData\PuppetLabs\facter\facts.d\foo.json" for external facts: Invalid valu
e.
2015-12-14 10:32:52.425374 ERROR puppetlabs.facter - error while processing "C:/
ProgramData\PuppetLabs\facter\facts.d\foo.json" for external facts: Invalid valu
e.

I've copied the exact same json to a Linux system and it works fine.

It is me or is there a bug?

Regards,

Miguel

-- 
http://www.instruct.com.br - 19 2511-6506

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

Reply via email to