summaryrefslogtreecommitdiffstats
path: root/lib/puppet
Commit message (Collapse)AuthorAgeFilesLines
...
* | Fix metadata class for cases when checksum_type setPaul Nasrat2008-09-301-3/+3
| |
* | Fixed #1603 - Added support for running Puppet inside a Rack applicationJames Turnbull2008-09-301-0/+148
| |
* | Fix ticket 1596 in new fileset code, use tmpdir in fileserver tests.Paul Nasrat2008-09-301-1/+1
| |
* | Make fileserver use fileset for recursion and handle dangling links by ↵Paul Nasrat2008-09-302-42/+25
|/ | | | ignoring them fixing #1544
* Fixed #1610 - Raise "Filebucketed" messages to Notice priorityJames Turnbull2008-09-261-2/+2
|
* Added a number of confines to package providersJames Turnbull2008-09-256-2/+16
|
* Fixed #1609 - Added confines for the Gentoo, FreeBSD and SMF (Solaris) ↵James Turnbull2008-09-253-0/+6
| | | | service providers
* Fixed #1608 - Added ubuntu to defaultfor for apt providerJames Turnbull2008-09-251-1/+1
|
* Fixed #1607 - Added ubuntu to defaultfor for Debian service providerJames Turnbull2008-09-251-1/+1
|
* Fixed #1472 -- defined, exported resources in the current compile now get ↵Luke Kanies2008-09-251-1/+2
| | | | | | | | | expanded correctly. This was working for defined resources in the db, but not in the current compile. I just had to mark the resources as non-exported.
* Fixed #1045 - Multiple metaparams all get added to resources.Luke Kanies2008-09-241-1/+1
| | | | | | | The problem was that I was using a 'return' in a loop where I should have been using a 'next'. Signed-off-by: Luke Kanies <luke@madstop.com>
* Removing some code in Parameter that is unnecessary.Luke Kanies2008-09-232-6/+2
| | | | | | | | | It's duplicated in Property, but was only ever called if the instance was Property -- in other words, the base class new about its subclass, but the subclass overrode that method any way. Signed-off-by: Luke Kanies <luke@madstop.com>
* Fixed #1595 - Internally, Property#retrieve is no longer calledLuke Kanies2008-09-232-23/+6
| | | | when no 'should' value is available for a resource.
* Only apply splay the first runAndrew Shafer2008-09-211-8/+8
| | | | Issue 1491
* Add an append (+=) variable operator:Brice Figureau2008-09-215-716/+760
| | | | | | | | | | | | | | | | | | | The append variable operator can be used to append something to a variable defined in a parent scope, containing either a string or an array. The main use is to append array elements in classes to a variable globally defined in a node. Example: $ssh_users = ['brice', 'admin1'] class backup { $ssh_users += ['backup_operator'] ... } Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* Bug #1550 - Rework to avoid regressing rspec tests, add new rspec tests for ↵Paul Nasrat2008-09-202-10/+17
| | | | | | templatedir as a path Signed-off-by: Paul Nasrat <pnasrat@googlemail.com>
* Allow a templatedir to be colon separated.Thom May2008-09-201-3/+15
| | | | | Signed-off-by: Thom May <thom@clearairturbulence.org> Signed-off-by: Paul Nasrat <pnasrat@googlemail.com>
* 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 #1572 -- file purging now fails if remote sources do not exist.Luke Kanies2008-09-161-0/+9
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Fixing #1576 - moving all of the Puppet::Type code back into type.rb.Luke Kanies2008-09-1511-2123/+2100
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Fixed issues with file descriptors leaking into subprocessesJames Turnbull2008-09-131-0/+1
|
* Fixed #1571 - Puppet::Util::binary returns incorrect resultsJames Turnbull2008-09-131-8/+3
|
* Fixed #1553 - Puppet and Facter cannot both install the plist module into ↵James Turnbull2008-09-135-476/+2
| | | | two different locations
* Adjusted hpuxuseradd user provider to confine to HP-UX and fixed HP-UX user ↵James Turnbull2008-09-131-3/+4
| | | | provider path regression
* Fixed #1566 - changed password property of the user typeJames Turnbull2008-09-131-0/+8
|
* Fixed debug messages in package type - thanks to Todd Zullinger for this fixJames Turnbull2008-09-121-2/+2
|
* Fixes #1455 - Adds HP-UX support for user typeJames Turnbull2008-09-061-0/+29
|
* Fixes #1551 puppetmaster.freshness xmlrpc call returns incorrect typeNigel Kersten2008-09-051-1/+1
|
* Fixes #1554 - Fix exception for undefined hostnameJames Turnbull2008-09-051-2/+4
|
* Runit service providerBrice Figureau2008-08-291-0/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This provider manages daemons running supervised by Runit[1]. It tries to detect the service directory, with by order of preference: * /service * /var/service * /etc/service The daemon directory should be placed in a directory that can be by default in: * /etc/sv * /var/lib/service or this can be overriden in the service resource parameters: service { "myservice": provider => "runit", path => "/path/to/daemons"; } This provider supports out of the box: * start/stop * enable/disable * restart * status [1]: http://smarden.sunsite.dk/runit/
* Daemontools service providerBrice Figureau2008-08-291-0/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | | This provider manages daemons running supervised under D.J.Bernstein daemontools. It tries to detect the service directory, with by order of preference: * /service * /etc/service * /var/lib/svscan The daemon directory should be placed in a directory that can be by default in: * /var/lib/service * /etc or this can be overriden in the service resource parameters: service { "myservice": provider => "daemontools", path => "/path/to/daemons"; } This provider supports out of the box: * start/stop (mapped to enable/disable) * enable/disable * restart * status Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* Fixed #1488 - Moved individual functions out of functions.rb intoJames Turnbull2008-08-2613-217/+208
| | | | | the lib/puppet/parser/functions directory. New functions should be created in this directory.
* Fixed #1457 - case insensitive match for errorJames Turnbull2008-08-241-1/+1
|
* Fix leaking LoadedFile when adding templates to be watchedAndrew Shafer2008-08-231-13/+18
|
* id column is autogenerated by rails as a primary key, there is no needBrice Figureau2008-08-222-8/+17
| | | | | | | to create an additional index on this column. This changeset contains the new schema and a migration. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* Removed reference to namespaces from --genconfig documentationJames Turnbull2008-08-211-4/+0
|
* Fixed #1508 - Add HP-UX package provider.Mark Plaksin2008-08-201-0/+41
|
* Fix #1502 - abysmal storeconfig performance - part2Brice Figureau2008-08-171-2/+10
| | | | | | | | | | | | | | Resource parameters whose values are a resource reference (ie require, notify...) where always DELETEd/INSERTed because the code comparing resource reference compared object instances instead of their values (since Puppet::Parser::Resource::Reference doesn't override == ), leading to storeconfig performance issues. The correct fix would have been to define == in Puppet::Parser::Resource::Reference but that might introduce some side effects I don't know. Hence, the fix introduces a local compare() method that knows how to compare Puppet::Parser::Resource::Reference. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* Fix #1052 - abysmal storeconfig performance - part1Brice Figureau2008-08-171-1/+1
| | | | | | | | | | | | | | Resources whose references are of the form: Main::Sub1::Sub2 are extracted from the database under the form: Main::sub1::sub2 Puppet then fails to match them against compiled resources of same references which are capitalized as they should, and tries to overwrite them on every storeconfig run, leading to tons of cascading DELETE/INSERT, hurting performance. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* Fix #1510 - storeconfig fails with rails 2.1Brice Figureau2008-08-171-5/+5
| | | | | | | | This is a workaround. Since rails seems to have difficulties to map associations to Puppet classes, we explain it carefully what to expect. Changelog
* Fixes #1274 - allow class names to start with numbersJames Turnbull2008-08-171-1/+1
|
* Fixed #1442 - replaced use of Facter for report titling with certnameJames Turnbull2008-08-161-7/+1
|
* Fixed $1456 - add proxy configuration to yum repoJames Turnbull2008-08-131-2/+18
|
* Fixing #1447 -- Replacing Puppet::PackageError with Puppet::Error.Luke Kanies2008-08-122-4/+4
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Added tests for TemplateWrapper's use of Scope#to_hash.Luke Kanies2008-08-091-11/+10
| | | | | | We should deprecate the method_missing stuff in 0.25. Signed-off-by: Luke Kanies <luke@madstop.com>
* Fixed #1457 - removed confine warningJames Turnbull2008-08-061-1/+1
|
* Fixed #1441 - Updated console coloursJames Turnbull2008-08-011-14/+22
|
* 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