summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Some small clarifying refactors and change to objectadd to allow subclasses ofAndrew Shafer2008-10-012-49/+25
| | | | | | | with a uid not need to be a single class us use modify I don't like logic about subclasses in a parent class, but not in a position to address.
* Adding user_attr util to parse attributes on solarisAndrew Shafer2008-10-011-0/+21
| | | | read /etc/user_attr and makes a hash based on the file contents
* Fixed #1586 - Specifying "fully qualified" package names in GentooJames Turnbull2008-10-021-1/+1
|
* 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>
* Refactoring and adding tests to the file group property.Luke Kanies2008-10-021-46/+18
| | | | | | | Drastically simplified the class, removing a lot of obsolete code and adding tests for nearly the whole class. Signed-off-by: Luke Kanies <luke@madstop.com>
* Merge branch 'tickets/0.24.x/1622' into 0.24.xJames Turnbull2008-10-026-107/+67
|\ | | | | | | | | | | Conflicts: CHANGELOG
| * Modified the group and zone resource types to no longer callLuke Kanies2008-09-303-16/+14
| | | | | | | | | | | | | | 'currentpropvalues' as a means of setting all values to absent. There should be no behaviour change from this change. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Modified the behaviour of resource-level 'retrieve' -- it onlyLuke Kanies2008-09-301-7/+17
| | | | | | | | | | | | calls 'retrieve' on each property if the resource exists. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Adding tests for the user retrieve methodLuke Kanies2008-09-301-2/+1
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * Removing commented code from the user type from about 2005Luke Kanies2008-09-301-23/+0
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * The Netinfo and DirectoryService providers can now create user and group ↵Luke Kanies2008-09-302-5/+24
| | | | | | | | | | | | | | | | | | | | simultaneously. This required selectively using property#sync if a 'should' value is present, so that the user's gid property can do the conversion if necessary. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Fixing #1622 - The user type only looks up groups when necessary.Luke Kanies2008-09-301-57/+14
| | | | | | | | | | | | | | Also added a bunch of tests to the user type, and refactored as necessary for this to work. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Fixed #1620 - Add 'sles' to Puppet confines when 'suse' is usedJames Turnbull2008-10-012-3/+3
| |
* | Add parser for arbitrary expressionsBrice Figureau2008-10-013-645/+1020
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The expressions can be used in if 'test' and in the right side of assignements. The expressions can contain any number of sub-expressions combined by either arithmetic operators, comparison operators, or boolean operators. Random Usage Examples: $result = ((( $two + 2) / $one) + 4 * 5.45) - (6 << 7) + (0x800 + -9) or if ($a < 10) and ($a + 10 != 200) { ... }
* | Add arithmetic operators to ASTBrice Figureau2008-09-304-0/+89
| | | | | | | | | | This changeset adds +,-,/,*,<< and >> computation and AST parse nodes.
* | Add not operator to ASTBrice Figureau2008-09-302-0/+20
| |
* | Add comparison operators (< > == != <= >=) to ASTBrice Figureau2008-09-302-0/+38
| |
* | Add boolean operators to ASTBrice Figureau2008-09-302-0/+49
| |
* | Add warning and forcibly set to :md5 fixing #1564Paul Nasrat2008-09-301-0/+4
| |
* | 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>