summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* | Fixing #1641 - file recursion now only passes original parameters to child ↵Luke Kanies2008-11-041-4/+14
| | | | | | | | | | | | | | | | | | 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-041-18/+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-042-3/+3
| | | | | | | | | | | | (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-042-17/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-041-5/+0
| | | | | | | | | | | | | | | | | | | | 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
* | Retrieving the CA certificate before the client certificate.Luke Kanies2008-11-031-4/+10
| | | | | | | | | | | | | | | | | | | | | | 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-031-1/+1
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Fixing :bindaddress setting to work with the new server subsystem.Luke Kanies2008-11-031-3/+6
| | | | | | | | | | | | | | 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-031-1/+1
| | | | | | | | | | | | 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-311-5/+2
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Merge branch '0.24.x'Luke Kanies2008-10-3112-24/+384
|\| | | | | | | | | | | Conflicts: CHANGELOG
| * Added unit tests for the augeas type and providerBryan Kearney2008-10-301-2/+3
| |
| * Fix #1402 - Allow multiline commentsBrice Figureau2008-10-291-0/+5
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
| * Fix #857 - Multiple class of the same name don't append codeBrice Figureau2008-10-291-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | |
| * | Fixing #1669 - The dump parameter can now be changed on mounts.Luke Kanies2008-10-291-1/+1
| | | | | | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Fix #1682 - ASTArray should flatten product of evaluation of its childrenBrice Figureau2008-10-291-2/+1
| | | | | | | | | | | | | | | 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-291-1/+1
| | | | | | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Fixed #1692 - k5login fails to set mode when file is createdJames Turnbull2008-10-281-1/+1
| | |
| * | Fixing #1660 - Adding specifically supported values for tidy recursion.Luke Kanies2008-10-281-0/+17
| | | | | | | | | | | | | | | | | | 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-281-16/+1
| | |
| * | Fixed #1661 - Type reference: tidy should specify manditory parametersJames Turnbull2008-10-281-1/+4
| | |
| * | Merge branch 'l' into 0.24.xJames Turnbull2008-10-281-1/+1
| |\ \ | | | | | | | | | | | | | | | | | | | | Conflicts: conf/redhat/puppet.spec
| * | | Fixed #1104 - Classes and nodes should set $name variablesBrice Figureau2008-10-281-1/+6
| | |/ | |/| | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | | Merge branch '0.24.x'Luke Kanies2008-10-2213-943/+1269
|\ \ \ | | |/ | |/| | | | | | | | | | Conflicts: lib/puppet/type/user.rb
| * | Updated to version 0.24.6Luke Kanies2008-10-231-1/+1
| |/
| * Improve the inline documentation for SELinux types and parametersSean E. Millichamp2008-10-233-15/+38
| |
| * Fixes #1663 - added Symbol check and additional testSean E. Millichamp2008-10-231-1/+5
| |
| * Fix regression caused by switch to Puppet's execute() functionsSean E. Millichamp2008-10-221-2/+11
| |
| * Solaris RBAC AttributesAndrew Shafer2008-10-224-45/+303
| | | | | | | | | | | | | | | | | | | | | | Adding support to user type for: profiles auths project key/value pairs Refactored useradd.addcmd so I could override how properties get added in the subclass Added keyvalue property to manage generic keyvalues
| * Fix #936 - Allow trailing comma in array definitionBrice Figureau2008-10-212-388/+393
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
| * Fix #1115 - part2 - fix tests and add all_tagsBrice Figureau2008-10-211-1/+6
| | | | | | | | | | | | | | | | Up until this patch, TemplateWrapper.tags was returning all the tags defined in the catalog. I think this is wrong and tags shoul only return the defined tags in the current scope. Hence, I defined a all_tags method that returns the list of tags defined in the whole catalog.
| * Fixed #1662 - Configuration Reference still references 'section'James Turnbull2008-10-211-7/+0
| |
| * Fixed #1663 - Regression relating to facter fact naming from 0.24.5James Turnbull2008-10-211-1/+2
| |
| * Fix #636 - Allow extraneous comma in function argument listBrice Figureau2008-10-212-882/+898
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | Fixing resource aliasing to not use global resource aliasing.Luke Kanies2008-10-171-3/+0
| | | | | | | | | | | | | | I'm not really sure why the 0.24.x-style code got merged in, since master's changes should be more recent. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Merge branch '0.24.x' Removed the 'after' blocks that call Type.clear,Luke Kanies2008-10-1769-1200/+2315
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | since that method is deprecated. Conflicts: CHANGELOG bin/puppetca lib/puppet/file_serving/fileset.rb lib/puppet/network/xmlrpc/client.rb lib/puppet/type/file/selcontext.rb spec/unit/file_serving/metadata.rb spec/unit/type/file.rb
| * Fixing tests I broke when trying to fix the Providers reference.Luke Kanies2008-10-171-1/+10
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * Use fully qualified paths when calling binaries, adjust chcon call to use ↵Sean E. Millichamp2008-10-171-8/+2
| | | | | | | | Puppet's execute() function.
| * Setting SELinux contexts with chcon should not dereference symbolic linksSean E. Millichamp2008-10-171-2/+2
| |
| * Fix #1115 - Allow checking tags/classes from ERb templatesBrice Figureau2008-10-141-0/+10
| | | | | | | | | | | | | | | | Add to predefined variables to the ERB template space. "classes" and "tags" which provide arrays of all the defined classes and tags for a node. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
| * Fixing #1647 - puppetdoc's 'providers' report works again.Luke Kanies2008-10-141-1/+1
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * Fix 1642 (always warning) and improve unit tests to cover when to warn and notPaul Nasrat2008-10-111-1/+1
| |
| * lazy load latest package definitions with yumhelper 2.2duritong2008-10-101-17/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | merge commit to 0.24x, original commit: I could observe that yumhelper.py can run quite some time and use quite a lot of memory (up to 100MB!) if you're using many repositories. As the yumhelper is only needed if you use latest as a ensure-keyword it makes no sense for people like me letting puppet fetch these details always, if you're never going to use latest. => lazy loading. After discussion on the list, this is the new version for lazy loading yum latest package versions. It is implemented mainly in the way that Luke proposed. However it stores the latest informations in the variable latest_info so the latest method didn't get too hackish and could nearly be left like it was before.
| * Revert "Added last part of #1633 patch - update to util/metrics.rb"James Turnbull2008-10-101-5/+0
| | | | | | | | This reverts commit c5d1a4f6ffe72477ce02358a93d48df850aea15b.