summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* [#4198] Require 'fileutils' everywhere FileUtils is usedJesse Wolfe2010-07-095-0/+5
|
* [#4196] Move the docs into the source directory structureJesse Wolfe2010-07-0911-2/+914
| | | | | | Since it is no longer possible to find the running executable from the call stack, docs have to be kept somewhere in the source tree. Of course, at this point, we shouldn't be using RDoc::Usage at all.
* Fix for #4178 - generalize autoloading to include .rbLuke Kanies2010-07-094-30/+13
| | | | | | | | | | This mostly modifies autoloading to look for files ending in either 'pp' or 'rb' using Dir globing with {,.pp,.rb} or .{pp,rb} as appropriate. It could easily be extended to add support for other formats (e.g. xml) by adding them to the globs (though, if this were to be done often, having a centralized list of supported extensions would be a good (and easy) refactor). Signed-off-by: Luke Kanies <luke@puppetlabs.com>
* [#3582] Remove assumption that Puppet.settings would return values of a ↵Jesse Wolfe2010-07-091-8/+8
| | | | | | | | | consistent type Currently, we cannot trust Puppet::Util::Settings to return values of any particular type for a given setting. This patch makes sure that we explicitly cast to string when checking for empty values.
* [#4180] Support legacy module structureJesse Wolfe2010-07-091-1/+3
| | | | | This patch updates the earlier #4180 patches to support both the old and the new module structures.
* Update RDoc parser to reflect change of custom plugin and fact locationsJames Turnbull2010-07-091-1/+1
|
* Fixed #4180 - Updated old module structure to match correct defaultJames Turnbull2010-07-091-1/+1
| | | | Thanks to Daniel Grafe for the patch
* [#2730] mount ensure present shouldn't unmountJesse Wolfe2010-07-091-6/+21
| | | | | | | | | Ensuring "defined" on a mount just demands that the entry appears in the fstab file. Ensure "present" is now an alias for ensure "defined", so drives are no longer unmounted unless the resource is set to ensure "unmounted" This patch is based on a patch submitted by Aurelien Degremont.
* Fixed subscribe exampleJames Turnbull2010-07-091-1/+1
|
* Redmine: 2474 - Fix for mount fstype documentationSteven Jenkins2010-07-091-1/+1
|
* Fix for #4137 -- Oracle needs text for strings > 255Markus Roberts2010-07-081-1/+1
| | | | | | Oracle has a maximum VARCHAR (string) column length of 255 characters. Any column that is larger than 255 characters needs to be cast as a :text column instead of :string.
* Fix for #2807 Puppet settings available as variablesMarkus Roberts2010-07-071-1/+21
| | | | | | | This is Luke's patch plus a change to fix a test that it broke. It creates a new sub-scope off the top scope, called "settings" and adds each of the environment's settings to it as variables, thus satisfying the ticket while taking us one step further from being able to implement futures. *sigh*
* [#4161] RDoc fails to parse some of our ruby syntaxJesse Wolfe2010-07-072-0/+12
| | | | | | | | RDoc's parser produces errors on this sort of statement: def (variable).method This patch wraps our occurances of those definitions with comments that suspend RDoc parsing.
* [#3169] Adds more debugging to SSL cert verificationNick Lewis2010-07-071-0/+14
| | | | | This patch (via Nicholas Veeser) adds more debugging when SSL cert verification fails.
* Fix for #4167 -- overriding file permissions in conf fileMarkus Roberts2010-07-072-1/+2
| | | | | The logic which iterates over the searchpath in reverse does not translate the name. Therefore file overrides in :master or :agent are not picked up.
* saving work for my unit tests. The redhat one still fails...Dan Bode2010-07-071-1/+1
| | | | | | [4123] [4124] - combined unit test for both fixes since they share some common code. proper unit tests to verify features for both patches.
* [4123] - allows self.instances to correctly report state of services.Dan Bode2010-07-072-2/+3
| | | | | | Added hasstatus => true as attribute for new provider instance in init. redhat checks the hasstatus in the provider to determine service status.
* created init provider method self.get_services which accepts an array of ↵Dan Bode2010-07-072-3/+11
| | | | | | | | filenames to exclude when processing defpath. also updated redhat provider to pass in a list of services to ignore. didnt need to munch exclude to an array, include? is safe to call on strings
* [#4114] Fix failures in the unit testsMatt Robinson2010-07-071-7/+2
| | | | | | The initial commit changed the name of a method (close -> close_all) and changed the way the array log destination worked before we saw that the unit tests were using it differently.
* [#4114] Added queueing to the logNick Lewis2010-07-072-29/+41
| | | | | The log will now queue any log messages created when there is no destination, and will flush the queue when a destination is added.
* [#4110] Wrap Type#retrieve calls for backwards compatibilityJesse Wolfe2010-07-074-6/+12
| | | | | | | | This patch introduces Type#retrieve_resource as a wrapper for Type#resource, to coerce the return value from legacy types from Hash to Resource. Signed-off-by: Jesse Wolfe <jes5199@gmail.com>
* Fix for #4120 No namevar running puppet doc -r typeMarkus Roberts2010-07-071-2/+2
| | | | Reworked it to use the new key_attributes instead.
* [#2370] Allow OpenBSD to add packages with versions and flavorsMatt Robinson2010-07-062-9/+43
| | | | This patch is from Joe McDonagh <joseph.e.mcdonagh@gmail.com>
* [#4108] Changed missing Application constant errorNick Lewis2010-07-061-1/+1
| | | | | Changed the error message when searching for an Application constant which is undefined.
* [#4149] Don't create two Resource::TypeCollectionsJesse Wolfe2010-07-062-2/+2
| | | | | | By asking the environment for known resources instead of creating a type collection ourselves, we avoid accidentally creating two Resource::TypeCollection objects.
* [#3906] Fixed missing constant Puppet::Rails when using storeconfigsNick Lewis2010-07-062-5/+1
| | | | | | The hook for storeconfig will now require 'puppet/rails' if the setting is set to true. It was previously being indirectly required via parser/interpreter, which was removed.
* [#3961] Part two: --destroy should also be localJesse Wolfe2010-07-061-1/+1
|
* Fix for #4148 (2.6 is greater than 0.25.x)Markus Roberts2010-07-061-1/+1
| | | | | We had a hardcoded assumption that the version number would always start with a zero, and thus were failing to recognise 2.6.0 as greater than 0.25.x
* Fix for #4142 stray use of JSON instead of PSONMarkus Roberts2010-07-061-1/+1
| | | | Somehow one use of JSON escaped the global find and replace of PSON --> JSON.
* [#3172] Fix the arguments to Application::Kick.new, which I had brokenJesse Wolfe2010-07-021-1/+1
|
* Maint: Improve the speed of setting settings.Nick Lewis2010-07-021-12/+19
| | | | | Our settings were slow because I was querying Application objects for their run_mode repetitively
* maint: :mutable_defaults to improve spec consistencyJesse Wolfe2010-07-023-4/+18
| | | | | | Added a Puppet::Util::Settings layer called :mutable_defaults to emulate the interaction between Puppet::Application and defaults.rb that was getting thwarted by rspec.
* [#4090] Fix the run_mode for certs and put tests on the applications to ↵Matt Robinson2010-07-023-5/+5
| | | | | | | assert their run_mode Also cleanup of an unecessary puts line, make master tests run when on their own, and moving a require to a more usual spot.
* [#4059] Minor errors preventing ralsh from runningJesse Wolfe2010-07-011-2/+1
|
* [#2713] Enable ELSIFJesse Wolfe2010-07-012-864/+917
|
* [#3172] puppet kick can take hostnames as bare argumentsJesse Wolfe2010-07-011-4/+8
|
* [#4108] Missing constants fail deliberately and with a messageNick Lewis2010-07-011-1/+6
| | | | | | | Previously, any failed call to Puppet::Application.find would result in an error being raised by const_get, resulting in a messy crash with a stack trace. Now that error is handled, and the application will print a message and exit.
* [#4092] Changed notify message to defined instead of changedNick Lewis2010-07-011-1/+1
| | | | | | Notify was returning a nil current value, rather than :absent, which caused puppet to think the message had been changed from blank to its new value, rather than defined as that value.
* Fix for #4091 -- require loop in executablesMarkus Roberts2010-07-012-2/+0
| | | | | The describe and resource (ralsh) applications required puppet, creating a loop & thus crashing them.
* [#4090] Change how RunMode instances are created so that an object for each ↵Matt Robinson2010-07-013-2/+8
| | | | | | | RunMode is only created once instead of every time it's called Got lots of unpredictable test failures, presumably because a new RunMode was being created every time we accessed the RunMode.
* [#4090] Fix last few tests and renames of mode to run_modeMatt Robinson2010-07-012-2/+2
|
* [#4090] Git rid of the idea that run_mode is a configurable option with defaultsMatt Robinson2010-07-015-9/+9
| | | | | Along the way this fixes an issue with 2.6 alpha that sections of the puppet config file were getting ignored.
* [#4090] Rename mode (:master, :agent, :user) to run_modeMatt Robinson2010-07-0114-34/+34
| | | | | | | | Mode is a terribly overused word. Files use it, puppetdoc uses it, and certs use it, and those are just the places that I happened to stumble upon. It makes reading code very confusing and finding things in code difficult. I know namespacing allows us to reuse words for method and variable names, but that doesn't mean we should.
* [#4089] Replace internal usage of :check with :auditNick Lewis2010-07-018-11/+11
| | | | | | Per Luke's replacement of :check with :audit, and deprecation of :check, I've replaced all of our internal uses of :check with :audit. Importantly, this silence the deprecation warnings during regular usage from eg. ralsh.
* [#3961] puppet cert --generate implies ca_location = :localJesse Wolfe2010-06-301-1/+5
|
* [#3961] Rename cert's @mode to @cert_mode to reduce confusionJesse Wolfe2010-06-301-5/+5
|
* maint: Confine a test that depends on sqliteMatt Robinson2010-06-281-0/+3
| | | | I'm also going to update the wiki to mention sqlite is a test dependency
* Removing obsolete nodescope conceptLuke Kanies2010-06-281-3/+1
| | | | Signed-off-by: Luke Kanies <luke@puppetlabs.com>
* Fix #3665 - part 2, node inheritance fixesBrice Figureau2010-06-281-5/+6
| | | | | | | | We were looking only to the class hierarchies when trying to find an ancestor to the current type. Thus we were never trying to climb up the hierarchy of nodes when evaluating nodes. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* Fix #3665 - main class shouldn't be a subscope of itselfBrice Figureau2010-06-281-1/+1
| | | | | | | | During the refactoring of AST hostclass/node to non AST objects, we lost the fact that the main class already comes with a scope (ie the top one), so when we evaluate its code we shouldn't create a subscope for it. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>