Can a custom fact have a puppet class as a requirement before running?
I want to run a custom fact that kicks off a shell script e.g.
Facter.add("myawesomescript") do setcode do Facter::Util::Resolution.exec('/root/awesomescript.sh') end end
Thing is that awesomescript.sh doesn't exist and I want puppet to place it.
Could I have a separate module that kicks off a class before anything in the module that has the facter lib stuff? It seems like facter is completely separate from puppet and kicks off right away. Just trying to think of a way around this.