summaryrefslogtreecommitdiffstats
path: root/lib/puppet/network
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixing #807. The exception handling should more closely resemble how it ↵Luke Kanies2007-09-061-1/+3
| | | | used to be done.
* Flipped the switch so that compiles now return a Configuration instance ↵Luke Kanies2007-09-042-4/+15
| | | | instead of pre-extracting the configuration.
* Deleting old documentation that somehow made it back into the tree in the ↵Luke Kanies2007-09-012-4/+0
| | | | switch to git, and refactoring the evaluate_classes method on the compile object so I can use resources as intermediaries, thus making classes do late-binding evaluation.
* Making a couple of small bugfixes in the configuration subsystemLuke Kanies2007-08-271-0/+5
|
* Multiple environment support now works, and I have even tested it in real ↵Luke Kanies2007-08-261-2/+6
| | | | life. This commit is mostly a bug-fix commit, resulting from the difference between real-life testing and unit testing.
* The fileserver now uses an environment-specific module path. I also made ↵Luke Kanies2007-08-265-20/+56
| | | | various bug fixes around the network tree.
* Everything up to the parser (and the Modules) is ready to support multiple ↵Luke Kanies2007-08-232-9/+13
| | | | environments, including the parser having an environment setting. I have also created my first spec-based tests, for the interpreter (and deleted the old test/unit tests).
* Adding environment information to the client fact list. The environment is ↵Luke Kanies2007-08-221-0/+3
| | | | retrieved from the normal Puppet configuration, so it is set via puppet.conf or the cli, rather than being a normal fact.
* The last commits before I actually start on the multi-environment support. ↵Luke Kanies2007-08-222-63/+23
| | | | There are still failing tests, but apparently only those that are also failing in trunk.
* Adding the topscope metadata to the configuration being returned to the ↵Luke Kanies2007-08-221-2/+2
| | | | client, just like it expects, and fixing how the resource handler calls the master type.
* A round of bugfixing. Many more tests now pass -- I think we are largely ↵Luke Kanies2007-08-204-11/+16
| | | | down to tests that (yay!) fail in trunk.
* The first pass where at least all of the snippet tests pass. I have ↵Luke Kanies2007-08-202-137/+62
| | | | unfortunately had to stop being so assiduous in my rewriting of tests, but I am in too much of a time crunch to do this "right". The basic structure is definitely in place, though, and from here it is a question of making the rest of the tests work and hopefully writing some sufficient new tests, rather than making the code itself work.
* Adding node caching, so that node sources are not spammed during file ↵Luke Kanies2007-08-151-0/+23
| | | | serving and such
* Keeping the node names in the node object, so that they are available to the ↵Luke Kanies2007-08-151-1/+2
| | | | interpreter
* Refactoring a small part of the interface between the configuration handler ↵Luke Kanies2007-08-151-4/+6
| | | | and the interpreter.
* The new configuration handler looks to be ready for usage. Now I just need ↵Luke Kanies2007-08-151-157/+133
| | | | to convert the interpreter to use SimpleNode objects, then continue with the Configuration object.
* Adding the necessary name/ip fields to the node methodsLuke Kanies2007-08-151-10/+10
|
* Finalizing the node handler. It now correctly uses the different node sourcesLuke Kanies2007-08-141-42/+136
| | | | | and knows how to retrieve data from those sources. Now I just need to fix the language stuff to use this handler instead of the existing node stuff.
* An intermediate commit in the work towards adding multi-environment support.Luke Kanies2007-08-142-0/+372
| | | | | | | | This has required splitting the interpreter up considerably, which is much cleaner but is a large project. There is now a 'nodes' handler, but it is currently non-functional, although all the support structure is there. It just needs to have the individual methods fleshed out, and it needs to be connected to the 'facts' handler.
* Removing extraneous debugging from crontabluke2007-08-102-8/+32
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2768 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding test support for the other mongrel configuration headerluke2007-08-061-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2752 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding the requirement that the cert dn have /CN= in it, thus hopefully ↵luke2007-07-301-1/+1
| | | | | | catching clients without certs git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2728 980ebf18-57e1-0310-9a29-db15c13687c0
* Applying a modification of the patch from Marcin Owsiany, allowing Mongrel ↵luke2007-07-301-1/+1
| | | | | | to be a CA git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2727 980ebf18-57e1-0310-9a29-db15c13687c0
* Having FileType instances automatically back their contents up to a ↵luke2007-07-111-1/+1
| | | | | | filebucket, so it is much harder to lose content. This does not yet back up crontab contents, though. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2679 980ebf18-57e1-0310-9a29-db15c13687c0
* Always setting a to_s value in authstore, so we do not get dumped objectsluke2007-07-101-0/+4
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2673 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding benchmark info to fact retrieval in the config clientluke2007-07-101-1/+4
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2671 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #621 -- plugins are now downloaded directly into the $libdir, and ↵luke2007-07-101-5/+7
| | | | | | autoload looks for them there. You can now easily download any reloadable file to your clients. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2669 980ebf18-57e1-0310-9a29-db15c13687c0
* Applying patch by David Schmitt from #701.luke2007-07-081-2/+9
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2661 980ebf18-57e1-0310-9a29-db15c13687c0
* Making sure that #686 is fixed -- I specifically included the Daemon module ↵luke2007-07-081-0/+2
| | | | | | in the Puppet mongrel server, and I call daemonize on the Puppet class, rather than the Mongrel http server git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2659 980ebf18-57e1-0310-9a29-db15c13687c0
* Hopefully fixing #685 -- I added a wrapper around the call to getconfig(), ↵luke2007-07-081-2/+6
| | | | | | so any timeouts will just throw an error and skip the run, rather than failing and killing the daemon. This is not the best approach, since really, each method should be wrapped, but it is sufficient. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2658 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing logging of module mounts; it was using the module as the name, rather ↵luke2007-07-061-2/+2
| | | | | | than the module name git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2653 980ebf18-57e1-0310-9a29-db15c13687c0
* Removing extraneous debuggingluke2007-07-061-3/+0
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2652 980ebf18-57e1-0310-9a29-db15c13687c0
* Applying patch by daikinee from #690. I was not able to reproduce the ↵luke2007-07-041-1/+1
| | | | | | problems, but it did not seem to hurt anything, either. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2649 980ebf18-57e1-0310-9a29-db15c13687c0
* Updating reference docsluke2007-06-201-0/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2637 980ebf18-57e1-0310-9a29-db15c13687c0
* Modified the fileserver to cache file information, so thatluke2007-06-191-14/+51
| | | | | | | | | each file isn't being read on every connection. Also, added londo's patch from #678 to avoid reading entire files into memory. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2629 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing some failing tests.luke2007-06-181-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2616 980ebf18-57e1-0310-9a29-db15c13687c0
* Modifying the CA server so that it will not send back a cert whose public ↵luke2007-06-181-1/+3
| | | | | | key does not match the csr. We have been getting a lot of instances of this, so this should cut down that problem. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2612 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #578 -- Invalid certs are no longer written to disk.luke2007-06-181-3/+6
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2611 980ebf18-57e1-0310-9a29-db15c13687c0
* Fix #657: allow puppet URL's with no server; 'puppet' looks those up on hte ↵lutter2007-06-181-0/+1
| | | | | | local modulepath, whereas 'puppetd' goes to the default server git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2610 980ebf18-57e1-0310-9a29-db15c13687c0
* Reverting the change I just made to the config handler; it was only there ↵luke2007-06-181-4/+1
| | | | | | for testing. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2602 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding puppet-test, which is useful for performance testingluke2007-06-181-1/+4
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2601 980ebf18-57e1-0310-9a29-db15c13687c0
* Removing old line from the fix for #660 -- I had strangely just commented it ↵luke2007-06-111-1/+0
| | | | | | out, rather than removing it git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2561 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #660 by applying patch by freiheit. Looks like this is another ↵luke2007-06-111-1/+2
| | | | | | problem with yaml on 1.8.1. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2560 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a simple unit test for mongrel, and adding the ability to select the ↵luke2007-06-111-3/+3
| | | | | | header used to store the client SSL dn. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2558 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing the "Server is not a class" problem with mongrelluke2007-06-071-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2554 980ebf18-57e1-0310-9a29-db15c13687c0
* Applying patches from Valentin Vidic to fix open file discriptor and open ↵luke2007-06-051-1/+12
| | | | | | port problems git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2553 980ebf18-57e1-0310-9a29-db15c13687c0
* Significantly reworked the type => provider interface with respect toluke2007-06-041-1/+1
| | | | | | | | | | | | | | | | | | | | listing existing provider instances. The class method on both class heirarchies has been renamed to 'instances', to start. Providers are now expected to return provider instances, instead of creating resources, and the resource's 'instances' method is expected to find the matching resource, if any, and set the resource's provider appropriately. This *significantly* reduces the reliance on effectively global state (resource references in the resource classes). This global state will go away soon. Along with this change, the 'prefetch' class method on providers now accepts the list of resources for prefetching. This again reduces reliance on global state, and makes the execution path much easier to follow. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2551 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #532 -- reparsing config files no longer throws an exception. The ↵luke2007-05-311-1/+2
| | | | | | | | problem only occurred when reparsing a configuration file that was also being managed (which was common) and only whent the manifest was up to date (the combination was uncommon). Reparsing would find the existing file object and use it to check permissions and such, then it would remove all of the internal data in the object, for cleanup; the problem is, the client still had a reference to the object, so when it went to run its configuration, this broken reference was used. The solution I chose was to remove all objects from memory after every run. It is negligible to reload them from the cache, and it saves ram for the 99% of the time that the client is just sitting there. And it makes this problem go away. :) git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2545 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #501 -- there is now a splay option, disabled by default and when ↵luke2007-05-181-0/+17
| | | | | | running under --test git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2528 980ebf18-57e1-0310-9a29-db15c13687c0
* A round of fixes so unit tests pass; most of the failures were from the ↵luke2007-05-152-2/+2
| | | | | | merging of the transaction-refactor branch git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2517 980ebf18-57e1-0310-9a29-db15c13687c0