Merge "Update kickstarts to generate DNF repo config files"
This commit is contained in:
commit
00b6c8ec20
@ -31,25 +31,25 @@ else
|
||||
fi
|
||||
|
||||
. /etc/platform/platform.conf
|
||||
# Configure smart package manager channels
|
||||
rm -rf /var/lib/smart
|
||||
mkdir /var/lib/smart
|
||||
/usr/bin/smart channel -y \
|
||||
--add rpmdb type=rpm-sys name="RPM Database"
|
||||
/usr/bin/smart channel -y \
|
||||
--add base type=rpm-md name="Base" baseurl=http://controller:${http_port:-8080}/feed/rel-xxxPLATFORM_RELEASExxx
|
||||
/usr/bin/smart channel -y \
|
||||
--add updates type=rpm-md name="Patches" baseurl=http://controller:${http_port:-8080}/updates/rel-xxxPLATFORM_RELEASExxx
|
||||
|
||||
# Configure smart to use rpm --nolinktos option
|
||||
/usr/bin/smart config --set rpm-nolinktos=true
|
||||
|
||||
# Configure smart to use rpm --nosignature option
|
||||
/usr/bin/smart config --set rpm-check-signatures=false
|
||||
|
||||
# Delete the CentOS yum repo files
|
||||
rm -f /etc/yum.repos.d/CentOS-*
|
||||
|
||||
# Create platform yum repo file
|
||||
cat >/etc/yum.repos.d/platform.repo <<EOF
|
||||
[platform-base]
|
||||
name=platform-base
|
||||
baseurl=http://controller:${http_port:-8080}/feed/rel-xxxPLATFORM_RELEASExxx
|
||||
gpgcheck=0
|
||||
enabled=1
|
||||
|
||||
[platform-updates]
|
||||
name=platform-updates
|
||||
baseurl=http://controller:${http_port:-8080}/updates/rel-xxxPLATFORM_RELEASExxx
|
||||
gpgcheck=0
|
||||
enabled=1
|
||||
EOF
|
||||
|
||||
# Persist the boot device naming as UDEV rules so that if the network device
|
||||
# order changes post-install that we will still be able to DHCP from the
|
||||
# correct interface to reach the active controller. For most nodes only the
|
||||
|
Loading…
x
Reference in New Issue
Block a user