[et-mgmt-tools] Looping through possibilities in a "snippet"

Sandor W. Sklar ssklar at stanford.edu
Tue Apr 8 16:11:22 UTC 2008


On Apr 7, 2008, at 11:06 AM, Michael DeHaan wrote:
>
> What if we changed the semantics of...
>
> SNIPPET::foosball
>
> which would now be smart and would pull one of the following,  
> whichever exists first:
>
> /var/lib/cobbler/snippets/system/foosball/$system_name
> /var/lib/cobbler/snippets/profile/foosball/$profile_name
> /var/lib/cobbler/snippets/distro/foosball/$distro_name
> /var/lib/cobbler/snippets/foosball
>
> whichever was found first.
>
> I think this is what you're getting at and could be done fairly  
> cleanly without being package specific.
>
> Of course the stock install would lay down none of these paths  
> except the directories and this would largely be just documented
> if you decide to use it (on the Wiki).

I think that would be perfect!  Thanks!

	-s-





More information about the et-mgmt-tools mailing list