summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Expose all puppet variables as instance member variables of the template ↵Daniel Pittman2008-08-012-13/+59
| | | | | | | | | | | | | | | | | wrapper. This helps resolve redmine #1427, by providing a safe mechanism to access variables. * Implement Puppet::Parser::Scope#to_hash, which returns a hash containing all the variable bindings in the current and, optionally, parent scope. * Use that to set instance member variables into Puppet::Parser::Templatewrapper * Report the time taken for variable binding at debug level, to help identify any performance regression that is encountered in the real world. * Rename the @scope and @file members of the template wrapper, to avoid clashing with a scope variable exposed within puppet. Signed-off-by: Daniel Pittman <daniel@rimspace.net> (cherry picked from commit ba220b41e4f509f2632e2664d332e49b20a70ea7)
* Ensure that we consistently use either string #{} interpolation or String.%Daniel Pittman2008-08-016-16/+23
| | | | | | | interpolation, not both, to avoid issues where a #{} interpolated value contains a % character. Signed-off-by: Daniel Pittman <daniel@rimspace.net>
* Added a search method to the YAML indirector.AJ Christensen2008-08-011-1/+10
| | | | This performs a glob on the YAML directory, and instances everything it finds
* Fixes #1417 - whitespace in ssh_auth_key providerJames Turnbull2008-07-301-1/+1
|
* Feature #1241 : Improve performance of group lookupsJames Turnbull2008-07-291-14/+67
|
* Bug #1448: Puppet CA incorrectly writes out all certs to inventory .txt on ↵Nigel Kersten2008-07-291-2/+3
| | | | each certificate signing
* Incremented versionsJames Turnbull2008-07-221-1/+1
|
* Fixes #1445 and #1426James Turnbull2008-07-221-1/+6
|
* Fixing the renaming code to skip missing directories.Luke Kanies2008-07-211-1/+4
| | | | | | | | I couldn't get this to fail in a targeted regression test, but if it's not working, it causes a failure in the webrick tests. Signed-off-by: Luke Kanies <luke@madstop.com>
* Fixing a cert test to pass on Darwin.Luke Kanies2008-07-211-0/+1
| | | | | | | Darwin has a case-insensitive FS, so the test was failing because it was specifically testing case sensitivity. Signed-off-by: Luke Kanies <luke@madstop.com>
* Revert "Merging fsweetser's selinux patch against 0.24.4"James Turnbull2008-07-206-366/+0
| | | | This reverts commit f16da4250c16aeab932a81a349df059c69d7ee23.
* Merging fsweetser's selinux patch against 0.24.4Brett Lentz2008-07-206-0/+366
|
* Fixed all of the fileserving termini so they use indirection requests.Luke Kanies2008-07-184-33/+33
| | | | | | | | This looks like a much larger commit than it is -- it doesn't change any behaviour at all, it just adds some integration tests (which expose the problem) and then switches from an ad-hoc api to a request-based api. Signed-off-by: Luke Kanies <luke@madstop.com>
* You can now select the encoding format when transferring the catalog,Luke Kanies2008-07-183-12/+22
| | | | | | | | | | with 'yaml' still being the default but 'marshal' being an option. This is because testing has shown drastic performance differences between the two, with up to 70% of compile time being spent in YAML code. Use the 'catalog_format' setting to choose your format, and the setting must be set on the client. Signed-off-by: Luke Kanies <luke@madstop.com>
* Revert "Fixed #1201 - all external node attributes are converted to strings."Luke Kanies2008-07-181-7/+0
| | | | | | | This reverts commit ac7f59618a80b6a4aac777f6184e7fa6a0614079. The reason for this revert is that the problem never really existed; Ruby's true and false are always used unless you quote them.
* The mongrel-related tests now run without mongrel.Luke Kanies2008-07-171-6/+8
| | | | | | | | | | | Here were the main changes necessary: * Fixed the class loader so it only loads mongrel if it's available. * Fixed the test runner to skip example groups contained in non-runnable example groups. * Fixed the Mongrel tests to use quoted class names instead of constants, since the constants themselves would be absent. Signed-off-by: Luke Kanies <luke@madstop.com>
* Fix Ticket 1426 - services on redhat are restarted againJames Turnbull2008-07-171-2/+10
| | | | | as far I see there have been a regression while refactoring the redhat service provider to user /sbin/service. This commit fixes this bug (1426) and service restarts are working again on redhat based systems. There are no tests, as I couldn't figure out how that should be tested. It seems that some restart logic is already tested, however it looks like not every single kind of provider is covered by tests, nor I see at the moment how I could do that.
* Fixed #1414 - Return code from waitpid now right shifted 8 bitsJames Turnbull2008-07-171-1/+1
|
* Fail instead of log when rescuing remote file connectionsAndrew Shafer2008-07-141-2/+1
| | | | | | Issue 1397 one line fix, very simple
* Fix #1409, Move path expansion from the type into the providerFrancois Deppierraz2008-07-112-25/+37
| | | | | | This avoid exceptions during type instanciation when a user does not yet exist. The drawback is that we cannot use generated resources anymore and have to mkdir, chown and chmod directly in the provided which is somewhat hackish.
* Fixing #1408 - --loadclasses works again.Luke Kanies2008-07-101-1/+1
| | | | | | | | | The problem was that the mechanism I was using for passing the node to the compiler was conflicting with the Indirector::Request's method of handling node authentication. Signed-off-by: Luke Kanies <luke@madstop.com>
* Fixed #1407 - allowdupe is now a boolean group parameter.Luke Kanies2008-07-091-1/+1
| | | | | | This just fixes a regression. Signed-off-by: Luke Kanies <luke@madstop.com>
* Fixed #1396 - Added sha1 function from DavidS to coreJames Turnbull2008-07-082-1/+9
|
* Merge branch 'tickets/0.24.x/1226' of git://github.com/lak/puppet into 0.24.xJames Turnbull2008-07-081-12/+33
|\
| * Fixed #1226 - Gems can now specify source repositories.Luke Kanies2008-07-071-15/+20
| | | | | | | | | | | | | | | | | | Added tests for the bit that's changed here (and caught a couple of bugs in the original patch). This is all a modification of Sam Quigley's work. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Correct whitespaceLuke Kanies2008-07-071-7/+7
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * Importing Sam Quigley's work to enhance gem support for sources.Luke Kanies2008-07-071-5/+21
| |
* | Merge branch 'tickets/0.24.x/1272' of git://github.com/lak/puppet into 0.24.xJames Turnbull2008-07-082-0/+23
|\ \ | | | | | | | | | | | | | | | | | | Conflicts: CHANGELOG spec/unit/provider/user/ldap.rb
| * | Fixed #1272 - ldap group names will be converted to GIDs.Luke Kanies2008-07-072-0/+23
| |/ | | | | | | | | | | | | Note that this only looks up ldap groups, at this point; if you want to set an ldap user's primary group to a local group, you have to specify the GID. Signed-off-by: Luke Kanies <luke@madstop.com>
* / Fixed #1399 - the ldap user provider knows it can manage passwords.Luke Kanies2008-07-071-0/+2
|/ | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Merge branch 'refactor/0.24.x/transaction_changes' of ↵James Turnbull2008-07-0510-190/+125
|\ | | | | | | git://github.com/lak/puppet into 0.24.x
| * Testing and simplifying the Transaction::Change#backward method.Luke Kanies2008-07-041-14/+5
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * Removing the Transaction::Change#transaction accessor.Luke Kanies2008-07-042-14/+2
| | | | | | | | | | | | | | As with Events, this was never used (beyond being assigned), so I've gotten rid of it. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Refactoring the Transaction::Event class.Luke Kanies2008-07-044-23/+10
| | | | | | | | | | | | | | | | | | | | | | The class had a 'transaction' accessor that was assigned but never used, and it is simple enough that it needed direct arguments rather than named arguments. The rest of the code is changing the other classes that use Events. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Adding tests to the Transaction::Change class.Luke Kanies2008-07-041-35/+19
| | | | | | | | | | | | | | There's a small amount of refactoring here, mostly removing code that appears to not be used at all. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Renaming Puppet::Event to Puppet::Transaction::EventLuke Kanies2008-07-034-31/+26
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * Renaming the Puppet::PropertyChange class to Puppet::Transaction::Change.Luke Kanies2008-07-037-147/+137
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | 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>
* | Merge branch 'ticket/0.24.x/1067' of git://github.com/littleidea/puppet into ↵James Turnbull2008-07-052-18/+7
|\ \ | | | | | | | | | 0.24.x
| * | file object creation should fail if source is not presentAndrew Shafer2008-07-042-18/+7
| |/ | | | | | | | | | | removed described? logic from insync? in ensure.rb and source.rb raise in source#retrieve if the source is not found
* | Removed debugging from lib/puppet/util/ldap/connection.rbJames Turnbull2008-07-041-1/+0
| |
* | Merge branch 'tickets/0.24.x/1232' of git://github.com/lak/puppet into 0.24.xJames Turnbull2008-07-042-4/+5
|\ \
| * | Fixed #1232 - the rundir no longer specifies a user/group,Luke Kanies2008-07-032-4/+5
| |/ | | | | | | | | | | and there are now client- and server-specific yaml directories. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Removing all of the code related to the interface type.Luke Kanies2008-07-033-454/+0
| |
* | Doing what I can to fix #1128, but just in preparation for removing 'interface'.Luke Kanies2008-07-031-6/+17
|/ | | | | | | | | | This type needs to be started again from scratch, and I'm not going to do so for 0.24.5. In particular, the model for red hat and sunos need to match -- they should both use the device name as the actual name. Signed-off-by: Luke Kanies <luke@madstop.com>
* Minor documentation updates for ssh_authorized_key typeJames Turnbull2008-07-031-7/+7
|
* Merge branch 'tickets/0.24.x/1384' of git://github.com/ctrlaltdel/puppet ↵James Turnbull2008-07-032-16/+36
|\ | | | | | | into 0.24.x
| * Use generate instead of autorequire in the ssh_authorized_key type based on ↵Francois Deppierraz2008-07-021-3/+3
| | | | | | | | Luke's comments
| * ssh_authorized_key: autorequire, default permissions and cleanupFrancois Deppierraz2008-06-272-16/+36
| | | | | | | | | | | | | | | | | | | | Autorequire the target file and its parent directory as well. Default permissions and owner are now set on the file and its parent directory. Moved target attribute setting code from prefetch() in the provider to the type itself. This seems much cleaner to me.