Opscode Chef Cookbook: Zerigo
I had a need to update DNS records in Zerigo automatically via Chef, so I wrote a Chef cookbook that provides LWRPs that allow easy interaction with Zerigo in my recipes. You can grab it from the Opscode community site at http://community.opscode.com/cookbooks/zerigo, or from Github at https://github.com/threetee/chef-cookbook-zerigo.
Usage:
include_recipe "zerigo" zerigo_zone "create a zone" do domain "test.com" email "hostmaster@test.com" zerigo_email "zerigo-account@somewhere.com" zerigo_token "zerigo_api_token" action :create end zerigo_record "create a record" do name "test" value "16.8.4.2" type "A" zone_id "test.com" # Zerigo-hosted domain name zerigo_email "zerigo-account@somewhere.com" zerigo_token "zerigo_api_token" action :create end
