External fact written in bash failing on Windows
In order to extend the facts from facter, I included an external fact written in bash. As I named the file 'ldap.sh', it provides the data perfectly on Linux agents. Unfortunately it is also executed on our Windows agents, showing the following error message :
Fact file C:/ProgramData/PuppetLabs/puppet/var/facts.d/ldap.sh was parsed but returned an empty data set
Environment is running PE 3.8.1.
- Is there any way to restrict this external fact to only execute on Linux based agents, without converting it to a custom fact written in Ruby?
- Does this mean PE would also try to run a powershell script on Linux?
Thank you in advance.
Kind regards, Mark