Hi,
I think that the best way is a custom fact.
Regards
--
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 puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/7211e50a-32db-4c68-953e-164edecc1932%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi,
I created fact but it doesn't work. What did I make wrong?
# nginx_arg.rb
Facter.add("nginx_arg") do
setcode do
Facter::Util::Resolution.exec("/usr/sbin/nginx -V 2> /etc/puppet/nginx.args | /bin/cat /etc/puppet/nginx.args | /usr/bin/awk -F'--http-proxy-temp-path=' {'print $2'} | /usr/bin/awk {'print $1'} | /bin/grep '\/'")
end
end