Project

General

Profile

« Previous | Next » 

Revision c1104d00

Added by Ondřej Ezr about 3 years ago

Fixes #32092 - add puppet safe guard

Hides puppetserver and puppet environment behind macros, that can alter
implementation much more easily and even be patched from plugin.

View differences:

app/views/unattended/provisioning_templates/user_data/userdata_default.erb
ssh_pwauth = host_param('ssh_pwauth') ? host_param_true?('ssh_pwauth') : !host_param('ssh_authorized_keys')
rhel_compatible = @host.operatingsystem.family == 'Redhat' && @host.operatingsystem.name != 'Fedora'
# safemode renderer does not support unary negation
pm_set = @host.puppetmaster.empty? ? false : true
puppet_enabled = pm_set || host_param_true?('force-puppet')
puppet_enabled = host_puppet_server.present? || host_param_true?('force-puppet')
salt_enabled = host_param('salt_master') ? true : false
chef_enabled = @host.respond_to?(:chef_proxy) && @host.chef_proxy
-%>

Also available in: Unified diff