Skip to content

Instantly share code, notes, and snippets.

@calston
Created July 10, 2013 13:17
Show Gist options
  • Save calston/5966201 to your computer and use it in GitHub Desktop.
Save calston/5966201 to your computer and use it in GitHub Desktop.
Facter.add("nginx") do
setcode do
if File.exist? "/etc/nginx/nginx.conf"
true
else
false
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment