summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* A few small fixes here and there, and the rest of the zones commitluke2007-06-145-29/+72
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2577 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #655 -- Solaris zones are again fully functional, from what I can tellluke2007-06-141-88/+51
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2576 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding indexes for the rails tablesluke2007-06-141-0/+24
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2575 980ebf18-57e1-0310-9a29-db15c13687c0
* Removing the indexes migration, since the indexes are now in the main db schemaluke2007-06-131-38/+0
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2574 980ebf18-57e1-0310-9a29-db15c13687c0
* Added to_s to the values to ensure the check versus the database will be ballman2007-06-131-4/+4
| | | | | | | consistent and booleans and references will check correctly. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2572 980ebf18-57e1-0310-9a29-db15c13687c0
* documentation fixajax2007-06-131-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2571 980ebf18-57e1-0310-9a29-db15c13687c0
* Applying patch from #666 by Rainhead and monachusluke2007-06-131-1/+7
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2569 980ebf18-57e1-0310-9a29-db15c13687c0
* Changed the host to "eager fetch" all the resources and their associated ballman2007-06-122-4/+4
| | | | | | | | tables. Also removed some unecessary lines from resource.rb that were causng it to re-read information it already loaded from the db. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2568 980ebf18-57e1-0310-9a29-db15c13687c0
* Revert unintentional change.ballman2007-06-121-5/+5
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2566 980ebf18-57e1-0310-9a29-db15c13687c0
* Major rework of the rails feature. Changed the relationship between ballman2007-06-1212-143/+267
| | | | | | | | | | | | | | | | host and facts (now many-to-many with fact_name through fact_values). Also changed the relationship between resource and params (similarly many-to-many with param_names through param_values). Added the resource_tags and puppet_tags. The latter has the tag names and the former is the man-to-many link with resources. There is a little clean up left but the schema is in order. Also a test for the tags stuff is required. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2565 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #550 -- I had to list pass and dump as optional fields.luke2007-06-111-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2564 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #112 - mounts now default to 0 for dump and passluke2007-06-111-0/+12
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2563 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #637 -- defined resources can now correctly be virtual or exportedluke2007-06-113-5/+20
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2562 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
* Oops; I forgot to add the base class for package providers. Also, cleaning ↵luke2007-06-112-9/+40
| | | | | | up the package provider code a touch git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2559 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a simple unit test for mongrel, and adding the ability to select the ↵luke2007-06-113-4/+11
| | | | | | header used to store the client SSL dn. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2558 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing error when commands fail -- the error code is now printed, instead of ↵luke2007-06-111-1/+1
| | | | | | the inspection of it git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2557 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding (slightly modified) urpmi support from #592 by Devinluke2007-06-081-0/+51
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2556 980ebf18-57e1-0310-9a29-db15c13687c0
* Finishing off the type/provider interface work, including adding package ↵luke2007-06-0824-106/+87
| | | | | | prefetch for all packages. The only not-done one is yum -- prefetch is set up for rpm, but not yum. We need to modify prefetching so that it also prefetches latest information, to avoid having to run yum so many times. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2555 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-052-1/+16
| | | | | | port problems git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2553 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing the few test failures that resulted from the changes to provider listingluke2007-06-052-2/+7
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2552 980ebf18-57e1-0310-9a29-db15c13687c0
* Significantly reworked the type => provider interface with respect toluke2007-06-0430-221/+159
| | | | | | | | | | | | | | | | | | | | 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
* Adding a "source" attribute to providers, so eventually types will be able ↵luke2007-06-042-1/+15
| | | | | | to avoid duplication during listing by only listing one provider for each source (e.g., dpkg and aptitude should not both be listed). git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2550 980ebf18-57e1-0310-9a29-db15c13687c0
* Add protect and priority properties; patch provided by Matt Hyclaklutter2007-06-011-0/+16
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2547 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
* Changing --show-available to --showall, as requisted by Jeremy Dreese on the ↵luke2007-05-311-1/+1
| | | | | | list git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2544 980ebf18-57e1-0310-9a29-db15c13687c0
* Switch the package type to use a :versionable feature, and convert all ↵mpalmer2007-05-3017-57/+21
| | | | | | providers to use the feature. Hope it doesn't break anything. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2543 980ebf18-57e1-0310-9a29-db15c13687c0
* Add a grammatically correct 'has_feature' alias, and switch to using it ↵mpalmer2007-05-303-2/+4
| | | | | | where appropriate in existing code git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2542 980ebf18-57e1-0310-9a29-db15c13687c0
* Clean up a really hairy code construct in the useradd providermpalmer2007-05-301-6/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2541 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing up2date name matching, as mentioned by Jeremy Dreese on the listluke2007-05-301-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2540 980ebf18-57e1-0310-9a29-db15c13687c0
* Changing the resource title to be text instead of a string, because some ↵luke2007-05-301-1/+1
| | | | | | title are > 255 chars git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2539 980ebf18-57e1-0310-9a29-db15c13687c0
* Mark all package providers that don't currently report themselves as being ↵mpalmer2007-05-306-0/+24
| | | | | | versionable as not supporting versioning; this way we get a more sensible error message when people try to specify a package version. See #647 for some discussion. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2538 980ebf18-57e1-0310-9a29-db15c13687c0
* Correct a problem with the dpkg provider's handling of the :purged state, ↵mpalmer2007-05-252-2/+2
| | | | | | and expand the package type's understanding of what purged actually means. Fixes #644 git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2537 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a warning for when no properties are specified on servicesluke2007-05-251-0/+4
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2536 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a debug statement describing why restarts are skipped on servicesluke2007-05-251-1/+3
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2535 980ebf18-57e1-0310-9a29-db15c13687c0
* fixing the method to check for hostdir writability in the rrdgraph reportluke2007-05-251-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2534 980ebf18-57e1-0310-9a29-db15c13687c0
* Changing the location of the classes.txt to the state dirluke2007-05-251-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2533 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding more detail to the per-host reports dirs, since it was not setting ↵luke2007-05-251-3/+3
| | | | | | mode or ownership. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2532 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding better error reporting on unmatched brackets -- you will now get ↵luke2007-05-253-2/+48
| | | | | | notification of what was expected in most cases git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2531 980ebf18-57e1-0310-9a29-db15c13687c0
* Updating the exec docs to specify that the timeout is in secondsluke2007-05-241-1/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2530 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #501 -- there is now a splay option, disabled by default and when ↵luke2007-05-182-1/+24
| | | | | | running under --test git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2528 980ebf18-57e1-0310-9a29-db15c13687c0
* Changing the notify type so that it always uses the loglevel for loggingluke2007-05-182-4/+3
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2525 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #568luke2007-05-172-268/+258
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2524 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #566 -- definitions, tags, and classes can now be single charactersluke2007-05-171-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2523 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding #629 -- an undef keyword now existsluke2007-05-176-561/+624
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2522 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #507 (behaviour in cycles) by changing the topsort algorithm.luke2007-05-172-23/+26
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2521 980ebf18-57e1-0310-9a29-db15c13687c0
* Using the method for retrieving the dipper class, in case it has not been loadedluke2007-05-161-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2520 980ebf18-57e1-0310-9a29-db15c13687c0
* Redoing autoload a bit in preparation for adding a plugindirluke2007-05-161-46/+58
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2518 980ebf18-57e1-0310-9a29-db15c13687c0