summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | Refactoring and clarifying the resource generation methods.Luke Kanies2008-11-072-45/+268
| | | | | | | | | | | | 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-072-107/+132
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-063-76/+77
| | | | | | | | | | | | | | 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-068-591/+545
| | | | | | | | | | | | | | 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-062-0/+37
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Converting the file 'source' property to a parameter.Luke Kanies2008-11-0514-484/+248
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-052-1/+15
| | | | | | | | | | | | 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-053-0/+186
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Aliasing "must_not" just like we alias "must"Luke Kanies2008-11-051-0/+1
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Deduplicating slashes in the fileserving codeLuke Kanies2008-11-043-3/+8
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Fixing the augeas type tests to work when augeas is missingLuke Kanies2008-11-041-88/+98
| | | | | | | | 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-048-889/+928
| | | | | | | | | | | | | | | | | | | | | | 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>
* | Fixing #1677 - fixing the selinux tests in master.Luke Kanies2008-11-041-0/+6
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Changing the meaning of the unused Puppet::Type#parameter method to return ↵Luke Kanies2008-11-042-7/+20
| | | | | | | | | | | | | | | | | | | | an instance rather than a value. This parallels and largely obviates the 'property' method. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Moving a file purging test to rspecLuke Kanies2008-11-042-42/+49
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Fixing #1641 - file recursion now only passes original parameters to child ↵Luke Kanies2008-11-042-24/+39
| | | | | | | | | | | | | | | | | | resources. Previously, parameter values provided by remote sources or default values were all passed to children, which provided strange state maintenance. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Removing obsolete methods and tests:Luke Kanies2008-11-042-101/+0
| | | | | | | | | | | | | | | | | | Removing obsolete handleignore method Removing obsolete FileSource class Removing a now-obsolete test/unit test Removing a now-obsolete recursive filebucket test Signed-off-by: Luke Kanies <luke@madstop.com>
* | Making it so (once again) files with sources set can still be deletedLuke Kanies2008-11-045-50/+48
| | | | | | | | | | | | (which I think is kinda stupid, but apparently people want it). Signed-off-by: Luke Kanies <luke@madstop.com>
* | Fixing and migrating more file tests.Luke Kanies2008-11-047-581/+312
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an unfortunately messy commit; I should have tried harder to separate the different tasks into different commits, but it's not worth going back and doing now. This is the first commit in the long road of fixing the existing file tests, and in the process refactoring and better testing the code. The refactoring in this commit is mostly around the 'stat' instance variable that tests whether the file exists (and provides its metadata if it does) and the 'insync?' method in the source property. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Adding a starting point for spec tests for tidy.Luke Kanies2008-11-042-12/+12
| | | | | | | | | | | | | | | | | | | | So far it just validates that lstat is used instead of stat. Signed-off-by: Luke Kanies <luke@madstop.com> Conflicts: spec/unit/type/tidy.rb
* | Setting puppetmasterd up to serve all indirected classes.Luke Kanies2008-11-031-1/+3
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Retrieving the CA certificate before the client certificate.Luke Kanies2008-11-033-13/+38
| | | | | | | | | | | | | | | | | | | | | | We have to have a CA cert first, because the host will start using the client cert as soon as it's available, but it's not functional without a CA cert. Also removing extra stupid stuff from wait_for_cert -- the connection is now always recycled, which is much simpler. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Handling the case where a symbol (e.g., :ca) is used for a certificate name.Luke Kanies2008-11-032-3/+3
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Fixing :bindaddress setting to work with the new server subsystem.Luke Kanies2008-11-032-3/+26
| | | | | | | | | | | | | | It now automatically switches values depending on server type, while still allowing overriding. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Fixing CertificateRequest#save to accept arguments.Luke Kanies2008-11-032-1/+8
| | | | | | | | | | | | This happens when called over REST. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Fixing forward-compatibility issues resulting from no global resourcesLuke Kanies2008-10-312-6/+3
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Fixing a test I broke when fixing a reporting bugLuke Kanies2008-10-311-4/+0
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Merge branch '0.24.x'Luke Kanies2008-10-3149-867/+1074
|\| | | | | | | | | | | Conflicts: CHANGELOG
| * Added unit tests for the augeas type and providerBryan Kearney2008-10-303-2/+344
| |
| * Fix #1402 - Allow multiline commentsBrice Figureau2008-10-294-1/+51
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
| * Fix #857 - Multiple class of the same name don't append codeBrice Figureau2008-10-294-1/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following manifest wasn't working: class one { notice('class one') } class one { notice('second class one') } include one It all boiled down to class code not being arrays. Encapsulating code in ASTArray when needed is enough to append code, because of the property of ASTArray to evaluate all their members in turn. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
| * Fixed augeas examples in typeJames Turnbull2008-10-291-2/+2
| |
| * Merge branch 'augeas' into 0.24.xJames Turnbull2008-10-293-0/+341
| |\
| | * Merge branch 'augeas' of git@github.com:bkearney/puppet into augeasBryan Kearney2008-10-281-200/+0
| | |\ | | | | | | | | | | | | | | | | | | | | Conflicts: lib/puppet/type/augeas.rb
| | | * Beginning provider split, need help on the voodooBryan Kearney2008-10-272-181/+211
| | | |
| | * | Split Augeas up into a provider and a type.Bryan Kearney2008-10-283-161/+410
| | |/
| | * Added augeas type and featureJames Turnbull2008-10-242-0/+292
| | |
| * | Fixed #1710 - Spurious output in test runJames Turnbull2008-10-292-6/+2
| | |
| * | Fixing #1669 - The dump parameter can now be changed on mounts.Luke Kanies2008-10-292-1/+30
| | | | | | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Fix #1682 - ASTArray should flatten product of evaluation of its childrenBrice Figureau2008-10-292-2/+67
| | | | | | | | | | | | | | | If the ASTArray contains children that evaluate to arrays themselves, they aren't flattened.
| * | Fixing #1667 - regex automatic value documentation is now readable.Luke Kanies2008-10-292-2/+4
| | | | | | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Fixed #1692 - k5login fails to set mode when file is createdJames Turnbull2008-10-282-1/+3
| | |
| * | Fixing #1660 - Adding specifically supported values for tidy recursion.Luke Kanies2008-10-283-0/+79
| | | | | | | | | | | | | | | | | | Basically just copied the code for the recurse parameter from 'file'. Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Fixing #1698 - all logs again show up in the report.Luke Kanies2008-10-283-62/+3
| | |
| * | Fixed #1661 - Type reference: tidy should specify manditory parametersJames Turnbull2008-10-282-1/+6
| | |
| * | Removing all mention of EPM, RPM, or Sun packages.Luke Kanies2008-10-281-13/+0
| | | | | | | | | | | | | | | | | | | | | You should upgrade your build library from http://github.com/lak/reductive-build/tree/master too. Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Merge branch 'l' into 0.24.xJames Turnbull2008-10-282-4/+1
| |\ \ | | | | | | | | | | | | | | | | | | | | Conflicts: conf/redhat/puppet.spec