summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util
Commit message (Collapse)AuthorAgeFilesLines
* Extend workaround from 56aad69f8cdf8b0b08fdb7985014986223fa4455 to not only ↵Andreas Rogge2008-04-031-2/+2
| | | | | | | | | fix UIDs but also GIDs Fixes #1169 Fixes #804 (workaround was probably incomplete, as required changes in lib/puppet/util/posix.rb were missing) Signed-off-by: Andreas Rogge <a.rogge@solvention.de>
* Found all instances of methods where split() is used withoutLuke Kanies2008-03-213-3/+6
| | | | | | | | | | any local variables and added a local variable -- see http://snurl.com/21zf8. My own testing showed that this caused memory growth to level off at a reasonable level. Note that the link above says the problem is only with class methods, but my own testing showed that it's any method that meets these criteria. This is not a functional change, but should hopefully be the last nail in the coffin of #1131.
* Applying patch by wyvern to fix #1142.Luke Kanies2008-03-201-2/+2
|
* Refactoring how the catalog creation handles errors.Luke Kanies2008-03-181-15/+11
| | | | | | | | | | | | | | | | | | Previously, if there were an error creating a resource, the error would propagate leaving any previously created resources still in memory. Now, resources are removed by default when an error happens during instantiation, and the error propagates to the caller so that they can log or whatever. This also allows the Settings class to correctly and separately handle the cases where we can't create the catalog (which should never happen in normal usage but was happening because of this error -- later catalogs couldn't be created because earlier catalogs left resources lying around) from those where we can't apply the catalog.
* Removing extra debuggingLuke Kanies2008-03-181-1/+0
|
* Settings now (again?) do not use a section more thanLuke Kanies2008-03-181-8/+13
| | | | once, which should make the system a bit more efficient.
* Hopefully *finally* fixed the "already being managed" problemLuke Kanies2008-03-181-6/+9
| | | | | | (#1036). The problem only cropped up if there was a failure when trying to manage the system -- this would cause the setting-based resources not to get cleaned up.
* Flat file now does writing to a tempfile.Brenton Leanhardt2008-03-131-1/+5
| | | | Fixes #1086
* Changed name of method for clarity per code reviewLuke Kanies2008-03-051-5/+5
|
* Ticket #1041Andrew Shafer2008-03-051-47/+49
| | | | | | | | | | The CA serial file was getting owned by root because it was using a different method to write to file Pulled the readwritelock out of lib/puppet/sslcertificates/ca.rb into lib/puppet/util/settings.rb Refactored write, writesub and readwritelock a bit to reuse code (write and readwritelock both call writesub) Added a mode to :serial in lib/puppet/util/defaults.rb
* Merge commit 'turnbull/0.24.x' into 0.24.xLuke Kanies2008-02-231-1/+1
|\
| * Fixes ticket #1079 - added . support for tagsJames Turnbull2008-02-241-1/+1
| |
* | Somewhat refactored fileserving so that it no longer cachesLuke Kanies2008-02-232-2/+2
|/ | | | | | | | | | any objects, nor does it use Puppet's RAL resources. In the process, I fixed #894 (you can now copy links) and refactored other classes as necessary. Mostly it was fixing tests. This is a squashed commit of a temporary branch, fwiw, and it also includes any fixes to the tests that were necessary to get all tests passing again.
* Quashed commit of my fixes for #1010.Luke Kanies2008-02-211-1/+1
|
* Refactoring the incremental checksum generationLuke Kanies2008-02-141-11/+12
| | | | slightly based on the code in type/file/checksum.rb.
* Enhancing the stand-alone checksums utility moduleLuke Kanies2008-02-141-10/+47
| | | | | | with the rest of the checksums we're likely to use, and adding tests, which I somehow missed when I wrote this file.
* Fixing #1064 -- providers et al are now autoloadedLuke Kanies2008-02-131-2/+1
| | | | from modules even when Autoload#loadall is used.
* removing "lib" deprecation notice from autoloaderLuke Kanies2008-02-131-4/+0
|
* Fixed #1043 -- autoloading now searches the plugins directoryLuke Kanies2008-02-131-3/+8
| | | | | | in each module, in addition to the lib directory. The 'lib' directory is also deprecated, but supported for now to give people a chance to convert.
* Adding an inflection util class.Luke Kanies2008-02-121-0/+14
|
* Removing the last remaining vestiges of GRATR --Luke Kanies2008-02-111-1/+1
| | | | removing the bangs from 'add_vertex!' and 'add_edge!'.
* Added a 'tagged?' method to the Tagging module.Luke Kanies2008-02-111-0/+5
|
* Applying patch by Jay to fix #989 -- missing crl files areLuke Kanies2008-02-071-1/+1
| | | | | correctly ignored, and you now use 'false' instead of 'none' to explicitly ignore them.
* Fixing the Settings class so that it correctly handlesLuke Kanies2008-02-071-7/+9
| | | | file values that are false.
* I think I've finally fixed #959, by having the SettingsLuke Kanies2008-01-201-12/+13
| | | | class skip any resources that are already in memory.
* Fixing #976 -- both the full name of qualified classes andLuke Kanies2008-01-191-0/+34
| | | | | | the class parts are now added as tags. I've also created a Tagging module that we should push throughout the rest of the system that uses tags.
* Fixing #982 -- I have completely removed the GRATR graph libraryLuke Kanies2008-01-071-8/+2
| | | | from the system, and implemented my own topsort method.
* Fixing the unit tests for nagios_maker; I could swear I'd alreadyLuke Kanies2008-01-071-2/+3
| | | | done this but I must not have committed it.
* Fixed #980 - minor wiki formatting error in nagios_maker.rbJames Turnbull2008-01-021-1/+1
|
* Added builtin support for all Nagios resource types.Luke Kanies2007-12-311-2/+18
| | | | | | | | | | | | | I use Naginator to parse and generate the files, with ParsedFile to handle record management and the like. Note that each resource type itself is just a call to a Factory method, since everything is just based on Naginator. Given that, all of the tests are in a single unit/ral/types/nagios.rb file, since I used a factory to generate them, too. This is probably either unnecessary or insufficient, but it's as far as I'm willing to go in testing them, and it did actually catch a few bugs.
* Adding the metaprogramming to create the Nagios typesLuke Kanies2007-12-311-0/+40
| | | | | | and Naginator providers. This is basically all of the code that's necessary to create all of the needed Nagios types.
* Further fixes toward #965. Turned out that the previous fixLuke Kanies2007-12-211-1/+2
| | | | | | | caused other problems. This whole thing will hopefully get *drastically* easier once we get rid of global resources.
* Hopefully finally fixing #959. Loading the stored cacheLuke Kanies2007-12-121-1/+1
| | | | | | | | | resulted in the resource duplication, based on how the settings are used, so I added a test to only use those settings if the directories do not exist. This isn't a great fix, but it will suffice until I can kill these resource conflicts once and for all.
* Renaming 'configuration' to 'catalog', fixing #954.Luke Kanies2007-12-111-3/+3
|
* Adding an Indirection reference, along with the workLuke Kanies2007-12-102-1/+6
| | | | necessary to support it.
* Fixing the rest of #948. My previous work was sufficient,Luke Kanies2007-12-101-1/+6
| | | | | | except that I was not passing the interpolated value in to the hook, which meant the libdir was set to something like $vardir/lib.
* Fixing part of #948 -- per-setting hooks are now calledLuke Kanies2007-12-101-15/+38
| | | | | when the configuration file is parsed. The bug is still there, but I'm getting closer.
* Fixing the markup on the pkgdmg provider so it is a bit betterLuke Kanies2007-11-281-1/+1
|
* Fixing #781, from what I can tell. I'm leaving it withLuke Kanies2007-11-271-11/+29
| | | | | no tests for now, since it's a very small chunk of code and it's *insanely* difficult to test this kind problem.
* Fixing the asuser method in Puppet::Util::SUIDManagerLuke Kanies2007-11-271-15/+13
| | | | | | | | so that it correctly just yields if you're not root. It also no longer tries to set :uid or :gid; just :euid and :egid, and it once again sets :egid before it sets :euid, which is important because you usually can't change your group after you've changed your user id.
* Fixing the breakage that I caused when I added the 'declared_feature?'Luke Kanies2007-11-261-1/+1
| | | | method to provider features.
* Rewriting the tests for the package resource type, fixing #930.Luke Kanies2007-11-261-11/+11
|
* Merge branch 'plugins_mount', fixing #891.Luke Kanies2007-11-241-1/+9
|\ | | | | | | | | | | Conflicts: CHANGELOG
| * Integrating Matt Palmer's patch to provide a 'plugins'Luke Kanies2007-11-241-1/+9
| | | | | | | | | | | | | | | | | | | | mount, fixing #891. The patch was ported to the current code by David Schmitt, I applied the rest of Matt's patches, and I then fixed all of the code so that the tests passed. The primary change I had to make to the patch was reenabling host expansion in paths -- his patch had disabled it.
* | Applying patch ↵Luke Kanies2007-11-231-1/+1
|/ | | | 20070913004017-6856b-cdbbba99de0b33b64874205a27833b5114fcc6b9.patch by womble -- Allow empty config settings
* Fixing #886 -- the problem was the I had changed the baseLuke Kanies2007-11-231-0/+5
| | | | | class for Parameter, which apparently lost the 'nodoc' method for that class.
* Added calls to endgrent/endpwent in util/posix.rb toLuke Kanies2007-11-231-0/+7
| | | | fix #791.
* Reverting the changes I'd made toward removing the globalLuke Kanies2007-11-191-1/+1
| | | | | | | | resources. These are commits: c19835ce9f8a5138b30a1a32ca741c996b0916d2 9290cc89a2206fb5204578f8e91208857a48b147 ffb4c2dbc7314b364d25e4f7be599ef05b767b44
* Merge commit 'davids-bugfixes/rest/fix-815-by-using-main-explicitly'Luke Kanies2007-11-182-9/+3
|\
| * fix #815: add :main to all use() for :reporting and :metricsDavid Schmitt2007-11-091-1/+1
| |