Revision c1104d00
Added by Ondřej Ezr about 3 years ago
app/views/unattended/provisioning_templates/finish/kickstart_default_finish.erb | ||
---|---|---|
|
||
<%
|
||
rhel_compatible = @host.operatingsystem.family == 'Redhat' && @host.operatingsystem.name != 'Fedora'
|
||
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
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.