Skip to content
This repository was archived by the owner on Mar 8, 2023. It is now read-only.

Commit d6150d8

Browse files
authored
Merge pull request #87 from echocat/develop
back merge for 1.9.0
2 parents d42e22c + cd8b952 commit d6150d8

30 files changed

+271
-158
lines changed

.travis.yml

+13-15
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,22 @@
11
---
22
sudo: false
33
language: ruby
4+
cache: bundler
45
bundler_args: --without system_tests
5-
script: "bundle exec rake validate && bundle exec rake lint && bundle exec rake spec SPEC_OPTS='--format documentation'"
6+
before_install: rm Gemfile.lock || true
7+
script: bundle exec rake validate lint spec
68
matrix:
79
fast_finish: true
810
include:
9-
- rvm: 1.9.3
10-
env: PUPPET_GEM_VERSION="~> 3.4.0"
11-
- rvm: 1.8.7
12-
env: PUPPET_GEM_VERSION="~> 3.0"
13-
- rvm: 1.9.3
14-
env: PUPPET_GEM_VERSION="~> 3.0"
15-
- rvm: 1.9.3
16-
env: PUPPET_GEM_VERSION="~> 3.0" FUTURE_PARSER="yes"
17-
- rvm: 2.1.5
18-
env: PUPPET_GEM_VERSION="~> 3.0"
19-
- rvm: 2.1.5
20-
env: PUPPET_GEM_VERSION="~> 3.6.0"
21-
- rvm: 2.1.5
22-
env: PUPPET_GEM_VERSION="~> 3.0" FUTURE_PARSER="yes"
11+
- rvm: 2.1.6
12+
env: PUPPET_GEM_VERSION='~> 4.0' COVERAGE=yes STRICT_VARIABLES=yes
13+
- rvm: 2.1.6
14+
env: PUPPET_GEM_VERSION='https://github.com/puppetlabs/puppet.git#stable
15+
- rvm: 2.1.5
16+
env: PUPPET_GEM_VERSION='~> 3.0' FUTURE_PARSER=yes
17+
- rvm: 2.1.5
18+
env: PUPPET_GEM_VERSION='~> 3.0'
19+
- rvm: 1.9.3
20+
env: PUPPET_GEM_VERSION='~> 3.0'
2321
notifications:
2422
email: false

CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
## 2017-01-26 - 1.9.0 (Feature release)
2+
3+
#### Bugfixes:
4+
5+
- fix mountd thread number parameter for nfs server
6+
7+
#### Features:
8+
9+
- set specific version of nfs client packages with `package_ensure`
10+
- allow client mounts to be defined in Hiera
11+
- Ubuntu: support 16.04
12+
113
## 2016-03-19 - 1.8.1 (Bugfix release)
214

315
#### Bugfixes:

Gemfile

+40-10
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,41 @@
1-
source 'https://rubygems.org'
2-
3-
puppetversion = ENV.key?('PUPPET_GEM_VERSION') ? "#{ENV['PUPPET_GEM_VERSION']}" : ['>= 3.3']
4-
facterversion = ENV.key?('FACTER_GEM_VERSION') ? "#{ENV['FACTER_GEM_VERSION']}" : ['>= 1.7']
5-
gem 'puppet', puppetversion
6-
gem 'puppetlabs_spec_helper', '>= 0.1.0'
7-
gem 'puppet-lint', '>= 0.3.2'
8-
gem 'facter', facterversion
9-
gem 'rspec', '< 3.2.0'
1+
source ENV['GEM_SOURCE'] || "https://rubygems.org"
2+
3+
def location_for(place, version = nil)
4+
if place =~ /^((?:git|https?)[:@][^#]*)#(.*)/
5+
[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, version, { :require => false }].compact
10+
end
11+
end
12+
13+
gem 'puppetlabs_spec_helper', '>= 0.1.0', :require => false
14+
gem 'puppet-lint', '>= 0.3.2', :require => false
15+
gem 'rspec-puppet', '>= 2.3.2', :require => false
16+
gem 'rspec-puppet-facts', :require => false
17+
gem 'metadata-json-lint', :require => false
1018
# rubi <1.9 versus rake 11.0.0 workaround
11-
gem 'rake', '< 11.0.0'
19+
gem 'rake', '< 11.0.0', :require => false if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.0.0')
20+
gem 'json', '< 2.0.0', :require => false if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.0.0')
21+
gem 'json_pure', '<= 2.0.1', :require => false if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.0.0')
22+
23+
gem 'puppet', *location_for(ENV['PUPPET_GEM_VERSION'])
24+
25+
# Only explicitly specify Facter/Hiera if a version has been specified.
26+
# Otherwise it can lead to strange bundler behavior. If you are seeing weird
27+
# gem resolution behavior, try setting `DEBUG_RESOLVER` environment variable
28+
# to `1` and then run bundle install.
29+
gem 'facter', *location_for(ENV['FACTER_GEM_VERSION']) if ENV['FACTER_GEM_VERSION']
30+
gem 'hiera', *location_for(ENV['HIERA_GEM_VERSION']) if ENV['HIERA_GEM_VERSION']
31+
32+
33+
# Evaluate Gemfile.local if it exists
34+
if File.exists? "#{__FILE__}.local"
35+
eval(File.read("#{__FILE__}.local"), binding)
36+
end
37+
38+
# Evaluate ~/.gemfile if it exists
39+
if File.exists?(File.join(Dir.home, '.gemfile'))
40+
eval(File.read(File.join(Dir.home, '.gemfile')), binding)
41+
end

0 commit comments

Comments
 (0)