Red Hat SATELLITE 5.3.0 RELEASE NOTES Información técnica Pagina 54

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 199
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 53
cat <<'EOF'>>/etc/cobbler/named.template
#for $zone in $forward_zones
zone "${zone}." { type master; file "$zone"; };
#end for
#for $zone, $arpa in $reverse_zones
zone "${arpa}." { type master; file "$zone"; };
#end for
EOF
# Create the zone templated from the existing files
# The "db." in the original zone file names is dropped
mkdir /etc/cobbler/zone_templates
(
cd /var/named
for f in db.cloud.lab.eng.bos.redhat.com db.10.16.*
do
/bin/cp $f /etc/cobbler/zone_templates/${f#db.}
echo \$host_record >> /etc/cobbler/zone_templates/${f#db.}
done
)
sed -i '/SOA/s/9876/\$serial/' /etc/cobbler/zone_templates/*
# Don't need to change tftp setting, default were good
#create all files from cobbler templates
cobbler sync
5. Copy resources (excluding RHN Satellite installation media) to an area accessible via
the web server on the satellite system. A simple satellite-sync would be
sufficient, possibly followed by another for verification, however the steps listed can
help expedite the process if satellite dump or local satellite exists.
[...]
#remove the satellite software media before making the resources available via the web
echo "-" >> /tmp/rc.local.out 2>&1
echo "- copy resource to web area" >> /tmp/rc.local.out 2>&1
echo "-" >> /tmp/rc.local.out 2>&1
date >> /tmp/rc.local.out 2>&1
/bin/rm /root/resources/redhat-rhn-satellite-5.3-server-x86_64-5-embedded-oracle.iso >>
/tmp/rc.local.out 2>&1
/bin/cp -r /root/resources /var/www/html/pub/ >> /tmp/rc.local.out 2>&1
[...]
6. subChannels.sh - Subscribe to the required channels and set up nightly
synchronizations
#!/bin/bash
satellite-sync --step=channels --channel=rhel-x86_64-server-5
satellite-sync --step=channels --channel=rhel-x86_64-server-vt-5
satellite-sync --step=channels --channel=rhel-x86_64-server-5-mrg-grid-1
satellite-sync --step=channels --channel=rhel-x86_64-server-5-mrg-management-1
satellite-sync --step=channels --channel=rhel-x86_64-server-cluster-5
www.redhat.com 54
Vista de pagina 53
1 2 ... 49 50 51 52 53 54 55 56 57 58 59 ... 198 199

Comentarios a estos manuales

Sin comentarios