summaryrefslogtreecommitdiffstats
path: root/lib/puppet
Commit message (Collapse)AuthorAgeFilesLines
...
* | Fixing #762. The main problem was that I accepted the patchLuke Kanies2007-11-202-78/+70
| | | | | | | | | | | | in #744 which broke the templates. In the process, I also added test code for the redhat interface provider and rewrote how parsing worked to make it more testable.
* | Using the Environment class to determine the default environment,Luke Kanies2007-11-203-10/+14
| | | | | | | | | | rather than plenty of different places having the logic of how to determine the default environment.
* | The Puppet settings instance now validates environments whenLuke Kanies2007-11-191-2/+4
| | | | | | | | you set an environment.
* | Fixing #911 and #912 -- there's a default environment (development)Luke Kanies2007-11-192-4/+54
| | | | | | | | and you have to specify the valid environments for your site.
* | Fixing a failing test from my fix for #446 -- I had changedLuke Kanies2007-11-191-6/+5
| | | | | | | | | | | | the behaviour of Resource#override_parameter unintentionally. I've corrected the comments so it's clear why the original behaviour was there.
* | Merge commit 'davids-bugfixes/rest/fix-903'Luke Kanies2007-11-191-10/+17
|\ \
| * | Add Exec{ logoutput=> on_failure }David Schmitt2007-11-191-4/+12
| | | | | | | | | | | | | | | This option only writes the output of the command to the log if the command failed.
| * | fix #903: add patch from hrvojehrDavid Schmitt2007-11-171-6/+5
| | | | | | | | | | | | | | | | | | | | | this moves logging of the command in front of failing from unexpected return. This helps very much to debug exec failures. Additionally I removed the unused local variable "loglevel"
* | | Fixing #896 by applying DerekW's patches, with slightLuke Kanies2007-11-193-14/+13
| | | | | | | | | | | | modifications to fit coding style.
* | | Fixing #446. I ended up largely not using porridge's patch,Luke Kanies2007-11-191-21/+34
| | | | | | | | | | | | | | | | | | but only because the code (and my coding style, to some extent) has changed so much in the last few months. Also, added specs.
* | | Merge commit 'davids-bugfixes/tests/fix-cron-tests'Luke Kanies2007-11-191-1/+1
|\ \ \
| * | | fix the underlying dependency on the environment in the cron typeDavid Schmitt2007-11-111-1/+1
| |/ /
* | | Merge commit 'davids-bugfixes/tests/fix-HOME-dependency'Luke Kanies2007-11-191-0/+4
|\ \ \
| * | | fix dependency on $HOME, which causes massive failures when running without ↵David Schmitt2007-11-111-0/+4
| |/ / | | | | | | | | | | | | | | | environment lib/puppet/defaults.rb:10:in `expand_path': couldn't find HOME environment -- expanding `~/.puppet' (ArgumentError)
* | | Reverting the changes I'd made toward removing the globalLuke Kanies2007-11-1915-122/+179
| | | | | | | | | | | | | | | | | | | | | | | | resources. These are commits: c19835ce9f8a5138b30a1a32ca741c996b0916d2 9290cc89a2206fb5204578f8e91208857a48b147 ffb4c2dbc7314b364d25e4f7be599ef05b767b44
* | | Applying fix by Jeff McCune from #905Luke Kanies2007-11-181-0/+4
| | |
* | | Merge commit 'davids-bugfixes/rest/tests-for-872'Luke Kanies2007-11-181-0/+6
|\ \ \
| * | | fix #872: improve property(:content).insync?David Schmitt2007-11-091-0/+6
| |/ / | | | | | | | | | This commit applies ctrlaltdel's patch from trac #872
* | | Merge commit 'davids-bugfixes/rest/fix-815-by-using-main-explicitly'Luke Kanies2007-11-185-12/+6
|\ \ \
| * | | fix #815: add :main to all use() for :reporting and :metricsDavid Schmitt2007-11-094-4/+4
| | | |
| * | | remove obsolete runners variableDavid Schmitt2007-11-091-8/+2
| |/ /
* | | Fixed most failing tests, but there are still over thirty failing.Luke Kanies2007-11-1810-87/+72
| | | | | | | | | | | | | | | | | | At this point, I'm holding the experiment until after the release, so I'm committing this for now and will take it back up after 0.24.0 is out.
* | | Modifying how default resources are created; they are nowLuke Kanies2007-11-153-28/+26
| | | | | | | | | | | | | | | added to the configuration by the master client, rather than by the creating types.
* | | This commit is the first run at removing all globalLuke Kanies2007-11-1311-93/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | references to resources. It deprecates the class-level [] and []= methods, used for so long to provide closure behaviour but now unnecessary with the node configuration's ability to function as a resource container. All of the spec tests pass, but there is much to do to make the test/ tests pass, I expect.
* | | Fixing a parser test -- really, just removing testsLuke Kanies2007-11-132-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | that belong with the AST classes rather than in the parser. Yeah, these tests need to be rewritten. Committed on an airplane. :)
* | | Fixing #800 by refactoring how configurations are retrievedLuke Kanies2007-11-1211-201/+171
| | | | | | | | | | | | | | | | | | | | | | | | | | | from the server. The real problem was getting all of the validation done before any caching, which required a good bit more refactoring than I expected. In actuality, this commit is relatively small even though it covers many files; most of the changes just make the code clearer or shorter.
* | | Moving some compile tests to the spec/ directory, andLuke Kanies2007-11-121-5/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | switching the node scope to no longer be lazy evaluation, just like I switched 'main'. When I made all of these classes and nodes lazy evaluated, I should have decoupled my real goal (using resources to evaluate them) from the idea of lazy-evaluating them, and this basically does that. I also changed the scope heirarchy slightly so that scopes will tend to be below the node scope, altho this was already generally the case.
* | | Changing the 'main' class to no longer be lazy-evaluated.Luke Kanies2007-11-121-0/+2
| | | | | | | | | | | | | | | It was getting evaluated after node classes, which caused even stranger ordering issues.
* | | Adding a memory terminus for facts, which is really only used for testingLuke Kanies2007-11-121-0/+9
| | |
* | | Merge branch 'routing' into test_routingLuke Kanies2007-11-0810-53/+373
|\ \ \ | |/ / |/| |
| * | One significant step closer to getting autotest running properly on the ↵Rick Bradley2007-10-261-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Puppet specs. Created a spec/lib/monkey_patches/ directory for holding patches to RSpec functionality. Extraced 'confine' and 'runnable?' support from the local copy of RSpec (spec/lib/spec/) and now load them from the monkey_patches/ directory. Fixed a bad include in one of the specs. Made it possible for the gem-installed spec binary (which autotest calls) to be used with Puppet. Imported the Autotest::Rspec class, created a PuppetRspec autotest class, added a discovery.rb file for autotest to pick these up. Autotest still has the following problems: * it needs to be run with the proper include path: % ruby -I spec/lib/ `which autotest` * the patterns in our custom autotest handler (puppet_rspec) aren't yet fully specified (they only recognize changes in our spec files, not changes in the puppet libs which they are testing)
| * | Merge branch 'master' of git://reductivelabs.com/puppet into routingRick Bradley2007-10-2613-61/+126
| |\ \
| * | | Exceptions on requests are now captured, exceptions are serialized, and ↵Rick Bradley2007-10-233-5/+11
| | | | | | | | | | | | | | | | exception text is passed back via REST.
| * | | Finish serializing successful results (via calls to to_yaml, etc.) for REST ↵Rick Bradley2007-10-233-4/+12
| | | | | | | | | | | | | | | | handlers. Refactor request building in REST handler specs.
| * | | REST handlers now properly returning 200 status on success.Rick Bradley2007-10-232-3/+3
| | | |
| * | | Merge branch 'master' of git://reductivelabs.com/puppet into routingRick Bradley2007-10-2318-84/+413
| |\ \ \
| * \ \ \ Merge branch 'master' of git://reductivelabs.com/puppet into routingRick Bradley2007-10-2226-33/+873
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: spec/unit/indirector/indirection.rb
| * | | | | More specs, fleshing out the returns from RESTRick Bradley2007-10-173-2/+15
| | | | | |
| * | | | | Argument passing now supported on {webrick,mongrel}+REST.Rick Bradley2007-10-163-4/+20
| | | | | |
| * | | | | Make the actual runtime be more robust when mongrel is not installed.Rick Bradley2007-10-161-1/+4
| | | | | |
| * | | | | Make it possible to run all tests even if mongrel isn't installed. ↵Rick Bradley2007-10-161-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | Shouldn't "confine" produce some output when running spec? Who knows.
| * | | | | Refactoring, argument processing for model methods.Rick Bradley2007-10-163-9/+53
| | | | | |
| * | | | | Tweak to move model lookup functionality into the Handler base class where ↵Rick Bradley2007-10-163-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | it belongs. Robustifying the request sanitization a bit more.
| * | | | | Refactored to use a Handler base class for server+protocol handlers. ↵Rick Bradley2007-10-164-58/+76
| | | | | | | | | | | | | | | | | | | | | | | | Finally eliminated dependency on Puppet.start, etc., from WEBrick HTTP server class. {webrick,mongrel}+REST now support request handling uniformly; need encode/decode next.
| * | | | | Inlined the controller, eliminating a class. Mongrel+REST has the right ↵Rick Bradley2007-10-162-33/+42
| | | | | | | | | | | | | | | | | | | | | | | | bits for request handling prior to the encode/decode/exception-handling bits. Refactored to make the common logic extractable to a base class.
| * | | | | Registration now built for {webrick,mongrel} REST handlers.Rick Bradley2007-10-162-4/+16
| | | | | |
| * | | | | Going back to each server+protocol object being responsible for only one ↵Rick Bradley2007-10-164-14/+10
| | | | | | | | | | | | | | | | | | | | | | | | indirection, as the REST vs. XMLRPC models are different enough that the object must register itself on initialization and handle the request when it comes in.
| * | | | | First pass through initializers of {mongrel, webrick} REST handlers; hooks ↵Rick Bradley2007-10-165-7/+39
| | | | | | | | | | | | | | | | | | | | | | | | into Indirection to look up models from indirected names.
| * | | | | Minor tweaks to make the ::Server initialization a bit more robust. Fail on ↵Rick Bradley2007-10-161-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | unknown HTTP Server types; fail fast.
| * | | | | Finish front end of delegation to server+protocol helper classes ("handlers").Rick Bradley2007-10-156-9/+26
| | | | | |