[PATCH] Changes to action/batch actions at top of generic list pages
by James Cammarata
Pushed to my github:
https://github.com/jimi1283/cobbler/commit/8bc3d5d65cd6164517927f7d64577d...
commit 8bc3d5d65cd6164517927f7d64577dadacc321bd
Author: James Cammarata <jimi(a)sngx.net>
Date: Sun Mar 27 22:40:01 2011 -0500
Changes to action/batch actions at top of generic list pages
* move logic into views, where it belongs
* simplify template code
* change actions/batch actions into drop down select lists
* added/modified javascript to deal with above changes
Basically just getting rid of the UL menus at the top of the generic
list pages and replacing them with 2 drop down lists. I think this is
a lot cleaner and makes future expansion a lot easier.
13 years, 3 months
[PATCH] Use git log's --format option to gather date and sha1
by Todd Zullinger
Rather than parsing the log output, just ask git to give us the
information we want.
---
This mimics the current behavior, but it could be argued that the
committer date, rather than the author date would be a better fit
here. If that's desired, it's trivial to change %ad to %cd in the
format string.
setup.py | 12 +++---------
1 files changed, 3 insertions(+), 9 deletions(-)
diff --git a/setup.py b/setup.py
index 88b2bc8..720224f 100644
--- a/setup.py
+++ b/setup.py
@@ -38,16 +38,10 @@ def gen_build_version():
builddate = time.asctime()
if os.path.exists(".git"):
# for builds coming from git, include the date of the last commit
- cmd = subprocess.Popen(["/usr/bin/git","log","-1"],stdout=subprocess.PIPE)
+ cmd = subprocess.Popen(["/usr/bin/git","log","--format=%H%n%ad","-1"],stdout=subprocess.PIPE)
data = cmd.communicate()[0].strip()
- for line in data.split("\n"):
- if line.startswith("commit"):
- tokens = line.split(" ",1)
- gitstamp = tokens[1].strip()
- if line.startswith("Date:"):
- tokens = line.split(":",1)
- gitdate = tokens[1].strip()
- break
+ if cmd.returncode == 0:
+ gitstamp, gitdate = data.split("\n")
data = {
"gitdate" : gitdate,
"gitstamp" : gitstamp,
--
1.7.4.1
--
Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
When a man says he approves of something in principle, it means he
hasn't the slightest intention of carrying it out in practice.
-- Prince Otto
13 years, 3 months
[PATCH] Make manpage a dependency for sdist Makefile target
by Jonathan Underwood
---
Makefile | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Makefile b/Makefile
index 1df3393..f5ecefc 100644
--- a/Makefile
+++ b/Makefile
@@ -94,7 +94,7 @@ restartservices:
/sbin/service cobblerd restart
/sbin/service httpd restart
-sdist: clean
+sdist: manpage
python setup.py sdist
rpms: clean manpage sdist
--
1.7.1
13 years, 3 months
[PATCH] Fix typo in cobbler man page entry for profile
by Jonathan Underwood
---
docs/cobbler.pod | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/docs/cobbler.pod b/docs/cobbler.pod
index a9274f7..d2a70b1 100644
--- a/docs/cobbler.pod
+++ b/docs/cobbler.pod
@@ -145,7 +145,7 @@ If you're using Red Hat Network, Red Hat Satellite Server, or Spacewalk, you can
A profile associates a distribution to additional specialized options, such as a kickstart automation file. Profiles are the core unit of provisioning and at least one profile must exist for every distribution to be provisioned. A profile might represent, for instance, a web server or desktop configuration. In this way, profiles define a role to be performed.
-B<cobbler profile add --name=string --distro=string [--kickstart=path] [--kopts=string] [--ksmeta=string] [--virt-file-size=gigabytes] [--virt-ram=megabytes] [--virt-type=string] [--virt-cpus=integer] [--virt-path=string] [--virt-bridge=string] [--server-override] [--parent=profile>
+B<cobbler profile add --name=string --distro=string [--kickstart=path] [--kopts=string] [--ksmeta=string] [--virt-file-size=gigabytes] [--virt-ram=megabytes] [--virt-type=string] [--virt-cpus=integer] [--virt-path=string] [--virt-bridge=string] [--server-override] [--parent=profile]>
Arguments are the same as listed for distributions, save for the removal of "arch" and "breed", and with the additions listed below:
--
1.7.1
13 years, 3 months
[PATCH] Fix cobbler man page entry for parent profile option
by Jonathan Underwood
---
docs/cobbler.pod | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/cobbler.pod b/docs/cobbler.pod
index 103229c..a9274f7 100644
--- a/docs/cobbler.pod
+++ b/docs/cobbler.pod
@@ -145,7 +145,7 @@ If you're using Red Hat Network, Red Hat Satellite Server, or Spacewalk, you can
A profile associates a distribution to additional specialized options, such as a kickstart automation file. Profiles are the core unit of provisioning and at least one profile must exist for every distribution to be provisioned. A profile might represent, for instance, a web server or desktop configuration. In this way, profiles define a role to be performed.
-B<cobbler profile add --name=string --distro=string [--kickstart=path] [--kopts=string] [--ksmeta=string] [--virt-file-size=gigabytes] [--virt-ram=megabytes] [--virt-type=string] [--virt-cpus=integer] [--virt-path=string] [--virt-bridge=string] [--server-override]>
+B<cobbler profile add --name=string --distro=string [--kickstart=path] [--kopts=string] [--ksmeta=string] [--virt-file-size=gigabytes] [--virt-ram=megabytes] [--virt-type=string] [--virt-cpus=integer] [--virt-path=string] [--virt-bridge=string] [--server-override] [--parent=profile>
Arguments are the same as listed for distributions, save for the removal of "arch" and "breed", and with the additions listed below:
@@ -205,7 +205,7 @@ For more information on bridge setup, see the Cobbler Wiki, where there is a sec
This is a space delimited list of all the repos (created with "cobbler repo add" and updated with "cobbler reposync") that this profile
can make use of during kickstart installation. For example, an example might be --repos="fc6i386updates fc6i386extras" if the profile wants to access these two mirrors that are already mirrored on the cobbler server. Repo management is described in greater depth later in the manpage.
-=item inherit
+=item parent
This is an advanced feature.
--
1.7.1
13 years, 3 months
Re: [PATCH] Set SELinux context of host ssh keys correctly after reinstallation
by Dominick Grift
https://fedorahosted.org/pipermail/cobbler-devel/2011-March/001950.html
I have been told that snippet discussed above is executed by anaconda.
Allow anaconda to run setfiles (restorecon) in the setfiles_t domain
so that it is allowed to restore contexts of all files even if the
unconfined module is disabled.
Signed-off-by: Dominick Grift <domg472(a)gmail.com>
---
:100644 100644 dd1522d... e2df760... M policy/modules/admin/anaconda.te
policy/modules/admin/anaconda.te | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/policy/modules/admin/anaconda.te b/policy/modules/admin/anaconda.te
index dd1522d..e2df760 100644
--- a/policy/modules/admin/anaconda.te
+++ b/policy/modules/admin/anaconda.te
@@ -27,6 +27,7 @@ libs_domtrans_ldconfig(anaconda_t)
logging_send_syslog_msg(anaconda_t)
seutil_domtrans_semanage(anaconda_t)
+seutil_domtrans_setfiles(anaconda_t)
seutil_domtrans_setsebool(anaconda_t)
userdom_user_home_dir_filetrans_user_home_content(anaconda_t, { dir file lnk_file fifo_file sock_file })
--
1.7.4
13 years, 3 months