summaryrefslogtreecommitdiffstats
path: root/cobbler/collection_distros.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2006-07-12 17:00:49 -0400
committerJim Meyering <jim@meyering.net>2006-07-12 17:00:49 -0400
commitbea30de4beb585b5c79d10c6164e65713f1611bc (patch)
tree435799b37baa464c21e42e622914cbdd8b33276f /cobbler/collection_distros.py
parentf061199e4f8a3ea0e769325e72029ca7d791b206 (diff)
downloadthird_party-cobbler-bea30de4beb585b5c79d10c6164e65713f1611bc.tar.gz
third_party-cobbler-bea30de4beb585b5c79d10c6164e65713f1611bc.tar.xz
third_party-cobbler-bea30de4beb585b5c79d10c6164e65713f1611bc.zip
Added templating support through new --ks_meta option which works like --kopts. The parameter is a space delimited list of key=value pairs, which allows the variables entered to be evaluated through Cheetah. Thus kickstarts are now Cheetah templates. All templating errors are ignored so usage of a $ in a template is still legal where it doesn't reference a variable. Error ignoring should be finer grained and this does need some tests. Currently this only works for kickstarts on filesystems, and I'm not sure what the behavior for http and nfs should be. Anyhow, fairly useful stuff.
Diffstat (limited to 'cobbler/collection_distros.py')
-rw-r--r--cobbler/collection_distros.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/cobbler/collection_distros.py b/cobbler/collection_distros.py
index 9625b58..a687a6b 100644
--- a/cobbler/collection_distros.py
+++ b/cobbler/collection_distros.py
@@ -20,6 +20,9 @@ import cexceptions
class Distros(collection.Collection):
+ def collection_type(self):
+ return "distribution"
+
def factory_produce(self,config,seed_data):
"""
Return a Distro forged from seed_data