Joseph Boyer Jr. wrote:
> For instance...
>
> I want on kick start profile but to have my post install different for each 
> profile. Thus I want to have the kick start template nave the entry
>
> Snippet:postinstall
>
> And then have postinstall do a conditional statement.
>
> If myproile = fc9
>   Postinstall-fc9
> Elif myprofile = rhel5
>     Postinstall-rhle
> End if
>
> Does this work?
>
> Joseph Boyer Jr
> Enterprise Technology Services
> Liquidnet Holdings, Inc.
> [EMAIL PROTECTED]
> T   +1 646.660.8352
> C   +1 646.284.8394
>
>   
It should with Dan G's latest patches which have been applied to devel. 
I have not tested this yet. That was one of the main goals.

However you don't have to do the SNIPPET::postinstall-fc9 and 
SNIPPET:postinstall-rhel trick with all of the if statements. This is 
already built into Cobbler.

All you really need to do is have a SNIPPET::postinstall-generic and 
SNIPPET::postinstall-specific and use the "Advanced Snippets" feature to 
replace the snippet based on the profile name. 
/var/lib/cobbler/snippets/per_profile/

See "Advanced Snippets" here: 
https://fedorahosted.org/cobbler/wiki/KickstartSnippets

--Michael





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

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

Reply via email to