Revision 6003b15e
Added by Ohad Levy over 12 years ago
- ID 6003b15e87b6564ab551baf6222cf46055f25b7b
app/views/unattended/kickstart.rhtml | ||
---|---|---|
/usr/sbin/ntpdate -sub ntp
|
||
/usr/sbin/hwclock --systohc
|
||
|
||
logger "Starting anaconda <%= @host.name -%> postinstall"
|
||
logger "Starting anaconda <%= @host %> postinstall"
|
||
|
||
# install epel if we can
|
||
<%= @epel -%>
|
||
|
||
# update all the base packages from the updates repository
|
||
yum -t -y -e 0 <% @yumrepo -%> upgrade
|
||
yum -t -y -e 0 update
|
||
|
||
# and add the puppet and ruby-shadow package
|
||
yum -t -y -e 0 <% @yumrepo -%> install puppet
|
||
yum -t -y -e 0 install puppet
|
||
|
||
echo "Configuring puppet"
|
||
cat > /etc/puppet/puppet.conf << EOF
|
||
<%= snippets "puppet.conf" -%>
|
||
EOF
|
||
|
||
# The puppet service will not start without this file unless it is in test/debug mode. Its contents are updated later in the build process.
|
||
/bin/touch /etc/puppet/namespaceauth.conf
|
||
|
||
# Setup puppet to run on system reboot
|
||
/sbin/chkconfig --level 345 puppet on
|
||
|
||
... | ... | |
/usr/sbin/puppetd --config /etc/puppet/puppet.conf -o --tags no_such_tag --server <%= @host.puppetmaster %> --no-daemonize
|
||
|
||
sync
|
||
<%= snippets "vmware" -%>
|
||
|
||
# Inform the build system that we are done.
|
||
echo "Informing Foreman that we are built"
|
Also available in: Unified diff
fixes #1156 - default kickstart should not do yum upgrade