summaryrefslogtreecommitdiffstats
path: root/lib/puppet/network
Commit message (Collapse)AuthorAgeFilesLines
...
* | Adding configuration support for XMLRPC handlers.Luke Kanies2008-05-021-7/+37
| | | | | | | | | | | | | | | | | | This provides the interface for configuring backward compatibility in the new-style server code. It requires a completely different configuration step, in that REST and xmlrpc handlers are configured separately, rather than using the same handler names, but this was considered less evil than having a large abstraction layer for specifying how the handlers are related.
* | I think I've now got the Webrick SSL support working.Luke Kanies2008-04-281-2/+2
| | | | | | | | | | Now I just need to get xmlrpc working alongside REST in both mongrel and webrick.
* | Interim commit, since I want to work but have no network available.Luke Kanies2008-04-281-16/+23
| |
* | Merge branch '0.24.x'Luke Kanies2008-04-212-3/+4
|\| | | | | | | | | | | Conflicts: bin/puppetca
| * Pushed patch for #1176 - configtimeout fixJames Turnbull2008-04-192-3/+4
| |
* | Fixing whitespace problems.Luke Kanies2008-04-151-18/+18
| |
* | Adding the necessary tests for webrick to have logging andLuke Kanies2008-04-151-1/+73
| | | | | | | | | | ssl. The tests can't be completed until the certificate work is all done.
* | Merge branch '0.24.x'Luke Kanies2008-04-118-81/+102
|\| | | | | | | | | | | Conflicts: spec/unit/network/server.rb
| * adding REST save support, with integration tests. A handful of unit tests ↵Rick Bradley2008-04-111-4/+8
| | | | | | | | in that area now need to be updated.
| * making search work over REST, w/ unit & integration specsRick Bradley2008-04-111-1/+1
| |
| * 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-114-22/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * 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
| |
* | Merge branch '0.24.x'Luke Kanies2008-04-114-257/+11
|\|
| * Modified the 'master' handler to use the Catalog class toLuke Kanies2008-04-112-201/+4
| | | | | | | | | | | | | | | | | | | | compile node configurations, rather than using the Configuration handler, which was never used directly. I removed the Configuration handler as a result. Modified the 'master' handler (responsible for sending configurations to clients) to always return Time.now as its compile date, so configurations will always get recompiled.
| * Removed the code from the client that tries to avoid recompilingLuke Kanies2008-04-101-56/+2
| | | | | | | | | | | | the catalog. The client will now always recompile, assuming it can reach the server. It will still use the cached config if there's a failure.
| * Better fix for #1020James Turnbull2008-04-011-0/+5
| |
| * Revert "Added updated fix for #1020"James Turnbull2008-04-011-5/+1
| | | | | | | | This reverts commit 4f8df9803a9ad2f31d3e86418732a230b5cee3f3.
| * Added updated fix for #1020James Turnbull2008-03-311-1/+5
| |
* | Merge branch 'master' into master_no_global_resourcesLuke Kanies2008-03-3113-139/+104
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: lib/puppet/node/catalog.rb lib/puppet/type/pfile.rb lib/puppet/type/pfilebucket.rb lib/puppet/util/filetype.rb spec/unit/node/catalog.rb spec/unit/other/transbucket.rb spec/unit/ral/provider/mount/parsed.rb spec/unit/ral/types/file.rb spec/unit/ral/types/interface.rb spec/unit/ral/types/mount.rb spec/unit/ral/types/package.rb spec/unit/ral/types/schedule.rb spec/unit/ral/types/service.rb test/language/compile.rb test/language/lexer.rb test/language/snippets.rb test/lib/puppettest.rb test/ral/types/basic.rb test/ral/types/cron.rb test/ral/types/exec.rb test/ral/types/file.rb test/ral/types/file/target.rb test/ral/types/filebucket.rb test/ral/types/fileignoresource.rb test/ral/types/filesources.rb test/ral/types/group.rb test/ral/types/host.rb test/ral/types/parameter.rb test/ral/types/sshkey.rb test/ral/types/tidy.rb test/ral/types/user.rb test/ral/types/yumrepo.rb
| * | Merge branch '0.24.x'Luke Kanies2008-03-258-19/+39
| |\| | | | | | | | | | | | | | | | | | | | | | Conflicts: install.rb lib/puppet/defaults.rb man/man8/puppet.8
| | * Disabling http keep-alive as a means of preventing #1010.Luke Kanies2008-03-242-9/+21
| | | | | | | | | | | | | | | | | | | | | There is now a constant in Puppet::Network::HttpPool that will disable or enable this feature, but note that we determined that it can cause corruption, especially in file serving (but it's client-side corruption).
| | * Found all instances of methods where split() is used withoutLuke Kanies2008-03-215-9/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | any local variables and added a local variable -- see http://snurl.com/21zf8. My own testing showed that this caused memory growth to level off at a reasonable level. Note that the link above says the problem is only with class methods, but my own testing showed that it's any method that meets these criteria. This is not a functional change, but should hopefully be the last nail in the coffin of #1131.
| | * tweak the (already applied) patch in ↵Sam Quigley2008-03-201-1/+1
| | | | | | | | | | | | 388cf7c3df7ce26e953949ed6fe63d76cbbb3691 to resolve #1137; also, add tests which detect the problem.
| * | Merge branch '0.24.x'Luke Kanies2008-03-203-61/+4
| |\|
| | * Removing obsolete code from the fileserving handler.Luke Kanies2008-03-181-49/+0
| | | | | | | | | | | | This was obsoleted in 0.24.2.
| | * Regression in :node_name functionalityJohn Ferlito2008-03-141-0/+2
| | | | | | | | | | | | When :node_name="cert" is specified the 'hostname' fact should be set to the SSL certificate common name instead of the results from facter. I've extended this to also set 'domain' and 'fqdn' since that makes a lot of sense to me. This fixes a regression introduced in SVN#1673
| | * Fixing #1118 -- downloading plugins and facts now ignores noop.Luke Kanies2008-03-131-12/+2
| | | | | | | | | | | | | | | | | | Note that this changes the behaviour a bit -- the resource's noop setting always beats the global setting (previously, whichever was true would win).
| * | Merge branch '0.24.x'Luke Kanies2008-03-053-7/+10
| |\|
| | * Applying patch by DavidS to fix #1083.Luke Kanies2008-03-031-2/+2
| | |
| | * Fixing a test that changed the environment for all later tests,Luke Kanies2008-02-291-5/+6
| | | | | | | | | | | | thus breaking some of them.
| | * Fixing #1101 -- puppetrun works again.Luke Kanies2008-02-281-0/+2
| | |
| * | Merge branch '0.24.x'Luke Kanies2008-02-256-53/+34
| |\|
| | * Making a couple of other small fixes, requiringLuke Kanies2008-02-232-0/+4
| | | | | | | | | | | | | | | classes that were not being required in the right order.
| | * Merge commit 'turnbull/0.24.x' into 0.24.xLuke Kanies2008-02-231-2/+4
| | |\
| | | * Fixes #1078 and includes new testJames Turnbull2008-02-231-2/+4
| | | |
| | * | Somewhat refactored fileserving so that it no longer cachesLuke Kanies2008-02-233-51/+26
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | any objects, nor does it use Puppet's RAL resources. In the process, I fixed #894 (you can now copy links) and refactored other classes as necessary. Mostly it was fixing tests. This is a squashed commit of a temporary branch, fwiw, and it also includes any fixes to the tests that were necessary to get all tests passing again.
| * | Merge branch '0.24.x'Luke Kanies2008-02-123-4/+20
| |\| | | | | | | | | | | | | | | | Conflicts: CHANGELOG
| | * Applying patch by Jay to fix #989 -- missing crl files areLuke Kanies2008-02-071-2/+2
| | | | | | | | | | | | | | | correctly ignored, and you now use 'false' instead of 'none' to explicitly ignore them.
| | * Fixing #995 -- puppetd no longer dies at startup if theLuke Kanies2008-01-191-1/+12
| | | | | | | | | | | | server is not running.
| | * Wrapping the Resolv call in the mongrel server so if itLuke Kanies2008-01-191-1/+6
| | | | | | | | | | | | fails it doesn't kill the server.
| * | Merge branch 'routing'Luke Kanies2008-01-011-0/+2
| |\ \ | | |/ | |/|
| | * tweaking spec language; require Puppet::Network::HTTP class since it is ↵Rick Bradley2007-12-071-0/+2
| | | | | | | | | | | | referenced by Puppet::Network::Server
* | | Another round of fixes toward making global resources work.Luke Kanies2008-01-092-10/+5
| | | | | | | | | | | | | | | | | | The only remaining failures are more complicated ones (which I'll need to not be on a plane to debug, for battery reasons) or those related to the broken directory_service providers.
* | | Lots o' bug-fixes toward getting rid of global resources.Luke Kanies2008-01-081-2/+5
|/ / | | | | | | | | | | We still have about 60 failing tests, but some of them are the failing directory service tests (probably 20 or so), and most are simple fixes to the tests themselves.
* | Updating an exception message a bit.Luke Kanies2007-12-211-1/+1
| |