(devel) Duplicate IP/MAc prevention on "copy" (CLI fixed)
by Michael DeHaan
I've updated the CLI in git to clear out IP/MAC/hostname fields when
copying an object.
Currently the web app does /not/ have this behavior since we're a bit
short on time and trying to get a release out.
Ultimately the web app is going to need some javascript to clear those
fields when someone selects the "copy" box. We can look at this for the
next release.
--Michael
15 years, 4 months
[PATCH] is_selinux_enabled returns false if selinuxenabled command doesn't exist
by Kevin James
Another SuSE-related patch. As SuSE doesn't use SELinux,
the /usr/sbin/selinuxenabled command isn't there. This patch makes
is_selinux_enabled return false if it can't find the command.
---
cobbler/utils.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/cobbler/utils.py b/cobbler/utils.py
index 64ad96b..5bbacdd 100644
--- a/cobbler/utils.py
+++ b/cobbler/utils.py
@@ -1228,6 +1228,8 @@ def safe_filter(var):
raise CX("Invalid characters found in input")
def is_selinux_enabled():
+ if not os.path.exists("/usr/sbin/selinuxenabled"):
+ return False
args = "/usr/sbin/selinuxenabled"
selinuxenabled = sub_process.call(args,close_fds=True)
if selinuxenabled == 0:
--
1.5.6
--
Kevin James
Applied Technology Senior Strategist
Novell Global Enablement
------------------------
Novell, Inc.
http://www.novell.com
15 years, 4 months
[PATCH] Changed Makefile so that sdist target will make documentation too
by Kevin James
Hi all,
Following Michael's comments yesterday, I was trying to use "make" to
generate the tarball, as this process would generate the missing
documentation files. This worked, but would also try and generate the
RPM and SRPM. I just wanted the tarball (as I build the RPMs for
multiple distros elsewhere), so I looked at the Makefile and found the
sdist target, which looks like it's responsible for creating the
tarball. Calling "make sdist" didn't work for me, as it didn't generate
the documentation files, so here's a patch to make the sdist target
generate said documentation before creating the tarball.
Thought I'd start off nice and simple, to make sure I've got the process
right. Is this the correct way (and format) for patch submission?
Cheers,
KEv.
---
Makefile | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Makefile b/Makefile
index d562462..2f06181 100644
--- a/Makefile
+++ b/Makefile
@@ -85,7 +85,7 @@ restartservices:
/sbin/service cobblerd restart
/sbin/service httpd restart
-sdist: clean updatewui
+sdist: clean manpage updatewui
python setup.py sdist
#messages: cobbler/*.py
--
1.5.6
--
Kevin James
Applied Technology Senior Strategist
Novell Global Enablement
------------------------
Novell, Inc.
http://www.novell.com
15 years, 4 months
Cobbler Reposync
by Joshua Baldock
Hi,
I have configured some extra local repo's on the same server as my cobbler server. I have my repo structure all laid out how I would like.
After adding the repo by using the cobbler webui, I then run "cobbler reposync" from the command line. This command complete successfully reporting that it has created the .repo file however my repo folder structure has been removed, so when the .repo file points to the locations there is no longer a repository there?
I find this behaviour quite odd and would like to know if others have had the same issue, or if there is something I am missing?
Cheers,
Joshua Baldock
IT Operations
Optiver Australia Pty Ltd
Direct: 02 9275 6035
Switch: 02 9275 6000
Fax: 02 9275 6150
www.optiver.com.au<http://www.optiver.com.au>
________________________________
Information contained in this communication (including any attachments) is confidential and may be privileged or subject to copyright. If you have received this communication in error you are not authorised to use the information in any way and Optiver requests that you notify the sender by return email, destroy all copies and delete the information from your system. Optiver does not represent, warrant or guarantee that this communication is free from computer viruses or other defects or that the integrity of this communication has been maintained. Any views expressed in this communication are those of the individual sender. Optiver does not accept liability for any loss or damage caused directly or indirectly by this communication or its use.
Please consider the environment before printing this email.
15 years, 4 months
Python 2.4 needed for 1.3?
by Adam Leach
I just built 1.3.4-1 from the src rpm and it built fine. I then went to
install it and on startup it says:
ImportError: No module named subprocess
I see that subprocess was introduced in Python 2.4...is this required for
cobbler 1.3?
Thanks
--
Adam Leach
BS Computer/Electrical Engineering
West Virginia University
Systems Administrator - Raytheon
(304)677-4455
15 years, 4 months
None
by Nikos Zaharioudakis
??? hb?????? ??$$$&&$$$$$$$$$$$$$$$$$$$$$$
Sent from my iPhone
15 years, 4 months
Re: index e5d258a..692eafd 100644
by Kevin James
Sorry about that - still getting the hang of this git-send-email thing..
The patch was for cobbler.spec, and is supposed to be so that a tarball
of the git repository can be built into an RPM using just the spec file.
Further conversations have led me to discover that with a checkout of
the repository I can do a "make" to generate a tarball that has these
files built, but I didn't know that at the time :)
Cheers,
KEv.
On Wed, 2008-12-17 at 19:02 +0000, kjames(a)novell.com wrote:
> %build
> +pod2man --center="cobbler" --release="" ./docs/cobbler.pod | gzip -c > ./docs/cobbler.1.gz
> +pod2html ./docs/cobbler.pod > ./docs/cobbler.html
> %{__python} setup.py build
>
> %install
> _______________________________________________
> cobbler mailing list
> cobbler(a)lists.fedorahosted.org
> https://fedorahosted.org/mailman/listinfo/cobbler
--
Kevin James
Applied Technology Senior Strategist
Novell Global Enablement
------------------------
Novell, Inc.
http://www.novell.com
15 years, 4 months
index e5d258a..692eafd 100644
by Kevin James
%build
+pod2man --center="cobbler" --release="" ./docs/cobbler.pod | gzip -c > ./docs/cobbler.1.gz
+pod2html ./docs/cobbler.pod > ./docs/cobbler.html
%{__python} setup.py build
%install
15 years, 4 months