summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | Deprecating 'Puppet.type'; replacing all instances with Puppet::Type.typeLuke Kanies2008-12-1855-192/+194
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Finishing the work to use Puppet::Resource instead of TransObjectLuke Kanies2008-12-1816-177/+234
| | | | | | | | | | | | | | | | | | | | | | | | This was a complicated project because TransObject had made its way into too many classes. The usage by Util::Settings was particularly nefarious. Refactoring and fixing this exposed some other issues. The main complication, though, was the extent to which the Puppet::Type class depended on TransObject. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Adding name/namevar abstraction to Puppet::Resource.Luke Kanies2008-12-182-8/+82
| | | | | | | | | | | | | | This hopefully provides a single place to manage this complexity, and I'll be using it to simplify Puppet::Type. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Supporting a nil expirer on cacher objects.Luke Kanies2008-12-182-1/+23
| | | | | | | | | | | | | | | | | | | | 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-183-6/+20
| | | | | | | | | | | | | | 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-185-342/+372
| | | | | | | | | | | | | | 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-1810-194/+256
| | | | | | | | | | | | | | | | | | 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-182-5/+20
| | | | | | | | | | | | | | | | | | 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-187-558/+220
| | | | | | | | | | | | | | | | | | 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-1813-96/+33
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Using Puppet::Resource to convert parser resources to RAL resourcesLuke Kanies2008-12-183-28/+9
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Adding resource convertion to the parser resourcesLuke Kanies2008-12-183-128/+112
| | | | | | | | | | | | | | 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-182-0/+22
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Correcting whitespace and nested describes in Puppet::Resource::CatalogLuke Kanies2008-12-181-665/+667
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Renaming Puppet::Node::Catalog to Puppet::Resource::CatalogLuke Kanies2008-12-1835-124/+124
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Renaming Puppet::ResourceReference to Puppet::Resource::ReferenceLuke Kanies2008-12-0911-46/+47
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Adding Trans{Object,Bucket} backward compatibility to Puppet::ResourceLuke Kanies2008-12-094-0/+160
| | | | | | | | | | | | 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-094-5/+316
| | | | | | | | | | | | | | | | | | | | | | 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>
* | Removing the "clear" from the macauthorization testsLuke Kanies2008-12-091-6/+1
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Merge branch '0.24.x'Luke Kanies2008-12-0926-123/+972
|\| | | | | | | | | | | | | | | | | Conflicts: CHANGELOG lib/puppet/type/tidy.rb spec/unit/type/file/ensure.rb spec/unit/type/tidy.rb
| * Fix ZFS autorequire testAndrew Shafer2008-12-081-19/+19
| | | | | | | | Couldn't find a default provider because the world is not my laptop
| * Add a unique name to objects so we can determine uniqueness when read back inJohn Ferlito2008-12-093-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 launchd service test on non-OSX platformsJames Turnbull2008-12-091-1/+1
| |
| * Fix the spec tests to work on other platforms, do the confine around OS X ↵Nigel Kersten2008-12-094-89/+85
| | | | | | | | versions more sanely
| * remove unnecessary mk_resource_methods callNigel Kersten2008-12-091-2/+0
| |
| * CHANGELOG updatesJames Turnbull2008-12-092-5/+51
| |
| * Add a unique name to objects so we can determine uniqueness when read back inJohn Ferlito2008-12-093-74/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-082-0/+23
| |
| * Refactor #1802 Use 'zfs get -H -o value' instead of parsing output for valueAndrew Shafer2008-12-082-14/+3
| | | | | | | | just simplifying code
| * Fixing #1800 - tidy now correctly ignores missing files and directoriesLuke Kanies2008-12-082-1/+16
| | | | | | | | 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-082-0/+25
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * Fix rake abort when there is a matching confineBrice Figureau2008-12-081-1/+1
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
| * spec tests for type and provider and some code cleanup to adhere to DRYNigel Kersten2008-12-064-160/+416
| |
| * 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
| |
| * Make ralsh behave more sanely for non-existent objects and property valuesNigel Kersten2008-12-061-1/+3
| |
| * Added git changelog taskJames Turnbull2008-12-041-0/+19
| |
| * Bug #1780 Fixing meaningless testAndrew Shafer2008-12-021-2/+10
| | | | | | | | Gave meaning to test dependent on feature for role property
* | Fix #1483 - protect report terminus_class when testing for RESTBrice Figureau2008-12-081-0/+2
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | Fix #1483 - use REST to transmit reports over the wireBrice Figureau2008-12-068-24/+254
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | Fixing all broken tests. Most of them were broken by fileserving changes.Luke Kanies2008-12-028-8/+21
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Merge branch '0.24.x'Luke Kanies2008-12-02747-35777/+7353
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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