Skip to content
This repository was archived by the owner on Nov 7, 2024. It is now read-only.

Commit b81a920

Browse files
Initial commit
0 parents  commit b81a920

22 files changed

+1769
-0
lines changed

.fixtures.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
fixtures:
2+
repositories:
3+
"archive": "git://github.com/voxpupuli/puppet-archive.git"
4+
"epel": "git://github.com/stahnma/puppet-module-epel.git"
5+
"staging": "git://github.com/voxpupuli/puppet-staging.git"
6+
"stdlib": "git://github.com/puppetlabs/puppetlabs-stdlib.git"
7+
"systemd": "git://github.com/camptocamp/puppet-systemd.git"
8+
symlinks:
9+
"kong": "#{source_dir}"

.gitignore

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
pkg/
2+
Gemfile.lock
3+
vendor/
4+
spec/fixtures/
5+
.vagrant/
6+
.bundle/
7+
coverage/
8+
log/
9+
.idea/
10+
*.iml
11+
.*.sw

.rspec

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--format documentation
2+
--color

.rubocop.yml

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
AllCops:
2+
Include:
3+
- ./**/*.rb
4+
Exclude:
5+
- vendor/**/*
6+
- pkg/**/*
7+
- spec/fixtures/**/*
8+
9+
# Configuration parameters: AllowURI, URISchemes.
10+
Metrics/LineLength:
11+
Max: 328
12+
13+
# 'Complexity' is very relative
14+
Metrics/PerceivedComplexity:
15+
Enabled: false
16+
17+
# 'Complexity' is very relative
18+
Metrics/CyclomaticComplexity:
19+
Enabled: false
20+
21+
# 'Complexity' is very relative
22+
Metrics/AbcSize:
23+
Enabled: false
24+
25+
# Method length is not necessarily an indicator of code quality
26+
Metrics/MethodLength:
27+
Enabled: false
28+
29+
# Module length is not necessarily an indicator of code quality
30+
Metrics/ModuleLength:
31+
Enabled: false
32+
33+
# Class length is not necessarily an indicator of code quality
34+
Metrics/ClassLength:
35+
Enabled: false
36+
37+
# dealbreaker:
38+
Style/TrailingCommaInArguments:
39+
Enabled: false
40+
Style/TrailingCommaInLiteral:
41+
Enabled: false
42+
Style/ClosingParenthesisIndentation:
43+
Enabled: false
44+
45+
Lint/AmbiguousRegexpLiteral:
46+
Enabled: true
47+
Style/RegexpLiteral:
48+
Enabled: true
49+
Style/WordArray:
50+
Enabled: true
51+
52+
# this catches the cases of using `module` for parser functions, types, or
53+
# providers
54+
Style/ClassAndModuleChildren:
55+
Enabled: false
56+
57+
Style/Documentation:
58+
Description: 'Document classes and non-namespace modules.'
59+
Enabled: false
60+
61+
# More comfortable block layouts
62+
Style/BlockDelimiters:
63+
Enabled: False
64+
65+
Style/MultilineBlockLayout:
66+
Enabled: False

.travis.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
sudo: false
3+
language: ruby
4+
cache: bundler
5+
bundler_args: --without system_tests
6+
before_install: rm Gemfile.lock || true
7+
script:
8+
- 'bundle exec rake $CHECK'
9+
matrix:
10+
fast_finish: true
11+
include:
12+
- rvm: 1.9.3
13+
env: PUPPET_VERSION="~> 3.0" STRICT_VARIABLES="yes" CHECK=test
14+
- rvm: 2.1.8
15+
env: PUPPET_VERSION="~> 3.0" STRICT_VARIABLES="yes" CHECK=test
16+
- rvm: 1.9.3
17+
env: PUPPET_VERSION="~> 3.0" STRICT_VARIABLES="yes" CHECK=test FUTURE_PARSER=yes
18+
- rvm: 2.1.8
19+
env: PUPPET_VERSION="~> 3.0" STRICT_VARIABLES="yes" CHECK=test FUTURE_PARSER=yes
20+
- rvm: 2.1.8
21+
env: PUPPET_VERSION="~> 4.0" STRICT_VARIABLES="yes" CHECK=test
22+
- rvm: 2.2.4
23+
env: PUPPET_VERSION="~> 4.0" STRICT_VARIABLES="yes" CHECK=test
24+
- rvm: 2.2.4
25+
env: PUPPET_VERSION="~> 4.0" STRICT_VARIABLES="yes" CHECK=rubocop
26+
- rvm: 2.3.0
27+
env: PUPPET_VERSION="~> 4.0" STRICT_VARIABLES="yes" CHECK=test
28+
allow_failures:
29+
- rvm: 2.3.0
30+
env: PUPPET_VERSION="~> 4.0" STRICT_VARIABLES="yes" CHECK=test
31+
notifications:
32+
email: false
33+
deploy:
34+
provider: puppetforge
35+
user: puppet
36+
password:
37+
secure: ""
38+
on:
39+
tags: true
40+
# all_branches is required to use tags
41+
all_branches: true
42+
# Only publish if our main Ruby target builds
43+
rvm: 1.9.3
44+
condition: "$FUTURE_PARSER = yes"

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## 2016-04-12 Release 0.0.1
2+
3+
- Initial module release

CONTRIBUTING.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## Contributing
2+
3+
Contributions are welcome

Gemfile

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
source ENV['GEM_SOURCE'] || "https://rubygems.org"
2+
3+
def location_for(place, fake_version = nil)
4+
if place =~ /^(git[:@][^#]*)#(.*)/
5+
[fake_version, { :git => $1, :branch => $2, :require => false }].compact
6+
elsif place =~ /^file:\/\/(.*)/
7+
['>= 0', { :path => File.expand_path($1), :require => false }]
8+
else
9+
[place, { :require => false }]
10+
end
11+
end
12+
13+
group :test do
14+
gem 'rake', :require => false
15+
gem 'rspec-puppet', :require => false, :git => 'https://github.com/rodjek/rspec-puppet.git'
16+
gem 'puppet-lint', :require => false, :git => 'https://github.com/rodjek/puppet-lint.git'
17+
gem 'metadata-json-lint', :require => false
18+
gem 'rspec-puppet-facts', :require => false
19+
gem 'rspec', :require => false
20+
gem 'puppet-blacksmith', :require => false, :git => 'https://github.com/voxpupuli/puppet-blacksmith.git'
21+
gem 'voxpupuli-release', :require => false, :git => 'https://github.com/voxpupuli/voxpupuli-release-gem.git'
22+
gem 'rubocop', '~> 0.39', :require => false
23+
gem 'rspec-puppet-utils', :require => false
24+
gem 'puppetlabs_spec_helper', :require => false
25+
gem 'puppet-lint-absolute_classname-check', :require => false
26+
gem 'puppet-lint-leading_zero-check', :require => false
27+
gem 'puppet-lint-trailing_comma-check', :require => false
28+
gem 'puppet-lint-version_comparison-check', :require => false
29+
gem 'puppet-lint-classes_and_types_beginning_with_digits-check', :require => false
30+
gem 'puppet-lint-unquoted_string-check', :require => false
31+
gem 'puppet-lint-variable_contains_upcase', :require => false
32+
end
33+
34+
group :development do
35+
gem 'travis', :require => false
36+
gem 'travis-lint', :require => false
37+
gem 'guard-rake', :require => false
38+
end
39+
40+
group :system_tests do
41+
gem 'beaker', :require => false
42+
if beaker_version = ENV['BEAKER_VERSION']
43+
gem 'beaker', *location_for(beaker_version)
44+
end
45+
if beaker_rspec_version = ENV['BEAKER_RSPEC_VERSION']
46+
gem 'beaker-rspec', *location_for(beaker_rspec_version)
47+
else
48+
gem 'beaker-rspec', :require => false
49+
end
50+
gem 'beaker-puppet_install_helper', :require => false
51+
end
52+
53+
54+
55+
if facterversion = ENV['FACTER_GEM_VERSION']
56+
gem 'facter', facterversion.to_s, :require => false, :groups => [:test]
57+
else
58+
gem 'facter', :require => false, :groups => [:test]
59+
end
60+
61+
ENV['PUPPET_VERSION'].nil? ? puppetversion = '~> 3.0' : puppetversion = ENV['PUPPET_VERSION'].to_s
62+
gem 'puppet', puppetversion, :require => false, :groups => [:test]
63+
64+
# vim:ft=ruby

0 commit comments

Comments
 (0)