No.
At least not without a bit of fudging. although you can have as many 
#raw...#end raw sections as you want in a snippet,
so that might work for you

Alternatively, export them into the shell above your #raw section

e.g.

export MYVAR=$cobbler_var
#raw

ls $MYVAR

#end raw

Stuart
On Mon, 2017-11-20 at 07:57 -0600, Stephen Berg (Contractor, Code 7320) wrote:
> Spinning up on cobbler and running into a glitch that it most likely 
> just a syntax issue.
> 
> I've started by defining a kickstart that is just references to various 
> snippets I want to use.  I then created the snippets, so far so good.  
> The kickstart gets generated but there's a couple variables not being 
> parsed.  I think the issue is my snippets typically are just a section 
> of my kickstarts preceded by "#raw" and trailed by "#end raw".  Is there 
> any way to get variables evaluated when they are inside that raw section?
> 
> I've used ${hostname}, \$(hostname) and $hostname in the snippets and 
> they always show up just like that, I need them to be the actual 
> hostname.  Another one is a variable I define in kickstart metadata 
> using "proptag=123456", we use a six digit local property tag in a few 
> places during kickstart, that variable also isn't getting parsed.
> -- 
> 
> -- 
> *Stephen Berg*
> Systems Administrator
> NRL Code: 7320
> Office: 228-688-5738
> [email protected]
> NRL Logo
> _______________________________________________
> cobbler mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
_______________________________________________
cobbler mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to