Support for puppet initialization and signing
by Jonathan Underwood
This patch series (against the stable branch) adds support for puppet
(re-)registration during machine provision. More specifically, this
adds simple snippets to (i) install puppet; and (ii) generate puppet
certificates and trigger a signing request of those certificates. In
addition, optional modules are provided to (i) revoke old certificates
for a machine prior to reinstallation; and (ii) sign the newly
generated certificate. The latter modules require the puppet master
signing authority (i.e. puppetca) to be running on the same host as
cobbler.
[PATCH 1/9] Add install_pre_puppet.py module
[PATCH 2/9] Add install_post_puppet.py module
[PATCH 3/9] Add configuration of puppet pre/post modules to settings file
[PATCH 4/9] Add snippets/puppet_install_if_enabled
[PATCH 5/9] Add snippets/puppet_register_if_enabled
[PATCH 6/9] Add puppet_auto_setup to settings file
[PATCH 7/9] Add puppet snippets to sample.ks
[PATCH 8/9] Take account of puppet_auto_setup in install_pre_puppet.py
[PATCH 9/9] Take account of puppet_auto_setup in install_post_puppet.py
13 years
cobbler-web and cli inconsistencies for profiles
by Jonathan Underwood
Hi,
Just playing around with the cobbler web interface and the command
line, I see that profiles created via the two different interfaces
aren't the same. In fact, what I did is:
1) First using the cli: "cobbler profile add --name=junk
--parent=SL-EPEL-6-x86_64". At this point issuing "cobbler profile
report --name=junk" gives:
Name : junk
Comment :
DHCP Tag : <<inherit>>
Distribution : <<inherit>>
Enable PXE Menu? : <<inherit>>
Kernel Options : <<inherit>>
Kernel Options (Post Install) : <<inherit>>
Kickstart : <<inherit>>
Kickstart Metadata : <<inherit>>
Management Classes : <<inherit>>
Name Servers : []
Name Servers Search Path : []
Owners : ['admin']
Parent Profile : SL-EPEL-6-x86_64
Red Hat Management Key : <<inherit>>
Red Hat Management Server : <<inherit>>
Repos : <<inherit>>
Server Override : <<inherit>>
Template Files : <<inherit>>
Virt Auto Boot : <<inherit>>
Virt Bridge : <<inherit>>
Virt CPUs : <<inherit>>
Virt File Size(GB) : <<inherit>>
Virt Path : <<inherit>>
Virt RAM (MB) : <<inherit>>
Virt Type : <<inherit>>
2) Now I selected that profile in cobbler web, didn't change a single
setting, but clicked 'save'. Now issuing "cobbler profile report
--name=junk" gives:
Name : junk
Comment :
DHCP Tag : <<inherit>>
Distribution : <<inherit>>
Enable PXE Menu? : False
Kernel Options : {}
Kernel Options (Post Install) : {}
Kickstart : <<inherit>>
Kickstart Metadata : {}
Management Classes : <<inherit>>
Name Servers : []
Name Servers Search Path : []
Owners : ['admin']
Parent Profile : SL-EPEL-6-x86_64
Red Hat Management Key : <<inherit>>
Red Hat Management Server : <<inherit>>
Repos : []
Server Override : <<inherit>>
Template Files : {}
Virt Auto Boot : 0
Virt Bridge : <<inherit>>
Virt CPUs : <<inherit>>
Virt File Size(GB) : <<inherit>>
Virt Path : <<inherit>>
Virt RAM (MB) : <<inherit>>
Virt Type : xenpv
Notice that now the repo list is empty i.e. sub-profiles created in
the cobbler web interface don't inherit repos, whereas they do with
the cli. Furthermore, notice that other settings are now different,
including Virt Type, Virt Auto Boot, etc.
Is this different behaviour expected/by design, or have the cli and
web interfaces diverged somewhat?
Cheers,
Jonathan.
13 years
[PATCH] fixes for webui issues
by James Cammarata
Pushed to my github:
https://github.com/jimi1283/cobbler/commit/41a92b11969ab9c30b749ab99be705...
https://github.com/jimi1283/cobbler/commit/794841821653f8d46257ca743adf17...
commit 794841821653f8d46257ca743adf175977ef3bd3
Author: James Cammarata <jimi(a)sngx.net>
Date: Wed Mar 30 16:43:26 2011 -0500
Fix for django traceback when logging into the web interface with
a bad username and/or password
commit 41a92b11969ab9c30b749ab99be70566cd943093
Author: James Cammarata <jimi(a)sngx.net>
Date: Wed Mar 30 16:42:18 2011 -0500
Fix for snippet/kickstart editing via the web interface, where a
'tainted file path' error was thrown
The solution I came up with for the snippet/kickstart editing issue
was to insert the string 'file:' in front of the file name. This
seems to work well, though I could find no reason why this suddenly
broke (and I'm kind of wondering why it worked in the first place...).
13 years
[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
Cobbler 2.1.0
by Scott Henson
I'd like to officially announce availability of Cobbler 2.1.0 [0]. It
contains a lot of new functionality. The biggest of these changes are
the addition of a bunch of new Distributions that we can manage. I think
most people will find Debian and Ubuntu support to be the most
interesting. Please check the change log and git for all the
particulars. Thanks to all who made this possible. Enjoy.
[0] - http://shenson.fedorapeople.org/cobbler/cobbler-2.1.0.tar.gz
--
Scott Henson
Red Hat CIS Operator
WVU Alum BSAE/BSME
13 years, 1 month
[PATCH] move to WSGI and form-based login and authentication
by James Cammarata
Pushed to my github:
https://github.com/jimi1283/cobbler/commit/07b5da0502a2a00709485f8328171a...
https://github.com/jimi1283/cobbler/commit/be4fc806637cf8cec275fea80b8921...
commit 07b5da0502a2a00709485f8328171a8ea8c2da1e
Author: James Cammarata <jimi(a)sngx.net>
Date: Sat Mar 26 17:39:34 2011 -0500
Initial commit for form-based login and authentication
commit be4fc806637cf8cec275fea80b892182879580eb
Author: James Cammarata <jimi(a)sngx.net>
Date: Sat Mar 26 12:04:01 2011 -0500
Convert webui to use WSGI instead of mod_python
These two commits are co-dependent, since doing basic auth with the
WSGI module is kind of a PITA. I've only tested this on my devel box,
so it really needs to be installed on a clean box to make sure I
didn't miss something. I do a lot of django development on my system,
so it's possible I assumed something was good to go. I also have
django 1.2 on my system, so I may have unwittingly used a newer
language feature even though I tried to avoid doing so.
13 years, 1 month
web UI repo and management class management
by Jonathan Sabo
I've been testing out the git master with all the latest patches. I
have a few questions and some comments. Now that management classes
are objects like distros, profiles, systems should we remove the
management class field in the other objects? The other thing was
about the repo and management class assignment to distros, profiles,
systems. I personally don't like the way that's handled in the web
interface. I would prefer that once a management class has been
assigned to a distro, profile, or system it's no longer an available
in the drop down and I want to be able to select more than one
management class at time when I'm doing the assignment. I would also
prefer that repo's are handled the same way rather than relying on
highlighting to determine if it's selected or not.
Comments?
Thanks,
Jonathan
13 years, 1 month
adding "environment" field for puppet into cobbler external nodes support
by Walker Traylor
Hi Scott - I see you have been making puppet related commits. I would guess you're close to that codebase so I thought I would ask you a random favor.
I'm trying to use the puppet "environments" feature, which is basically a defined per node setting just like parameters. It is supported by the external nodes input feature in puppet, but isn't implemented in cobbler.
Who do I have to buy a beer to get this option added into cobbler?
I looked at the code and it seemed it should be simple to implement so I gave it a whirl by basically copying the mgmt_classes code chunks, but with my limited experience with python and cobbler codebase I gave up after a couple of hours of errors.
For reference: puppet's field expected format:
http://docs.puppetlabs.com/guides/external_nodes.html
About environments:
http://projects.puppetlabs.com/projects/1/wiki/Using_Multiple_Environments
It should be basically just like mgmt_classes, but a string rather than list.
Walker Traylor
Directer of Operations
MOG, Inc.
walker(a)mog.com
703.389.4507
Skype: wtraylor
Request meeting time: http://tungle.me/walkertraylor
Walker Traylor
MOG, Inc.
walker(a)mog.com
703.389.4507
Skype: wtraylor
Request meeting time: http://tungle.me/walkertraylor
13 years, 1 month
[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