From bea30de4beb585b5c79d10c6164e65713f1611bc Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Wed, 12 Jul 2006 17:00:49 -0400 Subject: 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. --- cobbler/cobbler_msg.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cobbler/cobbler_msg.py') 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)", -- cgit