Revision 22964664
Added by Dominic Cleal about 8 years ago
app/views/unattended/kickstart/provision.erb | ||
---|---|---|
<% end -%>
|
||
|
||
text
|
||
<% if @host.respond_to?(:bootdisk_build?) && @host.bootdisk_build? %>
|
||
reboot --eject
|
||
<% else -%>
|
||
reboot
|
||
<% end -%>
|
||
|
||
%packages
|
||
yum
|
||
... | ... | |
# update all the base packages from the updates repository
|
||
yum -t -y -e 0 update
|
||
|
||
<%= snippet('remote_execution_ssh_keys') %>
|
||
|
||
<% if chef_enabled %>
|
||
<%= snippet 'chef_client' %>
|
||
<% end -%>
|
||
... | ... | |
<%= snippet 'puppet.conf' %>
|
||
EOF
|
||
|
||
<%= snippet('remote_execution_ssh_keys') %>
|
||
|
||
# Setup puppet to run on system reboot
|
||
/sbin/chkconfig --level 345 puppet on
|
||
|
||
... | ... | |
|
||
# Inform the build system that we are done.
|
||
echo "Informing Foreman that we are built"
|
||
wget -q -O /dev/null --no-check-certificate <%= foreman_url %>
|
||
wget -q -O /dev/null --no-check-certificate <%= foreman_url('built') %>
|
||
) 2>&1 | tee /root/install.post.log
|
||
exit 0
|
||
|
Also available in: Unified diff
templates - sync from community-templates