[PATCH] fix cobbler replication exception
by Jonathan Sabo
After a clean install I was getting exceptions while replicating
saying None type no method info. This fixes that issue.
diff --git a/cobbler/modules/manage_tftpd_py.py
b/cobbler/modules/manage_tftpd_py.py
index 8196368..58b328b 100644
--- a/cobbler/modules/manage_tftpd_py.py
+++ b/cobbler/modules/manage_tftpd_py.py
@@ -26,7 +26,7 @@ from shlex import shlex
import utils
from cexceptions import *
import templar
-
+import clogger
from utils import _
@@ -46,6 +46,8 @@ class TftpdPyManager:
"""
Constructor
"""
+ if logger is None:
+ self.logger = clogger.Logger()
self.logger = logger
self.config = config
self.templar = templar.Templar(config)
13 years, 7 months
[PATCH] [FEAT] Add support to output json for Chef
by Joshua Timberman
This patch's goal is to output management classes as a Chef run_list of roles, and management parameters as attributes. Suitable for passing to chef-client or chef-solo as a JSON attributes file.
http://github.com/jtimberman/cobbler
(default branch, json_output_chef)
--
Opscode, Inc
Joshua Timberman, Technical Evangelist
C: 720.334.RUBY E: joshua(a)opscode.com
13 years, 7 months
[PATCH] fix cobbler check exception in git master
by Jonathan Sabo
diff --git a/cobbler/action_check.py b/cobbler/action_check.py
index 1fe2b45..388c936 100644
--- a/cobbler/action_check.py
+++ b/cobbler/action_check.py
@@ -71,7 +71,7 @@ class BootCheck:
self.check_dnsmasq_bin(status)
self.check_service(status,"dnsmasq")
- mode = self.config.api.get_sync().tftp.what()
+ mode = self.config.api.get_sync().tftpd.what()
if mode == "in_tftpd":
self.check_tftpd_bin(status)
self.check_tftpd_dir(status)
13 years, 7 months
Minor koan and cobbler updates
by James Laska
Greetings,
I'm sending 2 patches for review. These patches were applied to git 'master' branch. I have tested both using installs for Fedora 14 Alpha. However, more testing would be appreciated on the shlex.split() patch.
The first patch updates cobbler/codes.py to add support for installing 'fedora14'
The second patch updates koan/app.py to use shlex.split() instead of the string.split() method. I use write and maintain python scripts that use pykickstart to output valid kickstart files. Pykickstart writes the url line as follows ...
url --url="http://example.org/path/to/install"
As a result, the quotes around the URL were confusing cobbler and causing it to fail while attempting to find the kernel and initrd. It was attempting to download from "http://example.org/path/to/install"/images/pxeboot/vmlinuz. To confirm the pykickstart behavior, take a look at line #121 in pykickstart/commands/method.py [1]. The attached patch uses shlex.split() to properly handle the quotes. There may be a better way to handle this, but I found this worked.
Comments welcome.
Thanks,
James
[1] http://git.fedorahosted.org/git/?p=pykickstart.git;a=blob;f=pykickstart/c...
13 years, 7 months
Patch for $yum_repo_stanza using "breed" for distro
by Michael Hoffman
cobbler-devel list,
I am attaching a patch that I have developed for use with breed "suse"
I am not familiar with debian breed and seed files so was unable to
complete the syntax for this distro. Hopefully some one else more
familiar with debian can help contribute to my patch.
This is also my first time creating any type of patch using git, so if
there is a mistake or I have not created the patch correctly please help
me out.
Thanks,
--
Michael Hoffman
13 years, 8 months