Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

RSS

ultradns_client (2) Versions 1.0.0

Installs/Configures ultradns_client

Berkshelf/Librarian
Policyfile
Knife
cookbook 'ultradns_client', '= 1.0.0'
cookbook 'ultradns_client', '= 1.0.0', :supermarket
knife cookbook site install ultradns_client
knife cookbook site download ultradns_client
README
Dependencies
Changelog
Quality

ultradns_client_cookbook

Provides ultadns_client LWRP for interaction with the UltraDNS API

Resources and Providers

ultradns_client

Actions

<table> <thead> <tr> <th>Action</th> <th>Description</th> <th>Default</th> </tr> </thead> <tr> <td>create</td> <td>Create new A or CNAME record</td> <td>true</td> </tr> <tr> <td>update</td> <td>Update an existing record. Supports modification of the record value or the TTL. To modify a record name, delete the old record and create a new one</td> <td>false</td> </tr> <tr> <td>delete</td> <td>Delete an existing record</td> <td>false</td> </tr> </table>

Parameters

<table> <thead> <tr> <th>Attribute</th> <th>Description</th> <th>Required</th> <th>Allowed Values</th> <th>Default</th> </tr> </thead> <tr> <td>username</td> <td>Neustar API username</td> <td>true</td> <td>Any</td> <td>None</td> </tr> <tr> <td>password</td> <td>Neustar API password</td> <td>true</td> <td>Any</td> <td>None</td> </tr> <tr> <td>zone</td> <td>DNS zone to modify. The zone must already exist on the account</td> <td>true</td> <td>Any</td> <td>None</td> </tr> <tr> <td>record_name</td> <td>Record to be added / deleted / updated</td> <td>true</td> <td>Any</td> <td>None</td> </tr> <tr> <td>record_type</td> <td>Type of record to create. Cannot be used to change an A record to a CNAME</td> <td>false</td> <td>A, CNAME</td> <td>None</td> </tr> <tr> <td>record_value</td> <td>IP or other record that the entry should point to</td> <td>false</td> <td>Any</td> <td>None</td> </tr> <tr> <td>ttl</td> <td>Record time to live, specified in seconds</td> <td>false</td> <td>Integer</td> <td>300</td> </tr> <tr> <td>connection_options</td> <td> Hash of connection options. Currently supports only host for overriding the default API endpoint </td> <td>false</td> <td>{'host' => 'someapiendpoint'}</td> <td>{}</td> </tr> </table>

Examples

Create A record using the test API endpoint

ultradns_client 'createtest' do
  username node['ultradns_client']['username']
  password node['ultradns_client']['password']
  zone 'api_test.com'
  record_name 'createtest'
  record_type 'A'
  record_value '127.0.0.1'
  ttl 500
  connection_options :host => 'test-restapi.ultradns.com'
  action :create
end

Update A Record

ultradns_client 'update-test' do
 username node['ultradns_client']['username']
 password node['ultradns_client']['password']
 zone 'api_test.com'
 record_name 'update-test'
 record_type 'A'
 ttl 200
 action :update
end

Delete CNAME Record

ultradns_client 'delete-test' do
  username node['ultradns_client']['username']
  password node['ultradns_client']['password']
  zone 'api_test.com'
  record_name 'delete-test'
  record_type 'CNAME'
  action :delete
end

Usage

Include ultradns_client::default recipe

Dependencies

Communication with the API is through ultradns-sdk gem, https://github.com/ultradns/ultradns-sdk-ruby

License and Authors

Author:: Brent Walker (brent.walker@ge.com)

Copyright [2015] [General Electric]

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

0.1.0

Initial release of ultradns_client

Foodcritic Metric
            

1.0.0 passed this metric