I've got a moderately complicated network environment where I need to do some IP/hostname manipulations within my client's kickstart script. This has to be used in several snippets, so I'd like to be able the same block of code in several places.

This is, in theory, achievable by doing a $SNIPPET('network_funk') inside of the "backup_setup" snippet.

So for simplicity sake we'd have network_funk be:

#set backupIP='10.10.32.45'


and backup_setup be:


$SNIPPET('network_funk')
cat /etc/backupConfigFIle << EOF
MyBackupHost=$backupIP
EOF


so then in myInstaller.ks I would:

%post
$SNIPPET('backup_setup')


However when I do something very much like this, I get "$SNIPPET('backup_setup') in my ks config delivered via the webserver.

What am I missing here?

Regards,
Petro.
:wq


_______________________________________________
cobbler mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/cobbler

Reply via email to