Project

General

Profile

« Previous | Next » 

Revision d6e3c568

Added by Dominic Cleal about 9 years ago

Change default setting parameters from empty strings to undef

View differences:

templates/puppet.yml.erb
# puppetssh (run puppet over ssh)
# salt (uses salt puppet.run)
# customrun (calls a custom command with args)
<% if scope.lookupvar("foreman_proxy::puppetrun_provider") != '' -%>
<% unless [nil, :undefined, :undef, ''].include?(scope.lookupvar("foreman_proxy::puppetrun_provider")) -%>
:puppet_provider: <%= scope.lookupvar("foreman_proxy::puppetrun_provider") %>
<% else -%>
#:puppet_provider: puppetrun

Also available in: Unified diff