There is no limit, but how are you setting $version? Variables in snippet names should work fine (but it should be quoted, ie. $SNIPPET('$version/snippet1))


On Mon, Nov 18, 2013 at 8:38 AM, Madden, Joe <Joe.Madden@mottmac.com> wrote:

Hi all,

 

I have been playing with snippets for some time now and understand the basics and have had it working.

 

The Challenge comes where I am trying to ensure that there are versioning between each version of our common snippets that will allow different profiles to use different versions.

 

I assumed the easiest way to do this would be to only use the subdirectory version of the snippets which would contain a version number, therefore the profile would only ever pick the common snippets from its own version.

 

For Example:

 

Common1                           Common2

Snippet1                              Snippet1

 

Unfortunately when referencing the $version within the $SNIPPET($version/snippet1) is does not work. Is there a maximum number of subdirectories that snippets can be in?

 

Cheers

 

Joe

 


_______________________________________________
cobbler mailing list
cobbler@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/cobbler