summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
| * Fix the init service type to cope with an array for defpath and if defpath ↵Nigel Kersten2008-11-191-17/+23
| | | | | | | | does not exist
| * Added versionable feature to the RPM providerJames Turnbull2008-11-181-0/+2
| |
| * Moved RRD feature from util/metric.rb to feature/base.rbJames Turnbull2008-11-172-5/+3
| |
| * Manifest documentation generationBrice Figureau2008-11-175-0/+2621
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is currently two type of documentation generation for manifests (module or modulepath): * RDoc HTML generation for modules and global manifests * console output for sole manifest Both version handles classes, defines, nodes, global variable assignements, and resources when --all is used. The usage is the following: For the rdoc variant: $ puppetdoc --mode rdoc --outputdir doc It uses the puppet.conf configuration file to get the modulepath and manifestdir settings. Those are overridable on the command line with --modulepath and --manifestdir. For the console output version: $ puppetdoc /path/to/manifests Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
| * Move function existance test to parser evaluationBrice Figureau2008-11-171-12/+16
| | | | | | | | | | | | | | | | The aim is to let --parseonly succeeds even if the function is not (yet) present. This is usefull in commit-hooks and for the inline documentation generation system. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
| * Add a doc attribute to AST nodes and fill it with the last seen commentsBrice Figureau2008-11-1717-111/+252
| | | | | | | | | | | | | | | | | | | | | | | | | | The lexer maintains a stack of last seen comments. On blank lines the lexer flush the comments. On each opening brace the lexer enters a new stack level. On each block AST nodes, the stack is popped. Each AST nodes has a doc property that is filled with the last seen comments on node creation (in fact only on important node creation representing statements). Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
| * Fixed #1735 and #1747 - Fixes to confine systemJames Turnbull2008-11-161-1/+12
| |
| * Fixed #1718 - Added preseed to apt uninstall and purgeJames Turnbull2008-11-161-0/+6
| |
| * Fixing the provider's confine subsystem so the logs are more useful.Luke Kanies2008-11-134-4/+10
| | | | | | | | | | | | | | | | | | I apparently lost some context in these logs when I switched to this separate subsystem. Note that this also fixes some of the informational issues in Signed-off-by: Luke Kanies <luke@madstop.com>
| * Removed extra 'end' from yum.rbJames Turnbull2008-11-141-1/+0
| |
| * Fix bug #1746: Sync SELinux file attributes after file contents created/modifiedSean E. Millichamp2008-11-141-1/+1
| |
| * Fix bug #1681: Add filesystem type check to test for per-file SELinux ↵Sean E. Millichamp2008-11-141-0/+64
| | | | | | | | context support
| * Quiet debug when no default SELinux context found for one of the componentsSean E. Millichamp2008-11-141-1/+3
| |
| * Fixes relating to transition to native SELinux bindingsSean E. Millichamp2008-11-142-2/+16
| |
| * Refactoring of SELinux functions to use native Ruby SELinux interfaceSean E. Millichamp2008-11-141-66/+67
| |
| * Merge branch 'tickets/0.24.x/1739' into 0.24.xJames Turnbull2008-11-131-0/+5
| |\
| | * Fixed #1739 - Added uninstall functionality to yum providerJames Turnbull2008-11-131-0/+5
| | |
| * | Fix #1737 - part2 - Fix display of "options"Brice Figureau2008-11-121-0/+16
| | |
| * | Fix #1737 - ssh_authorized_keys should be able to parse options containing ↵Brice Figureau2008-11-111-1/+21
| | | | | | | | | | | | | | | | | | commas Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
| * | Fix #1740 - Daemontools and Runit is not ReST compliantBrice Figureau2008-11-112-31/+48
| |/
| * Fixed #1730 - Edited file/ensure.rb docs for clarityJames Turnbull2008-11-051-5/+4
| |
| * Fixes #1672 - unsafe crontab handling in SolarisMartin Englund2008-11-051-3/+3
| | | | | | | | Signed-off-by: Martin Englund <martin@englund.nu>
| * Fixes #1714 - yumhelper handling with yum 2.2.x is brokenJames Turnbull2008-11-011-0/+9
| |
| * Fixed #1721 - puppet.conf documentation incorrectly lists signals that ↵James Turnbull2008-11-011-1/+1
| | | | | | | | affect the daemons
* | Completely refactoring the tidy type.Luke Kanies2008-11-151-146/+139
| | | | | | | | | | | | | | | | | | | | | | | | This was necessary because of how I changed file recursion. The type works much more intelligently now -- files to be removed have a file resource generated for them, and that resource handles deletion. Also fixes #1717; neither age nor size is required now. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Cleaning up the tidy type a bitLuke Kanies2008-11-151-265/+264
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | These changes are all about making sure file data is expired when appropriate.Luke Kanies2008-11-153-2/+7
| | | | | | | | | | | | All file tests now pass. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Catalogs always consider resource data to be expired if not mid-transaction.Luke Kanies2008-11-151-0/+8
| | | | | | | | | | | | | | | | | | This way we'll cache when in a transaction, but otherwise always hit the disk so the data is fresh. This works because we really only use resources mid-transaction, but it behaves correctly if we happen to use a resource outside of a transaction. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Adding caching support to parameters, and using cached attributes for file ↵Luke Kanies2008-11-113-28/+29
| | | | | | | | | | | | | | | | | | source and metadata. As hoped, this drastically simplifies the code around retaining this data. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Adding cached attribute support to resources.Luke Kanies2008-11-113-12/+22
| | | | | | | | | | | | | | | | | | | | | | | | The Catalog is the expirer, which means that a resource with no catalog will not cache data. Also switching files to use a cached attribute for its stat. And modifying catalogs to expire data at the end of every transaction. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Allowing a nil expirer for caching classes.Luke Kanies2008-11-111-1/+2
| | | | | | | | | | | | | | If there's no expirer, then the value is regenerated every time. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Refactoring the Cacher interface to always require attribute declaration.Luke Kanies2008-11-116-90/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously you could dynamically use cached values, but the new interface requires a single static declaration of the attribute: cached_attr(:myattr) { my_init_code() } This is cleaner, because it makes it easy to turn the code into an init method and generally makes the whole thing easier to think about. Most of this commit is going through the different classes that already using the Caching engine. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Changing the Cacher.invalidate method to Cacher.expire.Luke Kanies2008-11-112-5/+9
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Fixing a critical bug in the Cacher module.Luke Kanies2008-11-111-13/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Basically, the first generated value was always considered expired the next time it was asked for. The fix was to create an initial timestamp in the Cacher module, thus providing a floor for validity. This is definitely a murky bug, and is especially hard to test. Also refactoring the internals just a bit. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Fixing tests broken by fileserving and other refactoring.Luke Kanies2008-11-082-16/+0
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Finishing the refactoring of the resource generation interface.Luke Kanies2008-11-072-23/+12
| | | | | | | | | | | | | | All of the code works, and there are integration tests all around to prove it. I think. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Refactoring and clarifying the resource generation methods.Luke Kanies2008-11-071-45/+21
| | | | | | | | | | | | It now works with the new Catalog#add_resource method. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Refactoring Catalog#add_resource to correctly handle implicit resources.Luke Kanies2008-11-071-36/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | It now ignores or removes implicit resources that conflict, and it yields all resources that are valid. This makes it simple for calling classes to pass in a list of resources but only perform a chunk of work for valid (i.e., non-conflicting) resources. This refactor is entirely meant as a way of cleaning up the Transaction#generate interface to the catalog. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Adding SimpleGraph#leaves, which I apparently did not migrate from PGraphLuke Kanies2008-11-061-0/+7
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Removing mention of obsolete edgelist_class from GRATR.Luke Kanies2008-11-062-18/+0
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Changing the catalog's relationship graph into a normal graph.Luke Kanies2008-11-062-9/+3
| | | | | | | | | | | | | | It was previously another catalog instance, but I was only ever actually using the graphing abilities. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Removing the PGraph class and subsuming it into SimpleGraph.Luke Kanies2008-11-065-147/+114
| | | | | | | | | | | | | | This class is a holdover from when I was using GRATR, and it's obsolete now. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Moving Catalog#write_graph to SimpleGraph, where it belongs.Luke Kanies2008-11-061-0/+12
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Converting the file 'source' property to a parameter.Luke Kanies2008-11-056-127/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes a lot of sense because source was always more of a metaparameter than a property -- it affected the 'should' values of other properties, but it shouldn't have done any other work. It will hopefully make everything else much cleaner. This is such a large commit mostly because of the need to fix a lot of tests. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Removing mid-transaction resources from the catalog.Luke Kanies2008-11-051-1/+1
| | | | | | | | | | | | This basically just cleans up dynamic resources. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Adding a method to Checksums to extract the sum typeLuke Kanies2008-11-051-0/+9
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Deduplicating slashes in the fileserving codeLuke Kanies2008-11-041-2/+2
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Reducing the number of calls to terminus() to reduce interference with cachingLuke Kanies2008-11-041-2/+3
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Switched all value management in props/params to internal classes.Luke Kanies2008-11-044-305/+319
| | | | | | | | | | | | | | | | | | | | | | This is a significant refactor of some very murky code, and it's all much cleaner and more readable now. All of the 'newvalue' methods and any value-related code is in a ValueCollection class. This puts us in a good position to refactor the Property and Parameter classes more completely. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Changing the meaning of the unused Puppet::Type#parameter method to return ↵Luke Kanies2008-11-041-6/+4
| | | | | | | | | | | | | | | | | | | | an instance rather than a value. This parallels and largely obviates the 'property' method. Signed-off-by: Luke Kanies <luke@madstop.com>