summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Translating the report handler to an indirected model.Luke Kanies2007-10-1314-181/+308
| | | | | | | | | | | I've provided backward compatibility with the old handler. The only terminus type that currently exists for reports is the 'code' terminus, which is used to process reports in the style of the old handler. At some point, we should likely switch at least some of these report types (e.g., 'store') to terminus types.
* Adding version handling through most of the indirection work.Luke Kanies2007-10-127-20/+94
| | | | | | This counts as the first commit where configuration compiling actually uses the caching correctly according to the application model.
* Fixing some small spec failures resulting from test fixes.Luke Kanies2007-10-101-3/+3
| | | | | The problem was in how TransObjects were converted to RAL resources. (Committed while flying over Arkansas.)
* Merge branch 'master' of git://michaelobrien.info/puppet into michaelLuke Kanies2007-10-092-2/+13
|\
| * Merge branch 'parser-absent' of http://marcin.owsiany.pl/tmp/puppet into ↵Michael V. O'Brien2007-10-092-2/+13
| |\ | | | | | | | | | porridge
| | * Somewhat better documentation of the :absent field feature in fileparsing.Marcin Owsiany2007-10-061-1/+3
| | |
| | * Make it apparent that absent fields in a record have a value of :absent, ↵Marcin Owsiany2007-10-061-1/+10
| | | | | | | | | | | | which is different from what appears in a line.
* | | Merge branch 'master' of git://michaelobrien.info/puppet into michaelLuke Kanies2007-10-0953-541/+1025
|\| |
| * | Merge branch 'master' of git://michaelobrien.info/puppetLuke Kanies2007-10-093-3/+74
| |\ \
| | * | Fixed #819. Applied patch provided by matsuu.Michael V. O'Brien2007-10-081-2/+2
| | | |
| | * | Fixed #822. Applied patch provided by DavidS.Michael V. O'Brien2007-10-082-1/+72
| | | |
| * | | All tests should now pass again.Luke Kanies2007-10-0824-143/+429
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the first real pass towards using caching. The `puppet` executable actually uses the indirection work, instead of handlers and such (and man! is it cleaner). Most of this work was a result of trying to get the client-side story working, with correct yaml caching of configurations, which means this commit also covers converting configurations to yaml, which was a much bigger PITA than it needed to be. I still need to write integration tests, and I also need to cover the server-side story of a normal configuration retrieval.
| * | | Adding support for versions and freshness-checkingLuke Kanies2007-10-066-53/+234
| |/ / | | | | | | | | | | | | | | | to the indirection layers. This should hopefully enable the different application models we need in our different executables.
| * | Fixing error thrown when the end of the file is encountered unexpectedlyLuke Kanies2007-10-051-4/+6
| | |
| * | Removing obsolete commentLuke Kanies2007-10-051-3/+0
| | |
| * | Another round of test-fixing around the changes I madeLuke Kanies2007-10-058-77/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | to the configuration system. 'puppet' itself still works, even with -e, but I expect that puppetd and puppetmasterd are broken, and there are still quite a few broken tests because the default fact store can't write but that's the default behaviour for a networked configuration master.
| * | Adding a :code setting for specifying code to runLuke Kanies2007-10-0512-110/+35
| | | | | | | | | | | | | | | | | | | | | | | | instead of a manifest, and removing all of the ambiguity around whether an interpreter gets its own file specified or uses the central setting. Most of the changes are around fixing existing tests to use this new system.
| * | Making "null" the default node source, so nodes are at least created easilyLuke Kanies2007-10-051-6/+7
| | |
| * | This commit is focused on getting the 'puppet' executableLuke Kanies2007-10-0518-141/+190
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to work. As a result, it involves a lot of integration-level testing, and a lot of small design changes to make the code actually work. In particular, indirections can now have default termini, so that configurations and facts default to their code terminus Also, I've removed the ability to manually control whether ast nodes are used. I might need to add it back in later, but if so it will be in the form of a global setting, rather than the previous system of passing it through 10 different classes. Instead, the parser detects whether there are AST nodes defined and requires them if so or ignores them if not. About 75 tests are still failing in the main set of tests, but it's going to be a long slog to get them working -- there are significant design issues around them, as most of the failures are a result of tests trying to emulate both the client and server sides of a connection, which normally would have different fact termini but in this case must have the same terminus just because they're in the same process and are global. The next step, then, is to figure that process out, thus finding a way to make this all work.
| * | Adding the integration tests to the Rakefile for spec,Luke Kanies2007-10-045-37/+52
| |/ | | | | | | | | | | fixing the integration tests, and extending the Classmethods for the indirector so that indirected classes can set the terminus class and cache class.
* | Merge branch 'routing' of http://git.rickbradley.com/puppet into routingLuke Kanies2007-10-0925-186/+376
|\ \
| * | Homing in on a clean separation of concerns for a low-coupling, ↵Rick Bradley2007-10-062-10/+64
| | | | | | | | | | | | high-cohesion "server" model that will handle REST and/or XMLRPC on webrick and/or mongrel.
| * | Trivial tweak on HTTPServer module fileRick Bradley2007-10-051-1/+2
| | |
| * | Moving the webrick/mongrel "servers" over to HTTPServer module instead of ↵Rick Bradley2007-10-0514-75/+147
| | | | | | | | | | | | Server. Using Server as the master class for client connections. Server (former RESTServer) will instantiate the appropriate subclass based upon Puppet configurator setting. There are now tests broken in the network section which I can't seem to figure out yet. Not a happy place to be.
| * | Merge branch 'master' of git://reductivelabs.com/puppet into routingRick Bradley2007-10-0510-101/+164
| |\|
| | * Merge branch 'master' of git://michaelobrien.info/puppetLuke Kanies2007-10-045-5/+58
| | |\
| | | * Fixed #838. Applied patch provided by DavidS to add more robustMichael V. O'Brien2007-10-041-0/+9
| | | | | | | | | | | | | | | | update functionality to the dpkg provider.
| | | * Fixed #837. Added freebsd service provider by trombik.Michael V. O'Brien2007-10-041-0/+46
| | | |
| | | * Fixed #855, but I didn't add any tests.Michael V. O'Brien2007-10-041-2/+0
| | | |
| | | * Fixed #827. Applied a form of the patch provided by porridge andMichael V. O'Brien2007-10-042-3/+3
| | | | | | | | | | | | | | | | wrote a test.
| | * | Adding another test to the ldap node source -- we makeLuke Kanies2007-10-042-3/+15
| | | | | | | | | | | | | | | | | | | | sure we throw an appropriate exception if a parent is specified but we cannot find it.
| | * | Fixing some terminology so some ldap tests are easier to read.Luke Kanies2007-10-041-3/+3
| | | |
| | * | Switching the indirection from using settings for configurationLuke Kanies2007-10-043-90/+88
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to requiring explicit configuration. This means that if you as an application developer want to use a different indirection terminus then you have to specify it; something like: Puppet::Node.terminus_class = :ldap Caches use the same kind of configuration: Puppet::Node.cache_class = :memory Accordingly, I've removed the existing setting definitions from the defaults.rb.
* | | Merge branch 'routing' of http://git.rickbradley.com/puppet into routingLuke Kanies2007-10-05340-631/+411
|\| |
| * | Minor tweaks.Rick Bradley2007-10-042-7/+7
| | |
| * | Allow for multiple REST servers to be active; some terminology changes in ↵Rick Bradley2007-10-042-69/+79
| | | | | | | | | | | | spec; fleshing out more behavior, implementing.
| * | Added .listening to REST server, handle listen states and transitions.Rick Bradley2007-10-042-4/+54
| | |
| * | Spec'd a reset() method for clearing out known routes. Uses the unregister ↵Rick Bradley2007-10-041-0/+16
| | | | | | | | | | | | method so that any hooks there will be run. Probably a violation of YAGNI, but I'm willing to suffer it :-)
| * | Updating first portion of the Network RESTServer spec with example code, ↵Rick Bradley2007-10-042-2/+60
| | | | | | | | | | | | getting the added examples to pass.
| * | Merge branch 'master' of git://reductivelabs.com/puppet into routingRick Bradley2007-10-042-3/+8
| |\|
| | * Attempting to reproduce and fix #829 by applying patch by Paul. I could notLuke Kanies2007-10-042-3/+8
| | | | | | | | | | | | | | | | | | get a test to show the exception, nor could I figure out how the coding bug could have actually had an impact, but it's an innocent-enough fix, so I'm fine applying it.
| * | Merge branch 'master' of git://reductivelabs.com/puppet into routingRick Bradley2007-10-041-0/+3
| |\|
| | * Fixing tests for the Configuration object, since ILuke Kanies2007-10-041-0/+3
| | | | | | | | | | | | added the any_failed? test to Transactions.
| * | Merge branch 'master' of git://reductivelabs.com/puppet into routingRick Bradley2007-10-04336-596/+200
| |\|
| | * Merge branch 'master' of ssh://reductivelabs.com/opt/rl/git/puppetLuke Kanies2007-10-048-133/+35
| | |\
| | | * Merge branch 'master' of ssh://reductivelabs.com/opt/rl/git/puppetLuke Kanies2007-10-03332-444/+131
| | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: lib/puppet/defaults.rb lib/puppet/dsl.rb
| | | * | I finally tracked down the problem that was causing providersLuke Kanies2007-10-037-127/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to sometimes suddenly disappear and thus tests to fail -- Kernel.require was not loading the normal ruby path (e.g., 'puppet/type/cron'), so if someone else loaded that then it would replace the in-memory type with a new one, but that new one couldn't load its own providers, because the Kernel would ignore the providers, thinking they were already loaded. This doesn't fix all of the autoloading problems, but at least we won't suddenly break a ton of tests.
| | | * | Fixing the yaml path so that it is correctlyLuke Kanies2007-10-031-6/+3
| | | | | | | | | | | | | | | | | | | | created for puppetmasterd.
| | * | | Fixing #817, mostly using the patch by DavidS. I couldLuke Kanies2007-10-033-20/+34
| | | |/ | | |/| | | | | | | | | | | | | not directly use the patch because I have refactored too much.
| | * | Removing the Id tags from all of the filesLuke Kanies2007-10-03321-321/+0
| | | |