Project

General

Profile

« Previous | Next » 

Revision 6d755dd0

Added by Dominic Cleal over 10 years ago

templates - sync from community-templates

View differences:

app/views/unattended/autoyast/provision.erb
<configure_dhcp config:type="boolean">false</configure_dhcp>
<peers config:type="list">
<peer>
<address><%= @host.params["ntp-server"] || "0.opensuse.pool.ntp.org" %></address>
<address><%= @host.params['ntp-server'] || '0.opensuse.pool.ntp.org' %></address>
<initial_sync config:type="boolean">true</initial_sync>
<options></options>
<type>server</type>
......
<source><![CDATA[
<% if puppet_enabled %>
cat > /etc/puppet/puppet.conf << EOF
<%= snippet "puppet.conf" -%>
<%= snippet 'puppet.conf' -%>
EOF
if [ -f "/etc/sysconfig/puppet" ]
then
/usr/bin/sed -ie s/^PUPPET_SERVER=.*/PUPPET_SERVER=<%= @host.puppetmaster.blank? ? "" : @host.puppetmaster %>/ /etc/sysconfig/puppet
/usr/bin/sed -ie s/^PUPPET_SERVER=.*/PUPPET_SERVER=<%= @host.puppetmaster.blank? ? '' : @host.puppetmaster %>/ /etc/sysconfig/puppet
fi
/usr/bin/puppet agent --config /etc/puppet/puppet.conf -o --tags no_such_tag <%= @host.puppetmaster.blank? ? "" : "--server #{@host.puppetmaster}" %> --no-daemonize
/usr/bin/puppet agent --config /etc/puppet/puppet.conf -o --tags no_such_tag <%= @host.puppetmaster.blank? ? '' : "--server #{@host.puppetmaster}" %> --no-daemonize
/sbin/chkconfig puppet on -f
<% end -%>
......
</keyboard>
<timezone>
<hwclock>UTC</hwclock>
<timezone><%= @host.params["time-zone"] || "Etc/UTC" %></timezone>
<timezone><%= @host.params['time-zone'] || 'Etc/UTC' %></timezone>
</timezone>
</profile>

Also available in: Unified diff