[PATCH] Setup to create a separate cobbler-puppet pacakge for enabling cobbler as a puppet external node.
by Greg Swift
Hi all. This is a patch I put together that might be useful for letting
puppet access cobbler using the ext-nodes script without having to move
files (binary and config) from your cobbler server to install on your puppet
server, most specifically with an RPM. I made the script search for the
config file, so that should help make it work in several use cases.
I'm using this script in my environment now, and seems to be more than
adequate, however this is just one use case.
-greg
13 years
[PATCH] import modules
by James Cammarata
Tested against Fedora {11..14}-{i386,x86_64} so far, one minor issue
but it was in F11 so I doubt anyone would notice. Just merged master
into my feature branch (import-modules) on github so if anyone wants
to help test imports feel free.
https://github.com/jimi1283/cobbler/commit/3df2746ef3d3f6e9146d0a8c8c1352...
This seems to be getting pretty solid, so more help testing would be
appreciated. I'm going to grab some Centos 4 and 5 DVDs next, but
probably just the most recent (4.8/5.5) for both i386/x86_64 and test
those. So, if anyone has old Centos or any RHEL versions (I don't
have the RHEL isos at home where I do devel), that's where I'm looking
for testing help.
Once I get Centos tested, I'll start working on fixing VMware (ESX and
ESXi) support, and I'll start looking for the Ubuntu stuff too.
Enjoy!
13 years, 1 month
[PATCH] Modification to generic_edit template so that the name field is not a text box when editing
by James Cammarata
Available via my github:
commit 6a5032061d593d61a9aa81162be77fa75fc60f9a
Author: James Cammarata <jimi(a)sngx.net>
Date: Wed Feb 16 18:28:23 2011 -0600
Modification to generic_edit template so that the name field is
not a text box when editing.
If this value is changed during a normal edit, an error is
generated during save
indicating the object no longer exists, which is not exactly user-friendly.
13 years, 2 months
Would a distrosync command be a good idea?
by Jonathan Underwood
Hi,
I have been thinking about how best to set up a cobbler server for
deploying the Scientific Linux 6 rolling release, but this applies to
any situation where a distribution is actually a moving target, for
example rawhide. As far as I can make out a "cobbler reposync" will
only re-sync repositories, and not imported distributions. I think it
would be useful to have a distrosync command which allowed for the
re-syncing of an imported distribution (obviously only for distros
imported from a network resource rather than a DVD) . A brief glance
over the code makes me realize the source URL isn't presently stored
for distros. Before I put any more time into researching this and
coming up with a patch - is this functionality desirable, or have I
missed something quite obvious in the current capabilities of cobbler?
Thanks,
Jonathan (quite new to cobbler)
13 years, 2 months
[PATCH] fix kickstart_done template for esxi
by Jonathan Sabo
This changes up the commands used based on VMware osversion. Stores
the cobbler.ks in /var/log for esxi which has no /root.
diff --git a/snippets/kickstart_done b/snippets/kickstart_done
index 4ff408d..23180a3 100644
--- a/snippets/kickstart_done
+++ b/snippets/kickstart_done
@@ -1,6 +1,7 @@
#set system_name = $getVar('system_name','')
#set profile_name = $getVar('profile_name','')
#set breed = $getVar('breed','')
+#set os_version = $getVar('os_version','')
#set srv = $getVar('http_server','')
#set kickstart = $getVar('kickstart','')
#set run_install_triggers = $str($getVar('run_install_triggers',''))
@@ -15,8 +16,10 @@
#if $pxe_just_once in [ "1", "true", "yes", "y" ]
#if $breed == 'redhat'
#set nopxe = "\nwget
\"http://%s/cblr/svc/op/nopxe/system/%s\" -O /dev/null" % (srv,
system_name)
- #else if $breed == 'vmware'
+ #else if $breed == 'vmware' and $os_version == 'esx4'
#set nopxe = "\ncurl
\"http://%s/cblr/svc/op/nopxe/system/%s\" -o /dev/null" % (srv,
system_name)
+ #else if $breed == 'vmware' and $os_version == 'esxi4'
+ #set nopxe = "\nwget
\"http://%s/cblr/svc/op/nopxe/system/%s\" -O /dev/null" % (srv,
system_name)
#end if
#end if
@@ -24,8 +27,10 @@
#if $kickstart != ''
#if $breed == 'redhat'
#set saveks = "\nwget \"http://%s/cblr/svc/op/ks/%s/%s\"
-O /root/cobbler.ks" % (srv, "system", system_name)
- #else if $breed == 'vmware'
+ #else if $breed == 'vmware' and $os_version == 'esx4'
#set saveks = "\ncurl \"http://%s/cblr/svc/op/ks/%s/%s\"
-o /root/cobbler.ks" % (srv, "system", system_name)
+ #else if $breed == 'vmware' and $os_version == 'esxi4'
+ #set saveks = "\nwget \"http://%s/cblr/svc/op/ks/%s/%s\"
-O /var/log/cobbler.ks" % (srv, "system", system_name)
#end if
#end if
@@ -33,8 +38,10 @@
#if $run_install_triggers in [ "1", "true", "yes", "y" ]
#if $breed == 'redhat'
#set runpost = "\nwget
\"http://%s/cblr/svc/op/trig/mode/post/%s/%s\" -O /dev/null" % (srv,
"system", system_name)
- #else if $breed == 'vmware'
+ #else if $breed == 'vmware' and $os_version == 'esx4'
#set runpost = "\ncurl
\"http://%s/cblr/svc/op/trig/mode/post/%s/%s\" -o /dev/null" % (srv,
"system", system_name)
+ #else if $breed == 'vmware' and $os_version == 'esxi4'
+ #set runpost = "\nwget
\"http://%s/cblr/svc/op/trig/mode/post/%s/%s\" -O /dev/null" % (srv,
"system", system_name)
#end if
#end if
@@ -44,8 +51,10 @@
#if $kickstart != ''
#if $breed == 'redhat'
#set saveks = "\nwget \"http://%s/cblr/svc/op/ks/%s/%s\"
-O /root/cobbler.ks" % (srv, "profile", profile_name)
- #else if $breed == 'vmware'
+ #else if $breed == 'vmware' and $os_version == 'esx4'
#set saveks = "\ncurl \"http://%s/cblr/svc/op/ks/%s/%s\"
-o /root/cobbler.ks" % (srv, "profile", profile_name)
+ #else if $breed == 'vmware' and $os_version == 'esxi4'
+ #set saveks = "\nwget \"http://%s/cblr/svc/op/ks/%s/%s\"
-O /var/log/cobbler.ks" % (srv, "profile", profile_name)
#end if
#end if
@@ -53,8 +62,10 @@
#if $run_install_triggers in [ "1", "true", "yes", "y" ]
#if $breed == 'redhat'
#set runpost = "\nwget
\"http://%s/cblr/svc/op/trig/mode/post/%s/%s\" -O /dev/null" % (srv,
"profile", profile_name)
- #else if $breed == 'vmware'
+ #else if $breed == 'vmware' and $os_version == 'esx4'
#set runpost = "\ncurl
\"http://%s/cblr/svc/op/trig/mode/post/%s/%s\" -o /dev/null" % (srv,
"profile", profile_name)
+ #else if $breed == 'vmware' and $os_version == 'esxi4'
+ #set runpost = "\nwget
\"http://%s/cblr/svc/op/trig/mode/post/%s/%s\" -O /dev/null" % (srv,
"profile", profile_name)
#end if
#end if
13 years, 2 months
[PATCH] first commit for vmware import module
by James Cammarata
Pushed to my github in the import-modules branch:
commit 8826d50ac30f43d372d9bebfefa04432d7e3c6a1
Author: James Cammarata <jimi(a)sngx.net>
Date: Sat Dec 18 10:06:36 2010 -0600
Initial commit for the VMWare import module
* tested against esx4 update 1, which imported successfully
TODO:
* more ESX testing
* ESXi support
* better os_version detection for all of the above
13 years, 2 months
[PATCH] Added manage_rsync option which defaults to 0.
by Andrew Rankin
For your consideration:
This patch creates a manage_rsync option for /etc/cobbler/settings
which allows you to disable management of /etc/rsyncd.conf much like
you can do with dhcp or dns configurations.
Andrew
13 years, 2 months