Giter Club home page Giter Club logo

chef-dnsimple's Introduction

Description

A Light-weight Resource and Provider (LWRP) supporting automatic DNS configuration via DNSimple's API.

Changes

Build Status

  • Add Test Kitchen
  • Change method of disabling Excon's peer verification.
  • Convert README to markdown so it is displayed nice on Community site.
  • Add default action :create for dnsimple_record.
  • Set values that type can be equal to in dnsimple_record resource.

Requirements

A DNSimple account at http://dnsimple.com

Attributes

All attributes are nil, or false by default.

  • node[:dnsimple][:username]: Your DNSimple login username.
  • node[:dnsimple][:password]: Your DNSimple login password.
  • node[:dnsimple][:domain]: The domain that this node should use.
  • node[:dnsimple][:test]: Unused at this time.

Resources/Providers

dnsimple_record

Manage a DNS resource record through the DNSimple API. This LWRP uses the fog Ruby library to connect and use the API.

Actions:

| Action    | Description          | Default |
|-----------|----------------------|---------|
| *create*  | Create the record.   | Yes     |
| *destroy* | Destroy the record.  |         |

Parameter Attributes:

The type of record can be one of the following: A, CNAME, ALIAS, MX, SPF, URL, TXT, NS, SRV, NAPTR, PTR, AAA, SSHFP, or HFINO.

| Parameter  | Description                | Default |
|------------|----------------------------|---------|
| *domain*   | Domain to manage           |         |
| *name*     | _Name_: Name of the record |         |
| *type*     | Type of DNS record         |         |
| *content*  | String content of record   |         |
| *ttl*      | Time to live.              | 3600    |
| *priority* | Priorty of update          |         |
| *username* | DNSimple username          |         |
| *password* | DNSimple password          |         |
| *test*     | Unused at this time        | false   |

Examples

dnsimple_record "create an A record" do
  name     "test"
  content  "16.8.4.2"
  type     "A"
  domain   node[:dnsimple][:domain]
  username node[:dnsimple][:username]
  password node[:dnsimple][:password]
  action   :create
end

dnsimple_record "create a CNAME record for a Google Apps site calendar" do
  name     "calendar"
  content  "ghs.google.com"
  type     "CNAME"
  domain   node[:dnsimple][:domain]
  username node[:dnsimple][:username]
  password node[:dnsimple][:password]
  action   :create
end

Usage

Add the the dnsimple recipe to a node's run list, or with include_recipe to install the fog gem, which is used to interact with the DNSimple API. See examples of the LWRP usage above.

License and Author

Copyright:: 2014 Aetrion LLC

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.

chef-dnsimple's People

Contributors

billmoritz avatar dje avatar ichilton avatar josacar avatar mattkasa avatar mdxp avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.