summaryrefslogtreecommitdiffstats
path: root/cobbler/cobbler_msg.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/cobbler_msg.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/cobbler_msg.py')
-rw-r--r--cobbler/cobbler_msg.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/cobbler/cobbler_msg.py b/cobbler/cobbler_msg.py
index f686f79..550cca7 100644
--- a/cobbler/cobbler_msg.py
+++ b/cobbler/cobbler_msg.py
@@ -15,6 +15,9 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
_msg_table = {
+ "system" : "System",
+ "profile" : "Profile",
+ "distribution" : "Distribution",
"bad_server" : "The 'server' field in /var/lib/cobbler/settings must be set to something other than localhost, or kickstarting features will not work",
"parse_error" : "cobbler could not read %s, replacing...",
"no_create" : "cobbler could not create: %s",
@@ -39,7 +42,7 @@ _msg_table = {
"no_line" : "file '%s' should have a line '%s' somewhere",
"no_dir2" : "can't find %s for %s as referenced in /var/lib/cobbler/settings",
"bad_param" : "at least one parameter is missing for this function",
- "empty_list" : "There are no configured items.",
+ "empty_list" : "There are no configured %s records.",
"err_resolv" : "The system name (%s) did not resolve",
"err_kickstart" : "The kickstart (%s) for item (%s) is not valid",
"err_kickstart2" : "Error while mirroring kickstart file (%s) to (%s)",