Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
script: "bundle exec rake validate && bundle exec rake lint && bundle exec rake spec SPEC_OPTS='--format documentation'"
language: ruby
rvm:
- "2.1.6"
- "2.3.1"

sudo: false
2 changes: 0 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,4 @@ group :test do
gem 'beaker-puppet_install_helper', :require => false
gem 'net-dns'
gem 'dnsruby'
gem 'rest-client'

end
28 changes: 19 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ This is a DNS record management module with support for creating records in DNSi

### Requirements

The gems 'rest-client' is needed to manage DynECT, while fog is needed to manage everything else except bind.
The 'fog' gem is needed to manage all providers except Bind.

For Bind, you'll need to have a key configured for DDNS - https://wiki.debian.org/DDNS has more information

Expand All @@ -45,19 +45,19 @@ dns_record { "test-2a-records.ops.puppetlabs.net":
}

dns_record { "test-cname.ops.puppetlabs.net":
domain => 'ops.puppetlabs.net',
ensure => present,
domain => 'ops.puppetlabs.net',
content => 'test-1a-record.ops.puppetlabs.net',
type => 'CNAME',
ttl => '16000',
ensure => present
}

dns_record { "test-txt.ops.puppetlabs.net":
domain => 'ops.puppetlabs.net',
ensure => present,
domain => 'ops.puppetlabs.net',
content => 'Test TXT Record',
type => 'TXT',
ttl => '32000',
ensure => present
}
~~~

Expand All @@ -73,23 +73,33 @@ Dns_record {
}

dns_record { "test-1a-record.puppetware.org":
ensure => present
ensure => present,
domain => 'puppetware.org',
content => '172.16.100.150',
type => 'A',
ttl => '4800',
}

# content can also accept array

dns_record { "test-1a-record.puppetware.org":
ensure => present,
domain => 'puppetware.org',
content => ['172.16.100.150', '172.16.100.134'],
type => 'A',
ttl => '4800',
}

dns_record { "test-cname.puppetware.org":
ensure => present
ensure => present,
domain => 'puppetware.org',
content => 'test-1a-record.puppetware.org',
type => 'CNAME',
ttl => '16000',
}

dns_record { "test-txt.puppetware.org":
ensure => present
ensure => present,
domain => 'puppetware.org',
content => 'Test TXT Record',
type => 'TXT',
Expand Down Expand Up @@ -124,7 +134,7 @@ For the acceptance test, set up a few environment variables to ensure no issues.
#####`type`
*Required* The type of the DNS record. Accepts A, TXT, and CNAME for dynect, all types for bind9.
#####`content`
*Required* The value of the DNS record. Can accept an array for bind9.
*Required* The value of the DNS record. Can accept an array for bind9 and DynECT.


## Limitations
Expand Down
7 changes: 0 additions & 7 deletions lib/puppet/feature/rest_client.rb

This file was deleted.

Loading