Project

General

Profile

« Previous | Next » 

Revision adce4ac3

Added by Dominic Cleal over 10 years ago

templates - sync from community-templates

(cherry picked from commit 6d755dd05f00a7f52b7bb3f791438b688ce54ba7)

View differences:

app/views/unattended/preseed/finish.erb
%>
<% if puppet_enabled %>
cat > /etc/puppet/puppet.conf << EOF
<%= snippet "puppet.conf" %>
<%= snippet 'puppet.conf' %>
EOF
/bin/sed -i 's/^START=no/START=yes/' /etc/default/puppet
/bin/touch /etc/puppet/namespaceauth.conf
/usr/bin/puppet agent --config /etc/puppet/puppet.conf --onetime --tags no_such_tag <%= @host.puppetmaster.blank? ? "" : "--server #{@host.puppetmaster}" %> --no-daemonize
/usr/bin/puppet agent --config /etc/puppet/puppet.conf --onetime --tags no_such_tag <%= @host.puppetmaster.blank? ? '' : "--server #{@host.puppetmaster}" %> --no-daemonize
<% end -%>
/usr/bin/wget --quiet --output-document=/dev/null --no-check-certificate <%= foreman_url %>

Also available in: Unified diff