summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* | Supporting a nil expirer on cacher objects.Luke Kanies2008-12-181-1/+8
| | | | | | | | | | | | | | | | | | | | This works for those classes like Puppet::Type that use an expirer that isn't always present (they use their catalog as an expirer). The behaviour is now that if there is no expirer, expire() is a no-op and all data is considered expired all the time, so it's always fresh. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Setting resource defaults immediately.Luke Kanies2008-12-182-6/+10
| | | | | | | | | | | | | | This makes it easier for later parameters to depend on the values of earlier parameters. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Refactoring the Settings class to use Puppet::ResourceLuke Kanies2008-12-182-181/+69
| | | | | | | | | | | | | | It also now uses the Catalog instead of the recursive TransObject stuff. Signed-off-by: Luke Kanies <luke@madstop.com>
* | TransObject is nearly deprecated now.Luke Kanies2008-12-185-96/+71
| | | | | | | | | | | | | | | | | | This is all of the plumbing work, the only real thing left to do is to fix the Settings class so that it uses Puppet::Resource instances instead of TransObject and TransBucket. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Simplifying the initialization interface for ReferencesLuke Kanies2008-12-181-5/+10
| | | | | | | | | | | | | | | | | | You previously had to call new(nil, "Foo[bar]") if you just had the resource reference as a string. Now you can call new("Foo[bar]"), but the old behaviour works, too. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Replacing TransObject usage with Puppet::ResourceLuke Kanies2008-12-184-520/+95
| | | | | | | | | | | | | | | | | | This completely reorganizes how RAL resources are initialized, and in the process I was able to remove a lot of code (I removed other apparently obsolete code at the same time). Signed-off-by: Luke Kanies <luke@madstop.com>
* | Renaming the "Catalog#to_type" method to "Catalog#to_ral"Luke Kanies2008-12-183-9/+12
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Using Puppet::Resource to convert parser resources to RAL resourcesLuke Kanies2008-12-181-1/+1
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Adding resource convertion to the parser resourcesLuke Kanies2008-12-181-44/+32
| | | | | | | | | | | | | | Also uses Puppet::Resource's method for creating transportable resources. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Adding equality testing to Puppet::Resource::ReferenceLuke Kanies2008-12-181-0/+6
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Renaming Puppet::Node::Catalog to Puppet::Resource::CatalogLuke Kanies2008-12-188-11/+11
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Renaming Puppet::ResourceReference to Puppet::Resource::ReferenceLuke Kanies2008-12-099-19/+20
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Adding Trans{Object,Bucket} backward compatibility to Puppet::ResourceLuke Kanies2008-12-092-0/+69
| | | | | | | | | | | | This is further progress toward #1808. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Starting on #1808 - Added a base resource class.Luke Kanies2008-12-092-5/+112
| | | | | | | | | | | | | | | | | | | | | | This class borrows heavily from the Puppet::Parser::Resource class and from Puppet::TransObject, partially because it will hopefully eventually supplant both of them. The class isn't used at all yet; now we need to go through the codebase and remove everything related to TransObject. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Merge branch '0.24.x'Luke Kanies2008-12-0914-96/+614
|\| | | | | | | | | | | | | | | | | Conflicts: CHANGELOG lib/puppet/type/tidy.rb spec/unit/type/file/ensure.rb spec/unit/type/tidy.rb
| * Add a unique name to objects so we can determine uniqueness when read back inJohn Ferlito2008-12-092-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The nagios object definitions have been updated to correlate with Nagios 3.0.6. In Nagios it is possible to have multiple service checks with the same service_description. eg I could have an check with a service_description of 'SSH' for multiple hosts. So in puppet we can't use it as a unique name for the resource. This patch modifies the code to use $name as the unique name. For some types eg command_name $name ends up in the config and thus we can tell which puppet resources match to which nagios ones. For other types like service there is no direct mapping from $name to a nagios attibute. So we use a custom attribute called _naginator_name. Signed-off-by: John Ferlito <johnf@inodes.org>
| * Fix the spec tests to work on other platforms, do the confine around OS X ↵Nigel Kersten2008-12-092-5/+9
| | | | | | | | versions more sanely
| * remove unnecessary mk_resource_methods callNigel Kersten2008-12-091-2/+0
| |
| * Add a unique name to objects so we can determine uniqueness when read back inJohn Ferlito2008-12-092-74/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The nagios object definitions have been updated to correlate with Nagios 3.0.6. In Nagios it is possible to have multiple service checks with the same service_description. eg I could have an check with a service_description of 'SSH' for multiple hosts. So in puppet we can't use it as a unique name for the resource. This patch modifies the code to use $name as the unique name. For some types eg command_name $name ends up in the config and thus we can tell which puppet resources match to which nagios ones. For other types like service there is no direct mapping from $name to a nagios attibute. So we use a custom attribute called _naginator_name. Signed-off-by: John Ferlito <johnf@inodes.org>
| * Bug #1803 Zfs should auto require the ancestor file systemsAndrew Shafer2008-12-081-0/+6
| |
| * Refactor #1802 Use 'zfs get -H -o value' instead of parsing output for valueAndrew Shafer2008-12-081-12/+1
| | | | | | | | just simplifying code
| * Fixing #1800 - tidy now correctly ignores missing files and directoriesLuke Kanies2008-12-081-1/+8
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * Fixing #1794 - returning sync when it is already initializedLuke Kanies2008-12-081-0/+1
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * Fixing #1750 again - All of the properties and now :ensure check replace?Luke Kanies2008-12-081-0/+4
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * spec tests for type and provider and some code cleanup to adhere to DRYNigel Kersten2008-12-062-160/+183
| |
| * Finished work on rules creation and deletionNigel Kersten2008-12-062-89/+129
| |
| * new better way of doing stdinNigel Kersten2008-12-061-2/+3
| |
| * finished rights flush, working on rulesNigel Kersten2008-12-061-7/+37
| |
| * macauthorization typeNigel Kersten2008-12-062-83/+46
| |
| * reset macauthorization tree. Initial checkin of new type/providerNigel Kersten2008-12-063-0/+396
| |
| * add NetInfo deprecation notice to user and group providers, make the ↵Nigel Kersten2008-12-063-6/+15
| | | | | | | | directoryservice user provider the default, remove default for darwin from NetInfo providers
| * Warn that the NetInfo nameservice provider is deprecated. Use ↵Nigel Kersten2008-12-061-2/+7
| | | | | | | | directoryservice instead
| * add some more sanity checks around stdinNigel Kersten2008-12-061-3/+9
| |
| * add support for stdin to Puppet::Util.executeNigel Kersten2008-12-061-2/+2
| |
* | Fix #1483 - use REST to transmit reports over the wireBrice Figureau2008-12-063-12/+13
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | Fixing all broken tests. Most of them were broken by fileserving changes.Luke Kanies2008-12-025-6/+14
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Merge branch '0.24.x'Luke Kanies2008-12-0287-629/+4655
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: bin/puppetca lib/puppet/type/group.rb lib/puppet/type/tidy.rb lib/puppet/util/settings.rb Also edited the following files so tests will pass: lib/puppet/type/component.rb spec/unit/ssl/certificate_request.rb spec/unit/type/computer.rb spec/unit/type/mcx.rb spec/unit/type/resources.rb spec/unit/util/settings.rb spec/unit/util/storage.rb test/ral/type/zone.rb
| * Updated mcx type and provider with comprehensive spec tests.Jeffrey McCune2008-12-021-2/+2
| | | | | | | | | | | | | | | | Signed-off-by: Jeffrey McCune <mccune.jeff@gmail.com> Fixed default provider error with mcx type spec. Signed-off-by: Jeffrey McCune <mccune.jeff@gmail.com>
| * Fixing splaytime testsLuke Kanies2008-12-011-1/+1
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * Removing debugging from the "resources" typeLuke Kanies2008-12-011-1/+0
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * Relicense under GPLv2+Bryan Kearney2008-12-022-8/+8
| |
| * Hopefully fixing #1703 - using a mutex around the sending of the tagmailsLuke Kanies2008-12-021-6/+14
| | | | | | | | | | | | | | It's not really possible to test that this fixes the problem, and I can't even reproduce it, but hopefully this will work. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Ticket 1780 - Solaris RBAC roles should be autorequiredAndrew Shafer2008-12-011-0/+11
| | | | | | | | Autorequire the roles that belong to the user so they will be created first
| * Feature 1696 Add support for branded zonesAndrew Shafer2008-12-012-4/+15
| | | | | | | | Applied the patch from the ticket and wrote tests with the changes
| * Bug #1778 - Solaris RBAC profiles should maintain orderAndrew Shafer2008-12-013-3/+31
| | | | | | | | | | | | Created OrderedList property Added to profile property small refactor in List to make inheriting easier
| * Bug # 1680 Now you can set the hashed passwords on solarisAndrew Shafer2008-12-011-11/+18
| | | | | | | | Straight /etc/shadow hackery
| * Feature #1783 - Add ZFS supportAndrew Shafer2008-12-014-0/+273
| | | | | | | | Types and providers to manage zfs and zpool
| * Handle password when user is createdAndrew Shafer2008-12-011-1/+6
| | | | | | | | strip out the -p and call password= after the thing is done
| * == is not =Andrew Shafer2008-12-011-1/+1
| |
| * Solaris doesn't have a native tool to set hashed passwordsAndrew Shafer2008-12-011-5/+30
| | | | | | | | | | | | | | Added support for passwords by directly editing /etc/shadow (I tried to make it work with libshadow, but considering it is not packaged for Solaris and adds little benefit, I decided against it) password and password= are now defined on the default Solaris provider