It sounds more to me like you have a raw text issue.  You can nest snippets 
just fine, but you need to make sure you are not setting the parent snippet to 
raw output, or the nested snippet will not expand and the result will be what 
you are describing.

If you see any $SNIPPET lines in your final rendered ks, you aren't getting 
them expanded properly.

--
David
[email protected]

On Sep 13, 2013, at 2:16 PM, Petro <[email protected]> wrote:

> 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

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

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

Reply via email to