2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-13 03:08:14 +00:00

Try to add installedargs to suse profiles

This commit is contained in:
Jarrod Johnson 2020-12-01 16:57:26 -05:00
parent 674d32e9e5
commit 4c74581f0c

View File

@ -116,6 +116,14 @@ profilename=${profilename#profile: }
proto=$(grep ^protocol: /etc/confluent/confluent.deploycfg)
proto=${proto#protocol: }
curl https://$mgr/confluent-public/os/$profilename/profile.yaml > /tmp/profile.yaml
append=$(grep ^installedargs: /tmp/profile.yaml | sed -e 's/^installedargs: //' -e 's/#.*//')
if [ -z "$append" ]; then
echo "<bootloader/>" > /tmp/bootloader.xml
else
echo "<bootloader><global><append>$append</append></global></bootloader>" > /tmp/bootloader.xml
fi
echo "<media_url>${proto}://${mgr}/confluent-public/os/${profilename}/product</media_url>" > /tmp/pkgurl
echo "AutoYaST: $proto://$mgr/confluent-public/os/$profilename/autoyast" >> /etc/linuxrc.d/01-confluent