Revision 572cd373
Added by Stephen Benjamin over 8 years ago
app/views/unattended/kickstart/finish.erb | ||
---|---|---|
rhel_compatible = @host.operatingsystem.family == 'Redhat' && @host.operatingsystem.name != 'Fedora'
|
||
os_major = @host.operatingsystem.major.to_i
|
||
pm_set = @host.puppetmaster.empty? ? false : true
|
||
puppet_enabled = pm_set || @host.params['force-puppet'] && @host.params['force-puppet'] == 'true'
|
||
puppet_enabled = pm_set || @host.param_true?('force-puppet')
|
||
%>
|
||
|
||
<% if @host.provision_method == 'image' && !root_pass.empty? -%>
|
||
... | ... | |
<% end -%>
|
||
|
||
<% if puppet_enabled -%>
|
||
<% if @host.params['enable-puppetlabs-repo'] && @host.params['enable-puppetlabs-repo'] == 'true' -%>
|
||
<% if @host.param_true?('enable-puppetlabs-repo') -%>
|
||
<% if @host.operatingsystem.name == 'Fedora' -%>
|
||
rpm -ivh http://yum.puppetlabs.com/puppetlabs-release-fedora-<%= os_major -%>.noarch.rpm
|
||
<% else -%>
|
||
... | ... | |
/usr/sbin/ntpdate -sub <%= @host.params['ntp-server'] || '0.fedora.pool.ntp.org' %>
|
||
/usr/sbin/hwclock --systohc
|
||
|
||
<% if @host.info['parameters']['realm'] && @host.otp && @host.realm && @host.realm.realm_type == 'FreeIPA' -%>
|
||
<% if @host.info['parameters']['realm'] && @host.realm && @host.realm.realm_type == 'FreeIPA' -%>
|
||
<%= snippet 'freeipa_register' %>
|
||
<% end -%>
|
||
|
Also available in: Unified diff
templates - sync from community-templates