Skip to content
Browse files

fix provider updated_by_last_action

  • Loading branch information...
1 parent 46a7c6c commit a349f30d0e9018a63d34a2af4214ea87ee941557 @jtimberman jtimberman committed Nov 1, 2010
View
62 dynect/metadata.json
@@ -1,32 +1,32 @@
{
- "recommendations": {
- },
- "attributes": {
- },
- "maintainer": "Opscode, Inc.",
- "suggestions": {
- },
- "dependencies": {
- },
- "maintainer_email": "cookbooks@opscode.com",
- "conflicting": {
- },
- "platforms": {
- },
- "license": "Apache 2.0",
- "version": "0.3.1",
- "providing": {
- },
- "recipes": {
- "dynect": "Installs the dynect_rest RubyGem",
- "dynect::a_record": "Example resource usage to configure an A record",
- "dynect::ec2": "Dynamically configures Dyn resource records for EC2 nodes based on instance ID and prepopulated attributes on the node"
- },
- "replacing": {
- },
- "name": "dynect",
- "description": "LWRP for managing DNS records with Dynect's REST API",
- "groupings": {
- },
- "long_description": "DESCRIPTION\n===========\n\nAutomatically configures system DNS using Dyn's API.\n\nREQUIREMENTS\n============\n\nChef 0.8+.\n\nA Dynect account.\n\nThe `dynect_rest` gem. The `dynect::default` recipe installs this gem from gemcutter.\n\nWorks on any platform Chef runs on that can install gems from Rubygems.org.\n\nATTRIBUTES\n==========\n\nThe following attributes need to be set either in a role or on a node directly, they are not set at the cookbook level:\n\n* dynect.customer - Customer ID\n* dynect.username - Username\n* dynect.password - Password\n* dynect.zone - Zone\n* dynect.domain - Domain\n\nExample JSON:\n\n {\n \"dynect\": {\n \"customer\": \"CUSTOMER\",\n \"username\": \"USERNAME\",\n \"password\": \"PASSWORD\",\n \"zone\": \"ZONE\",\n \"domain\": \"DOMAIN\"\n }\n }\n\nEC2 specific attributes:\n\n* dynect.ec2.type - type of system, web, db, etc. Default is 'ec2'.\n* dynect.ec2.env - logical application environment the system is in. Default is 'prod'.\n\nRESOURCES\n=========\n\nrr\n--\n\nDNS Resource Record.\n\nActions:\n\nApplies to the DNS record being managed.\n\n* `:create`\n* `:replace`\n* `:update`\n* `:delete`\n\nAttribute Parameters:\n\n* `record_type` - DNS record type (CNAME, A, etc)\n* `rdata` - record data, see the Dyn API documentation.\n* `ttl` - time to live in seconds\n* `fqdn` - fully qualified domain name\n* `username` - dyn username\n* `password` - dyn password\n* `customer` - dyn customer id\n* `zone` - DNS zone\n\nNone of the parameters have default values.\n\nExample:\n\n dynect_rr \"webprod\" do\n record_type \"A\"\n rdata({\"address\" => \"10.1.1.10\"})\n fqdn \"webprod.#{node.dynect.domain}\"\n customer node[:dynect][:customer]\n username node[:dynect][:username]\n password node[:dynect][:password]\n zone node[:dynect][:zone]\n end\n\nRECIPES\n=======\n\nThis cookbook provides the following recipes.\n\ndefault\n-------\n\nThe default recipe installs Adam Jacob's `dynect_rest` gem during the Chef run's compile time to ensure it is available in the same run as utilizing the `dynect_rr` resource/provider.\n\nec2\n---\n\n**Only use this recipe on Amazon AWS EC2 hosts!**\n\nThe `dynect::ec2` recipe provides an example of working with the Dyn API with EC2 instances. It creates CNAME records based on the EC2 instance ID (`node.ec2.instance_id`), and a constructed hostname from the dynect.ec2 attributes.\n\nThe recipe also edits resolv.conf to search compute-1.internal and the dynect.domain and use dynect.domain as the default domain, and it will set the nodes hostname per the DNS settings.\n\na_record\n--------\n\nThe `dynect::a_record` recipe will create an `A` record for the node using the detected hostname and IP address from `ohai`.\n\nFURTHER READING\n===============\n\nInformation on the Dynect API:\n\n* [PDF](http://cdn.dyndns.com/pdf/Dynect-API.pdf)\n\nDynect REST Ruby Library:\n\n* [Gem](http://rubygems.org/gems/dynect_rest)\n* [Code](http://github.com/adamhjk/dynect_rest)\n\nLICENSE AND AUTHOR\n==================\n\n- Author: Adam Jacob (<adam@opscode.com>)\n- Copyright: 2010, Opscode, Inc.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"
- }
+ "name": "dynect",
+ "description": "LWRP for managing DNS records with Dynect's REST API",
+ "long_description": "DESCRIPTION\n===========\n\nAutomatically configures system DNS using Dyn's API.\n\nREQUIREMENTS\n============\n\nChef 0.8+.\n\nA Dynect account.\n\nThe `dynect_rest` gem. The `dynect::default` recipe installs this gem from gemcutter.\n\nWorks on any platform Chef runs on that can install gems from Rubygems.org.\n\nATTRIBUTES\n==========\n\nThe following attributes need to be set either in a role or on a node directly, they are not set at the cookbook level:\n\n* dynect.customer - Customer ID\n* dynect.username - Username\n* dynect.password - Password\n* dynect.zone - Zone\n* dynect.domain - Domain\n\nExample JSON:\n\n {\n \"dynect\": {\n \"customer\": \"CUSTOMER\",\n \"username\": \"USERNAME\",\n \"password\": \"PASSWORD\",\n \"zone\": \"ZONE\",\n \"domain\": \"DOMAIN\"\n }\n }\n\nEC2 specific attributes:\n\n* dynect.ec2.type - type of system, web, db, etc. Default is 'ec2'.\n* dynect.ec2.env - logical application environment the system is in. Default is 'prod'.\n\nRESOURCES\n=========\n\nrr\n--\n\nDNS Resource Record.\n\nActions:\n\nApplies to the DNS record being managed.\n\n* `:create`\n* `:replace`\n* `:update`\n* `:delete`\n\nAttribute Parameters:\n\n* `record_type` - DNS record type (CNAME, A, etc)\n* `rdata` - record data, see the Dyn API documentation.\n* `ttl` - time to live in seconds\n* `fqdn` - fully qualified domain name\n* `username` - dyn username\n* `password` - dyn password\n* `customer` - dyn customer id\n* `zone` - DNS zone\n\nNone of the parameters have default values.\n\nExample:\n\n dynect_rr \"webprod\" do\n record_type \"A\"\n rdata({\"address\" => \"10.1.1.10\"})\n fqdn \"webprod.#{node.dynect.domain}\"\n customer node[:dynect][:customer]\n username node[:dynect][:username]\n password node[:dynect][:password]\n zone node[:dynect][:zone]\n end\n\nRECIPES\n=======\n\nThis cookbook provides the following recipes.\n\ndefault\n-------\n\nThe default recipe installs Adam Jacob's `dynect_rest` gem during the Chef run's compile time to ensure it is available in the same run as utilizing the `dynect_rr` resource/provider.\n\nec2\n---\n\n**Only use this recipe on Amazon AWS EC2 hosts!**\n\nThe `dynect::ec2` recipe provides an example of working with the Dyn API with EC2 instances. It creates CNAME records based on the EC2 instance ID (`node.ec2.instance_id`), and a constructed hostname from the dynect.ec2 attributes.\n\nThe recipe also edits resolv.conf to search compute-1.internal and the dynect.domain and use dynect.domain as the default domain, and it will set the nodes hostname per the DNS settings.\n\na_record\n--------\n\nThe `dynect::a_record` recipe will create an `A` record for the node using the detected hostname and IP address from `ohai`.\n\nFURTHER READING\n===============\n\nInformation on the Dynect API:\n\n* [PDF](http://cdn.dyndns.com/pdf/Dynect-API.pdf)\n\nDynect REST Ruby Library:\n\n* [Gem](http://rubygems.org/gems/dynect_rest)\n* [Code](http://github.com/adamhjk/dynect_rest)\n\nLICENSE AND AUTHOR\n==================\n\n- Author: Adam Jacob (<adam@opscode.com>)\n- Copyright: 2010, Opscode, Inc.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
+ "maintainer": "Opscode, Inc.",
+ "maintainer_email": "cookbooks@opscode.com",
+ "license": "Apache 2.0",
+ "platforms": {
+ },
+ "dependencies": {
+ },
+ "recommendations": {
+ },
+ "suggestions": {
+ },
+ "conflicting": {
+ },
+ "providing": {
+ },
+ "replacing": {
+ },
+ "attributes": {
+ },
+ "groupings": {
+ },
+ "recipes": {
+ "dynect": "Installs the dynect_rest RubyGem",
+ "dynect::ec2": "Dynamically configures Dyn resource records for EC2 nodes based on instance ID and prepopulated attributes on the node",
+ "dynect::a_record": "Example resource usage to configure an A record"
+ },
+ "version": "0.3.2"
+}
View
2 dynect/metadata.rb
@@ -3,7 +3,7 @@
license "Apache 2.0"
description "LWRP for managing DNS records with Dynect's REST API"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
-version "0.3.1"
+version "0.3.2"
recipe "dynect", "Installs the dynect_rest RubyGem"
recipe "dynect::ec2", "Dynamically configures Dyn resource records for EC2 nodes based on instance ID and prepopulated attributes on the node"
recipe "dynect::a_record", "Example resource usage to configure an A record"
View
8 dynect/providers/rr.rb
@@ -51,7 +51,7 @@ def action_create
rr.save
@dyn.publish
Chef::Log.info("Added #{@new_resource} to dynect")
- new_resource.updated_by_last_action = true
+ new_resource.updated_by_last_action(true)
end
end
@@ -72,7 +72,7 @@ def action_update
@rr.save
@dyn.publish
Chef::Log.info("Updated #{@new_resource} at dynect")
- new_resource.updated_by_last_action = true
+ new_resource.updated_by_last_action(true)
end
else
action_create
@@ -87,14 +87,14 @@ def action_replace
rr.save(true)
@dyn.publish
Chef::Log.info("Replaced #{@new_resource} at dynect")
- new_resource.updated_by_last_action = true
+ new_resource.updated_by_last_action(true)
end
def action_delete
if @rr
@rr.delete
@dyn.publish
Chef::Log.info("Deleted #{@new_resource} from dynect")
- new_resource.updated_by_last_action = true
+ new_resource.updated_by_last_action(true)
end
end
View
2 mysql/metadata.json
@@ -236,5 +236,5 @@
"mysql::server": "Installs packages required for mysql servers w/o manual intervention",
"mysql::server_ec2": "Performs EC2-specific mountpoint manipulation"
},
- "version": "0.24.0"
+ "version": "0.24.1"
}
View
2 mysql/metadata.rb
@@ -3,7 +3,7 @@
license "Apache 2.0"
description "Installs and configures mysql for client or server"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
-version "0.24.0"
+version "0.24.1"
recipe "mysql", "Includes the client recipe to configure a client"
recipe "mysql::client", "Installs packages required for mysql clients using run_action magic"
recipe "mysql::server", "Installs packages required for mysql servers w/o manual intervention"
View
6 mysql/providers/database.rb
@@ -3,20 +3,20 @@
action :flush_tables_with_read_lock do
Chef::Log.info "mysql_database: flushing tables with read lock"
db.query "flush tables with read lock"
- new_resource.updated_by_last_action = true
+ new_resource.updated_by_last_action(true)
end
action :unflush_tables do
Chef::Log.info "mysql_database: unlocking tables"
db.query "unlock tables"
- new_resource.updated_by_last_action = true
+ new_resource.updated_by_last_action(true)
end
action :create_db do
unless @mysqldb.exists
Chef::Log.info "mysql_database: Creating database #{new_resource.database}"
db.query("create database #{new_resource.database}")
- new_resource.updated_by_last_action = true
+ new_resource.updated_by_last_action(true)
end
end
View
4 pacman/metadata.json
@@ -1,7 +1,7 @@
{
"name": "pacman",
"description": "Updates package list for pacman and has LWRP for pacman groups",
- "long_description": "DESCRIPTION\n===========\n\nPrimarily refreshes the pacman package cache from the FTP servers.\n\nREQUIREMENTS\n============\n\nArchLinux.\n\nLICENSE AND AUTHOR\n==================\n\nAuthor:: Joshua Timberman (<joshua@opscode.com>)\n\nCopyright:: Opscode, Inc. (<legal@opscode.com>)\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
+ "long_description": "DESCRIPTION\n===========\n\nRefreshes the pacman package cache from the FTP servers and provides LWRPs related to pacman\n\nREQUIREMENTS\n============\n\nPlatform: ArchLinux. Pacman is not relevant on other platforms.\n\nRESOURCES\n=========\n\n`pacman_group`\n--------------\n\nUse the `pacman_group` resource to install or remove pacman package groups. Note that at this time the LWRP will check if the group is installed but doesn't do a lot of error checking or handling. File a ticket on the COOK project at tickets.opscode.com for improvements and feature requests.\n\nThe `options` parameter can be used to pass arbitrary options to the pacman command.\n\n`pacman_aur`\n------------\n\nUse the `pacman_aur` resource to install packages from ArchLinux's AUR repository.\n\n### Actions:\n\n* :build - Builds the package.\n* :install - Installs the built package.\n\n### Parameters:\n\n* version - hardcode a version\n* builddir - specify an alternate build directory, defaults to `Chef::Config[:file_cache_path]/builds`.\n* options - pass arbitrary options to the pacman command.\n* `pkgbuild_src` - whether to use an included PKGBUILD file, put the PKGBUILD file in in the `files/default` directory.\n* patches - array of patch names, as files in `files/default` that should be applied for the package.\n\nhttp://aur.archlinux.org/\n\nUSAGE\n=====\n\nInclude `recipe[pacman]` early in the run list, preferably first, to ensure that the package caches are updated before trying to install new packages.\n\n\nLICENSE AND AUTHOR\n==================\n\nAuthor:: Joshua Timberman (<joshua@opscode.com>)\n\nCopyright:: Opscode, Inc. (<legal@opscode.com>)\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
"maintainer": "Opscode, Inc.",
"maintainer_email": "cookbooks@opscode.com",
"license": "Apache 2.0",
@@ -25,5 +25,5 @@
},
"recipes": {
},
- "version": "1.0.0"
+ "version": "1.0.1"
}
View
2 pacman/metadata.rb
@@ -3,4 +3,4 @@
license "Apache 2.0"
description "Updates package list for pacman and has LWRP for pacman groups"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
-version "1.0.0"
+version "1.0.1"
View
4 pacman/providers/group.rb
@@ -26,7 +26,7 @@
run_command_with_systems_locale(
:command => "pacman --sync --noconfirm --noprogressbar#{expand_options(@new_resource.options)} #{name}"
)
- new_resource.updated_by_last_action = true
+ new_resource.updated_by_last_action(true)
end
end
@@ -35,7 +35,7 @@
run_command_with_systems_locale(
:command => "pacman --remove --noconfirm --noprogressbar#{expand_options(@new_resource.options)} #{name}"
)
- new_resource.updated_by_last_action = true
+ new_resource.updated_by_last_action(true)
end
end
View
2 samba/metadata.json
@@ -46,5 +46,5 @@
"samba::client": "Installs smbclient package",
"samba::server": "Installs samba server packages and configures smb.conf"
},
- "version": "0.10.2"
+ "version": "0.10.3"
}
View
2 samba/metadata.rb
@@ -3,7 +3,7 @@
license "Apache 2.0"
description "Installs/Configures samba"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
-version "0.10.2"
+version "0.10.3"
recipe "samba::default", "Includes the samba::client recipe"
recipe "samba::client", "Installs smbclient package"
View
6 samba/providers/user.rb
@@ -27,7 +27,7 @@
execute "Create #{new_resource.name}" do
command "echo -ne '#{pw}\n#{pw}\n' | smbpasswd -s -a #{new_resource.name}"
end
- new_resource.updated_by_last_action = true
+ new_resource.updated_by_last_action(true)
end
end
@@ -36,7 +36,7 @@
execute "Enable #{new_resource.name}" do
command "smbpasswd -e #{new_resource.name}"
end
- new_resource.updated_by_last_action = true
+ new_resource.updated_by_last_action(true)
end
end
@@ -45,7 +45,7 @@
execute "Delete #{new_resource.name}" do
command "smbpasswd -x #{new_resource.name}"
end
- new_resource.updated_by_last_action = true
+ new_resource.updated_by_last_action(true)
end
end

0 comments on commit a349f30

Please sign in to comment.
Something went wrong with that request. Please try again.