Revision 9736dac8
Added by Dominic Cleal over 9 years ago
app/views/unattended/kickstart/finish.erb | ||
---|---|---|
EOF
|
||
|
||
# Setup puppet to run on system reboot
|
||
<% if @host.operatingsystem.name == 'Fedora' -%>
|
||
puppet_unit=puppet
|
||
/usr/bin/systemctl list-unit-files | grep -q puppetagent && puppet_unit=puppetagent
|
||
/usr/bin/systemctl enable ${puppet_unit}
|
||
<% else -%>
|
||
/sbin/chkconfig --level 345 puppet on
|
||
<% end -%>
|
||
|
||
/usr/bin/puppet agent --config /etc/puppet/puppet.conf -o --tags no_such_tag <%= @host.puppetmaster.blank? ? '' : "--server #{@host.puppetmaster}" %> --no-daemonize
|
||
<% end -%>
|
Also available in: Unified diff
templates - sync from community-templates