summaryrefslogtreecommitdiffstats
path: root/lib/puppet/indirector/yaml
Commit message (Collapse)AuthorAgeFilesLines
* Reorganizing the file structure for indirection terminus types.Luke Kanies2007-10-153-33/+0
| | | | | | | | | | | | | | | | | | | | | | | | Previously, for example, the configuration terminus that was a subclass of 'code' would have been stored at lib/puppet/indirector/code/configuration and would have had to have been named 'configuration'. Now, the subclass can be named however the author prefers, and it must be stored at lib/puppet/indirector/configuration/<name>.rb, where <name> is the name you've chosen for the terminus type. The name only matters insomuch as it is used to load the file from disk and find the appropriate class when asked. The additional restriction is that the class constant for the terminus type must have its name as the last word, and the indirection must be the second to last word. Thus, in our example, we can choose any class constant that ends with Configuration::Code; given that there's only one Configuration class at this point, it makes the most sense to define the class as Puppet::Node::Configuration::Code. This is somewhat awkward, because of the class's location on disk, but the only other real option is to autogenerate a Puppet::Indirector::Configuration class constant, which is, I think, uglier.
* All tests should now pass again.Luke Kanies2007-10-081-0/+18
| | | | | | | | | | | | | | 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 more indirection termini, mostly focused on cachingLuke Kanies2007-09-252-0/+10
| | | | information in yaml.
* It looks like the new indirection setup is complete.Luke Kanies2007-09-211-2/+0
| | | | I only need to port the node indirection termini over.
* Adding automatic association between terminus subclasses andLuke Kanies2007-09-211-0/+7
the indirection they're working with. It looks like I'll be moving terminus registration to the indirection rather than the top-level Indirector.