Hi All,
I am trying to run a batch script from custom facts. But unable to get the
required output. I know i am doing some thing wrong, but where.
==
Facter.add(:Disk_Size) do
confine :kernel => "windows"
setcode do
Facter::Util::Execution.exec("C:\\Windows\\System32\\cmd.exe
C:\\ProgramData\\PuppetLabs\\facter\\facts.d\\diskSize.bat")
end
end
==
diskSize.bat is a script which returns C: 30GB
I was expecting o/p as.
Disk_Size C: 30GB
Please help!
-Kaustubh
--
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/60511931-a1ef-466b-b059-d3f04ef2b9d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.