Skip to content

Instantly share code, notes, and snippets.

@thommay
Created January 5, 2011 17:32
Show Gist options
  • Select an option

  • Save thommay/766632 to your computer and use it in GitHub Desktop.

Select an option

Save thommay/766632 to your computer and use it in GitHub Desktop.
@fog = Fog::AWS::DNS.new(:aws_access_key_id => @new_resource.accesskey, :aws_secret_access_key => @new_resource.secretkey)
@zone = @fog.zones.get @new_resource.zoneid
rr = @zone.records.new({"name" => @nfqdn,
"ip" => @new_resource.rdata,
"type" => @new_resource.record_type })
rr.save
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment