summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util
Commit message (Collapse)AuthorAgeFilesLines
...
| * Fixed #791 - You should now be able to create and find a user/group in one ↵Luke Kanies2008-10-021-12/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | transaction. The real problem was that the 'gid' and 'uid' methods didn't handle the case where 'get_posix_field' didn't return a value, and the subsequent 'get_posix_field' calls couldn't handle that. This commit moves the tests for Posix to spec, and fixes the specific bug. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Adding comments to Puppet::Util::CacherLuke Kanies2008-10-151-2/+26
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Merge branch '0.24.x'Luke Kanies2008-09-234-475/+11
|\| | | | | | | | | | | | | | | | | | | Conflicts: lib/puppet/metatype/container.rb lib/puppet/metatype/instances.rb lib/puppet/metatype/metaparams.rb lib/puppet/metatype/relationships.rb lib/puppet/metatype/schedules.rb
| * Fixed #1521 -- ldap user and group are now used with the default connectionLuke Kanies2008-09-171-1/+11
| | | | | | | | | | | | when available. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Fixed #1553 - Puppet and Facter cannot both install the plist module into ↵James Turnbull2008-09-133-474/+0
| | | | | | | | two different locations
* | Merge branch '0.24.x'Luke Kanies2008-08-201-4/+0
|\|
| * Removed reference to namespaces from --genconfig documentationJames Turnbull2008-08-211-4/+0
| |
* | Removing dead-end file work as promised.Luke Kanies2008-08-201-52/+0
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Adding files temporarily, since I've decided this work is a dead-end.Luke Kanies2008-08-201-0/+52
| | | | | | | | | | | | | | I'm merely adding these so that they're in the history if I decided to look at them again. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Merge branch '0.24.x'Luke Kanies2008-08-183-29/+90
|\| | | | | | | | | | | | | Conflicts: CHANGELOG test/util/posixtest.rb
| * Fixed #1441 - Updated console coloursJames Turnbull2008-08-011-14/+22
| |
| * Ensure that we consistently use either string #{} interpolation or String.%Daniel Pittman2008-08-011-1/+1
| | | | | | | | | | | | | | interpolation, not both, to avoid issues where a #{} interpolated value contains a % character. Signed-off-by: Daniel Pittman <daniel@rimspace.net>
| * Feature #1241 : Improve performance of group lookupsJames Turnbull2008-07-291-14/+67
| |
* | Merge branch '0.24.x'Luke Kanies2008-07-042-8/+4
|\| | | | | | | | | | | | | | | | | | | Conflicts: lib/puppet/util/settings.rb spec/integration/defaults.rb spec/unit/node/catalog.rb spec/unit/type/interface.rb spec/unit/type/ssh_authorized_key.rb
| * Merge branch 'tickets/0.24.x/1231' of git://github.com/lak/puppet into 0.24.xJames Turnbull2008-07-051-2/+4
| |\
| | * Fixed #1231 - Exceptions during startup should now be clear.Luke Kanies2008-07-041-2/+4
| | | | | | | | | | | | | | | | | | | | | This will often result in duplicate information, but at least the information will now always be there. Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Removed debugging from lib/puppet/util/ldap/connection.rbJames Turnbull2008-07-041-1/+0
| |/
* | Merge branch '0.24.x'Luke Kanies2008-07-022-0/+71
|\| | | | | | | | | | | | | | | | | | | | | Conflicts: CHANGELOG spec/unit/node/catalog.rb spec/unit/type/package.rb spec/unit/type/schedule.rb spec/unit/type/service.rb spec/unit/util/settings.rb
| * Adding an 'instance' class method to ldap connections.Luke Kanies2008-07-011-0/+13
| | | | | | | | | | This just returns a Connection instance with the default ldap configuration information already provided.
| * issue 1183Andrew Shafer2008-06-161-0/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added environment awareness to --configprint Pulled the logic for --configprint --genconfig and --genmanifest out of puppet.rb Put the logic in lib/puppet/util/settings.rb and refactored it a bit Added specs for the behavior Reformated the whole spec file to use nested describe Added the new method to the executables The old behavior should be preserved, except for the env is now used
* | Merge branch '0.24.x'Luke Kanies2008-06-141-0/+61
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also added the fixes to make the certhandler tests pass even when certs exist; I'll deal with the conflict later. Conflicts: CHANGELOG bin/puppetd lib/puppet/network/http/handler.rb lib/puppet/network/http/mongrel/rest.rb spec/integration/indirector/rest.rb spec/integration/network/server/mongrel.rb spec/integration/network/server/webrick.rb spec/unit/network/http/webrick.rb
| * Applying the fixes recommended by David Schmitt to the inline documentation ofLuke Kanies2008-06-091-4/+4
| | | | | | | | the ResourceTemplate class.
| * Updating the docs for ResourceTemplate.Luke Kanies2008-06-091-0/+23
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * Adding a class for using templates directly within resourcesLuke Kanies2008-06-091-0/+38
| | | | | | | | | | | | (i.e., client-side templates). This would really only be used for composite resources that pass the results of the template on to generated resources.
* | Merge branch '0.24.x'Luke Kanies2008-05-251-0/+7
|\| | | | | | | | | | | | | Conflicts: CHANGELOG lib/puppet/transaction.rb
| * Refactoring warnings.rb for tests.Paul Lathrop2008-05-231-0/+7
| |
* | Merge branch '0.24.x'Luke Kanies2008-05-207-39/+393
|\| | | | | | | | | | | | | | | | | | | Conflicts: CHANGELOG spec/integration/defaults.rb spec/integration/node/catalog.rb spec/unit/rails.rb spec/unit/type/mount.rb
| * Removing an unused file. Closes #1229.Luke Kanies2008-05-191-38/+0
| |
| * Another refactor based on feedback from Luke. This includes adding an ↵Paul Lathrop2008-05-181-0/+4
| | | | | | | | accessor for @@state to make testing a bit cleaner.
| * Adding ldap providers for the user and group type.Luke Kanies2008-05-124-0/+388
| | | | | | | | | | | | These providers use posixAccount and posixGroup. This is a collapsed merge, fwiw.
| * Fix for ticket #1218 - changed to appropriate variable nameJames Turnbull2008-05-101-1/+1
| |
* | Using the new Cacher class for handling cached data.Luke Kanies2008-05-131-8/+10
| | | | | | | | | | This provides a single, global bit for determining whether a given piece of cached data is still valid.
* | Adding a module for handling caching information.Luke Kanies2008-05-071-0/+67
| | | | | | | | | | | | | | I keep having issues with integration tests keeping cached values around, and this module should hopefully give us a single place to invalidate all caches, thus making testing this much easier.
* | The master and client now successfully speak xmlrpc using the new system.Luke Kanies2008-05-071-3/+9
| | | | | | | | | | | | The server is actually serving REST, but the client can't use it until we resolve the format and security issues that REST hasn't yet tackled.
* | The Settings class now clears the 'used' sections when a value is changed.Luke Kanies2008-05-051-1/+3
| | | | | | | | | | | | | | | | | | This makes is so that if you, for instance, reset the vardir, then the next time an initialization call is made, we reuse any previously used sections, thus (hopefully) correctly creating any newly needed directories. This is mostly helpful during testing.
* | I think I've now got the Webrick SSL support working.Luke Kanies2008-04-281-1/+6
| | | | | | | | | | Now I just need to get xmlrpc working alongside REST in both mongrel and webrick.
* | We have a basically functional CA -- it can signLuke Kanies2008-04-151-1/+1
| | | | | | | | | | | | requests and return certificates. There's still plenty more work to do, but I'm probably not much more than a day away from redoing puppetca to use this code.
* | Merge branch '0.24.x'Luke Kanies2008-04-111-2/+2
|\|
| * 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>
* | Fixing tests that were failing as a result of the merge,Luke Kanies2008-04-011-4/+0
| | | | | | | | | | including removing some now-obsolete code and tests from the Settings class.
* | Merge branch 'master' into master_no_global_resourcesLuke Kanies2008-03-319-198/+218
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: lib/puppet/node/catalog.rb lib/puppet/type/pfile.rb lib/puppet/type/pfilebucket.rb lib/puppet/util/filetype.rb spec/unit/node/catalog.rb spec/unit/other/transbucket.rb spec/unit/ral/provider/mount/parsed.rb spec/unit/ral/types/file.rb spec/unit/ral/types/interface.rb spec/unit/ral/types/mount.rb spec/unit/ral/types/package.rb spec/unit/ral/types/schedule.rb spec/unit/ral/types/service.rb test/language/compile.rb test/language/lexer.rb test/language/snippets.rb test/lib/puppettest.rb test/ral/types/basic.rb test/ral/types/cron.rb test/ral/types/exec.rb test/ral/types/file.rb test/ral/types/file/target.rb test/ral/types/filebucket.rb test/ral/types/fileignoresource.rb test/ral/types/filesources.rb test/ral/types/group.rb test/ral/types/host.rb test/ral/types/parameter.rb test/ral/types/sshkey.rb test/ral/types/tidy.rb test/ral/types/user.rb test/ral/types/yumrepo.rb
| * | Merge branch '0.24.x'Luke Kanies2008-03-254-5/+8
| |\| | | | | | | | | | | | | | | | | | | | | | Conflicts: install.rb lib/puppet/defaults.rb man/man8/puppet.8
| | * 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
| | |
| * | Merge branch '0.24.x'Luke Kanies2008-03-202-24/+31
| |\|
| | * 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