summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit 'plathrop/fix-1228' into 0.24.xLuke Kanies2008-05-191-0/+4
|\
| * Another refactor based on feedback from Luke. This includes adding an ↵Paul Lathrop2008-05-181-0/+4
| | | | | | | | accessor for @@state to make testing a bit cleaner.
* | Refactoring how the provider confine tests work, again.Luke Kanies2008-05-199-70/+174
| | | | | | | | | | | | | | | | | | | | Now each of the test types is a separate subclass of Confine, so that they can have all of their own logging and summarizing behaviour. Also, added a 'feature' type, which can test for the availability of Puppet features (and log their absence more usefully).
* | Modified the 'factpath' setting to automatically configureLuke Kanies2008-05-161-3/+5
| | | | | | | | | | Facter to load facts there if a new enough version of Facter is used.
* | Moving all confine code out of the Provider class, and fixing #1197.Luke Kanies2008-05-154-73/+84
| | | | | | | | | | | | | | | | | | I created a Confiner module for the Provider class methods, and then I enhanced the interface between it and the Confine class to make sure binary paths are searched for fresh each time. This fixes #1197, which was a result of binary paths being searched for at startup, rather than at execution.
* | Switching the Provider class to use the new Confiner class.Luke Kanies2008-05-151-68/+11
| |
* | Moving the 'confine' handling to separate classes.Luke Kanies2008-05-152-0/+117
| |
* | Added the ability to add arbitrary attributes to ldap.Gunnar Wrobel2008-05-152-0/+33
|/ | | | This fixes #1179.
* Merge commit 'ctrlaltdel/ssh-authorized-key' into 0.24.xLuke Kanies2008-05-142-5/+1
|\
| * Cosmetic fixFrancois Deppierraz2008-05-091-2/+1
| |
| * Removed "none" as a valid type attribute value, it was useless anywayFrancois Deppierraz2008-05-091-3/+0
| |
* | Correcting whitespace in the templatewrapper code.Luke Kanies2008-05-131-6/+6
| | | | | | | | Also slightly modified the wording of some of the tests.
* | Adding has_variable? support, fixing ticket #1177Adam Jacob2008-05-131-0/+9
| |
* | Merge branch 'authorized_keys' into 0.24.xLuke Kanies2008-05-122-0/+97
|\|
| * New native ssh_authorized_key typeFrancois Deppierraz2008-05-072-0/+97
| |
* | Adding ldap providers for the user and group type.Luke Kanies2008-05-127-0/+677
| | | | | | | | | | | | These providers use posixAccount and posixGroup. This is a collapsed merge, fwiw.
* | Applying patch by martin to fix #1207.Luke Kanies2008-05-121-1/+1
| | | | | | | | The -o flag is now only used when the uid is being changed.
* | Merge commit 'turnbull/0.24.x' into 0.24.xLuke Kanies2008-05-122-4/+4
|\ \
| * | Fix for urpmi provider that fixes #1217James Turnbull2008-05-111-3/+3
| | |
| * | Fix for ticket #1218 - changed to appropriate variable nameJames Turnbull2008-05-101-1/+1
| |/
* / Clarifying the exception when there's a syntax error but a valid parser.Luke Kanies2008-05-121-1/+1
|/ | | | This is related to #1215.
* Add values for dump parameter for the mount type closing #1212James Turnbull2008-05-051-1/+3
|
* Fixing an error message to be more clearLuke Kanies2008-05-011-1/+1
|
* Fix for ticket #1209James Turnbull2008-04-301-1/+1
|
* Fixed #1196 - added /sbin/service support for the redhat service provider + ↵James Turnbull2008-04-243-11/+28
| | | | some doco fixes
* Pushed patch for #1176 - configtimeout fixJames Turnbull2008-04-192-3/+4
|
* Pushed patch for ticket #1191 - adding globbing support to ports providerJames Turnbull2008-04-191-1/+6
|
* Pushed patch for ticket #1187 - freebsd pkg_add supportJames Turnbull2008-04-191-4/+15
|
* Pushed schema patch for #1193James Turnbull2008-04-172-0/+10
|
* Fixishing some pending tests, including filling inLuke Kanies2008-04-111-2/+2
| | | | the connection information.
* Making the changes necessary to get the REST supportLuke Kanies2008-04-111-8/+8
| | | | | to work with the current state of the indirection work, including using a request object and an expiration date.
* The 'destroy' method in the indirection now returnsLuke Kanies2008-04-111-2/+2
| | | | | the results of destroying, so they can return true or false.
* fill out specs for network_* methods; refactor lowest-level network hooksRick Bradley2008-04-111-4/+8
|
* adding rest_connection_details helper to Indirector::REST -- will need to be ↵Rick Bradley2008-04-111-0/+5
| | | | overridden to lookup the real connection details
* removed a debugging helper from the Indirector::Rest#save methodRick Bradley2008-04-111-3/+1
|
* adding REST save support, with integration tests. A handful of unit tests ↵Rick Bradley2008-04-112-18/+21
| | | | in that area now need to be updated.
* disabling caching for Puppet::Indirector::Indirection as it was causing ↵Rick Bradley2008-04-111-1/+0
| | | | hella problems with testing save without caching; judging my luke's blog this is going to be rewritten somehow anyway
* work-in-progress; playing with refactoring network_* methods inside ↵Rick Bradley2008-04-111-2/+11
| | | | Indirector::REST
* Added support for destroy/DELETE over REST (including units & integrations ↵Rick Bradley2008-04-111-8/+27
| | | | | | | | on both webrick & mongrel). Added pending specs for the trivialities in the REST network_fetch and network_delete methods. Refactored YAML exception detection out into a private helper method.
* making search work over REST, w/ unit & integration specsRick Bradley2008-04-112-4/+2
|
* unit specs and implementation for Indirector::REST#search methodRick Bradley2008-04-111-0/+8
|
* Make mongrel happy like WEBrick.Rick Bradley2008-04-112-7/+4
| | | | Refactored specs to put some of the lower-level find/save/search/destroy unit tests under their own contexts.
* exceptions on remote end now properly passed to local end via REST and ↵Rick Bradley2008-04-111-1/+1
| | | | re-raised (integration-tested)
* Much larger commit than I would like to land at once. This is all ↵Rick Bradley2008-04-115-24/+42
| | | | | | | | | | | | | | | | | | | | | REST-related code. Two specs are failing related to how Mongrel is initialized for REST; will fix those shortly. REST indirector now supports find, with deserialization. Network code in indirector now. Will still need to un-hardwire address/port for outbound connections. Will still need to urlencode path parameters. Code for search, destroy, update is coming, should be similar to find. Reworked how the Handler module is used. Needed to be included, rather than inherited. Needed to sidestep initializers for actual web servers (webrick, mongrel), needed to be possible to have handler-including class be used as a class (aka servlet) instead of as an instance. Webrick handler registration is now abstracted to "above" the servlet. Provided a #model method to use instead of @model in handler module. This allows neutering during testing. Brought class_for_protocol up into http/webrick class as a (tested) class method. Integration tests for rest indirection. Split server integration tests into mongrel and webrick tests. Got Node/REST working properly wrt the crazy-ass autoloader thing. We're now actually passing traffic w/ webrick, fwiw.
* fixing Puppet::Node::REST class name to work with autoloader inflection ↵Rick Bradley2008-04-111-1/+1
| | | | (Puppet::Node::Rest), so we can do Puppet::Node.terminus_class = :rest
* This is the first version where mongrel and webrick are reliably startable ↵Rick Bradley2008-04-116-19/+44
| | | | | | | | | | | | | | | | and stoppable via Puppet::Network::Server. Added a network/server integration spec, testing startup, shutdown, reachability, and collision of webrick and mongrel servers in the new network code. Converted Puppet::Network::HTTP::Handler class to a module, as mongrel Handler should be subclassed; converting subclasses to include the module instead. Mongrel will actually stop if you .stop it, graceful_shutdown didn't seem quite so reliable. Webrick requires running in its own Thread to avoid hanging the entire process; this requires introduction of a Mutex to make things safe. We're only supporting the REST protocol. Made this explicit. Fixed http server setup args, w/ specs, ah the glory of integration testing.
* the indirector will not serve xmlrpc (this is the responsibility of the ↵Rick Bradley2008-04-114-12/+0
| | | | legacy networking code; it was a mistake to include stubbed support for it in the new code); removing
* removing obsolete TODO commentRick Bradley2008-04-111-1/+0
|
* puppet-compliant indentationRick Bradley2008-04-111-22/+22
|
* Resources now return the 'should' value for properties fromLuke Kanies2008-04-111-7/+3
| | | | | | | the [] accessor method (they previously threw an exception when this method was used with properties). This shouldn't have any affect functionally; it just makes the method equivalent to 'should' for properties, but it works for all attribute types now.