summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | I'm working on making file serving work in the indirector now, so ILuke Kanies2007-10-185-19/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | added two abilities to the indirections: Models can specify a module to extend the indirection instance with, and indirections will use a :select_terminus method, if it's available, to select the terminus to use for finding. (It's currently only used for finding, not destroying or saving.) The upshot is that a model can have a module that handles terminus selection for it, and then extend its indirection with that module. This will allow me to use the local terminus when the protocol is 'file' and the REST terminus when the protocol is 'puppet'. It should also open the door for other protocols if they become available.
* | | | Renaming the file_serving/{content,metadata} indirectionsLuke Kanies2007-10-186-4/+16
| | | | | | | | | | | | | | | | | | | | | | | | so that they make more sense in the REST API, and creating stub tests for the indirection termini. Now it's on to create the rest of the tests for them.
* | | | This is the first mostly functional commit of theLuke Kanies2007-10-183-196/+237
| | | | | | | | | | | | | | | | | | | | | | | | new file serving structure. The next step is to hook it up to the indirection so we can start writing integration tests to see if we can actually serve up files.
* | | | Oops, forgot this file in my last commit.Luke Kanies2007-10-171-13/+6
| | | | | | | | | | | | | | | | I moved the checksum code to a separate module.
* | | | Adding the first pass at modifying file servingLuke Kanies2007-10-178-0/+593
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to work with indirection. I've split the fileserver handler into four pieces: Mount (which so far I've just copied wholesale), Configuration (responsible for reading the configuration file and determining what's allowed), Metadata (retrieves information about the files), and Content (retrieves the actual file content). I haven't added the indirection tests yet, and the configuration tests are still all stubs.
* | | Reorganizing the file structure for indirection terminus types.Luke Kanies2007-10-1518-25/+55
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Fixing failing tests, including making the debian serviceLuke Kanies2007-10-131-1/+1
| | | | | | | | provider test work on non-Debian platforms.
* | Translating the report handler to an indirected model.Luke Kanies2007-10-138-73/+118
| | | | | | | | | | | | | | | | | | | | | | 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-124-9/+27
|/ | | | | | This counts as the first commit where configuration compiling actually uses the caching correctly according to the application model.
* Merge branch 'master' of git://michaelobrien.info/puppet into michaelLuke Kanies2007-10-091-1/+3
|\
| * Merge branch 'parser-absent' of http://marcin.owsiany.pl/tmp/puppet into ↵Michael V. O'Brien2007-10-091-1/+3
| |\ | | | | | | | | | porridge
| | * Somewhat better documentation of the :absent field feature in fileparsing.Marcin Owsiany2007-10-061-1/+3
| | |
* | | Merge branch 'master' of git://michaelobrien.info/puppet into michaelLuke Kanies2007-10-0922-177/+299
|\| |
| * | Merge branch 'master' of git://michaelobrien.info/puppetLuke Kanies2007-10-092-3/+3
| |\ \
| | * | 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-081-1/+1
| | | |
| * | | All tests should now pass again.Luke Kanies2007-10-0810-52/+162
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-063-12/+50
| |/ / | | | | | | | | | | | | | | | 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-054-49/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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-054-32/+8
| | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | This commit is focused on getting the 'puppet' executableLuke Kanies2007-10-057-36/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-041-0/+8
| |/ | | | | | | | | | | fixing the integration tests, and extending the Classmethods for the indirector so that indirected classes can set the terminus class and cache class.
* | 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-056-44/+71
| | | | | | | | 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-057-48/+95
|\|
| * Merge branch 'master' of git://michaelobrien.info/puppetLuke Kanies2007-10-044-4/+56
| |\
| | * 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-041-2/+1
| | | | | | | | | | | | wrote a test.
| * | Adding another test to the ldap node source -- we makeLuke Kanies2007-10-041-2/+5
| | | | | | | | | | | | | | | sure we throw an appropriate exception if a parent is specified but we cannot find it.
| * | Switching the indirection from using settings for configurationLuke Kanies2007-10-042-42/+34
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Minor tweaks.Rick Bradley2007-10-041-1/+1
| |
* | Allow for multiple REST servers to be active; some terminology changes in ↵Rick Bradley2007-10-041-21/+23
| | | | | | | | spec; fleshing out more behavior, implementing.
* | Added .listening to REST server, handle listen states and transitions.Rick Bradley2007-10-041-0/+15
| |
* | Updating first portion of the Network RESTServer spec with example code, ↵Rick Bradley2007-10-041-0/+18
| | | | | | | | getting the added examples to pass.
* | Merge branch 'master' of git://reductivelabs.com/puppet into routingRick Bradley2007-10-041-2/+2
|\|
| * Attempting to reproduce and fix #829 by applying patch by Paul. I could notLuke Kanies2007-10-041-2/+2
| | | | | | | | | | | | 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-04187-360/+60
|\|
| * Merge branch 'master' of ssh://reductivelabs.com/opt/rl/git/puppetLuke Kanies2007-10-044-118/+5
| |\
| | * Merge branch 'master' of ssh://reductivelabs.com/opt/rl/git/puppetLuke Kanies2007-10-03186-223/+40
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: lib/puppet/defaults.rb lib/puppet/dsl.rb
| | * | I finally tracked down the problem that was causing providersLuke Kanies2007-10-033-112/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-032-20/+15
| | |/ | |/| | | | | | | | | | not directly use the patch because I have refactored too much.
| * | Removing the Id tags from all of the filesLuke Kanies2007-10-03179-179/+0
| | |
| * | Merge branch 'master' of git://michaelobrien.info/puppetLuke Kanies2007-10-031-3/+1
| |\ \
| | * | Fixed #854.Michael V. O'Brien2007-10-031-3/+1
| | | |
| * | | Fixing #813 -- empty configurations again work.Luke Kanies2007-10-031-2/+3
| |/ /