Showing with 183 additions and 17 deletions.
  1. +4 −4 .fixtures.yml
  2. +28 −2 .gitignore
  3. +4 −2 .travis.yml
  4. +1 −1 Gemfile
  5. +1 −1 Modulefile
  6. +2 −3 README.markdown
  7. +10 −4 Rakefile
  8. +79 −0 metadata.json
  9. +54 −0 spec/classes/init_spec.rb
8 changes: 4 additions & 4 deletions .fixtures.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
fixtures:
repositories:
"stdlib":
repo: "git://github.com/puppetlabs/puppetlabs-stdlib.git"
ref: "3.2.0"
'stdlib':
repo: 'git://github.com/puppetlabs/puppetlabs-stdlib.git'
ref: '3.2.0'
symlinks:
"dnsclient": "#{source_dir}"
'dnsclient': "#{source_dir}"
30 changes: 28 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,32 @@
pkg/
# Default .gitignore for Ruby
*.gem
*.rbc
.bundle
.config
coverage
InstalledFiles
lib/bundler/man
pkg
rdoc
spec/reports
test/tmp
test/version_tmp
tmp

# YARD artifacts
.yardoc
_yardoc
doc/

# Vim
*.swp

# OS X
.DS_Store
metadata.json

# Puppet
coverage/
spec/fixtures/modules/*
spec/fixtures/manifests/*

Gemfile.lock
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
---
env:
- PUPPET_VERSION=2.7.23
- PUPPET_VERSION=3.3.2
- PUPPET_VERSION=3.4.2
notifications:
email: false
rvm:
- 2.0.0
- 1.9.3
- 1.8.7
matrix:
fast_finish: true
allow_failures:
- env: PUPPET_VERSION=2.7.23
- rvm: 2.0.0
language: ruby
before_script: "gem install --no-ri --no-rdoc bundler"
script: 'bundle exec rake validate && bundle exec rake lint && SPEC_OPTS="--format documentation" bundle exec rake spec'
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source "https://rubygems.org"

puppetversion = ENV.key?('PUPPET_VERSION') ? "= #{ENV['PUPPET_VERSION']}" : ['>= 2.7']
puppetversion = ENV.key?('PUPPET_VERSION') ? "= #{ENV['PUPPET_VERSION']}" : ['>= 3.3']
gem 'puppet', puppetversion
gem 'puppetlabs_spec_helper', '>= 0.1.0'
gem 'puppet-lint', '>= 0.3.2'
Expand Down
2 changes: 1 addition & 1 deletion Modulefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name 'ghoneycutt-dnsclient'
version '3.1.0'
version '3.1.1'
source 'git://github.com/ghoneycutt/puppet-module-dnsclient.git'
author 'ghoneycutt'
license 'Apache License, Version 2.0'
Expand Down
5 changes: 2 additions & 3 deletions README.markdown
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# dnsclient module #

[![Build Status](
https://api.travis-ci.org/ghoneycutt/puppet-module-dnsclient.png?branch=master)](https://travis-ci.org/ghoneycutt/puppet-module-dnsclient)
[![Build Status](https://travis-ci.org/ghoneycutt/puppet-module-dnsclient.png?branch=master)](https://travis-ci.org/ghoneycutt/puppet-module-dnsclient)

This module manages /etc/resolv.conf and its various options.

Expand All @@ -11,7 +10,7 @@ code with no modifications to the module itself as a guiding principle.

# Compatibility #

This module has been tested to work on the following systems.
This module has been tested to work on the following systems with Puppet v3.x and Ruby versions 1.8.7 and 1.9.3.

* EL 5
* EL 6
Expand Down
14 changes: 10 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,17 @@ require 'rubygems'
require 'puppetlabs_spec_helper/rake_tasks'
require 'puppet-lint/tasks/puppet-lint'
PuppetLint.configuration.send('disable_80chars')
PuppetLint.configuration.ignore_paths = ["spec/**/*.pp"]
PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp"]

desc "Run puppet in noop mode and check for syntax errors."
task :validate do
Dir['manifests/**/*.pp'].each do |path|
sh "puppet parser validate --noop #{path}"
end
Dir['manifests/**/*.pp'].each do |manifest|
sh "puppet parser validate --noop #{manifest}"
end
Dir['spec/**/*.rb','lib/**/*.rb'].each do |ruby_file|
sh "ruby -c #{ruby_file}" unless ruby_file =~ /spec\/fixtures/
end
Dir['templates/**/*.erb'].each do |template|
sh "erb -P -x -T '-' #{template} | ruby -c"
end
end
79 changes: 79 additions & 0 deletions metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{
"name": "ghoneycutt-dnsclient",
"version": "3.1.1",
"author": "ghoneycutt",
"summary": "Manage resolver",
"license": "Apache License, Version 2.0",
"source": "git://github.com/ghoneycutt/puppet-module-dnsclient.git",
"project_page": "https://github.com/ghoneycutt/puppet-module-dnsclient/",
"issues_url": "https://github.com/ghoneycutt/puppet-module-dnsclient/issues",
"description": "Manage a DNS client's resolver",
"requirements": [
{
"name": "pe",
"version_requirement": ">= 3.0.0"
},
{
"name": "puppet",
"version_requirement": ">= 3.0.0"
}
],
"operatingsystem_support": [
{
"operatingsystem": "Debian",
"operatingsystemrelease": [
"6"
]
},
{
"operatingsystem": "RedHat",
"operatingsystemrelease": [
"5",
"6"
]
},
{
"operatingsystem": "CentOS",
"operatingsystemrelease": [
"5",
"6"
]
},
{
"operatingsystem": "OracleLinux",
"operatingsystemrelease": [
"5",
"6"
]
},
{
"operatingsystem": "Scientific",
"operatingsystemrelease": [
"5",
"6"
]
},
{
"operatingsystem": "Solaris",
"operatingsystemrelease": [
"10"
]
},
{
"operatingsystem": "SLES"
},
{
"operatingsystem": "SLED"
},
{
"operatingsystem": "Ubuntu",
"operatingsystemrelease": [
"10.04",
"12.04"
]
}
],
"dependencies": [
{"name":"puppetlabs/stdlib","version_requirement":">= 3.2.0"}
]
}
Loading