Skip to content

Commit 18fb1e2

Browse files
nick-markowskitrevor-vaughan
authored andcommitted
Added support for Puppet 5 and OEL (#26)
* Added support for Puppet 5 and OEL * Exclude ruby 2.1.9 with Puppet 5.5 from travis matrix * Fixed spelling error
1 parent 012cd99 commit 18fb1e2

File tree

5 files changed

+37
-6
lines changed

5 files changed

+37
-6
lines changed

.travis.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,24 @@ sudo: required
33
rvm:
44
- 2.1.9
55
- 2.3.1
6+
- 2.4.4
67

78
notifications:
89
email:
910
- raphael.pinson@camptocamp.com
1011
env:
1112
# Most common LTS Puppet Version
1213
- PUPPET=4.7 RUBY_AUGEAS=0.5 FORGE_PUBLISH=true
13-
# Current LTS Puppet Version
14+
# Current Puppet 4 LTS Puppet Version
1415
- PUPPET=4.10 RUBY_AUGEAS=0.5
16+
# Current Puppet 5 LTS Puppet Version
17+
- PUPPET=5.5 RUBY_AUGEAS=0.5
1518

1619
matrix:
1720
fast_finish: true
21+
exclude:
22+
- rvm: 2.1.9
23+
env: PUPPET=5.5 RUBY_AUGEAS=0.5
1824

1925
install:
2026
- "travis_retry ./.travis.sh"

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## 2.2.1
4+
- Added support for Puppet 5 and OEL
5+
36
## 2.2.0
47
- Removed Travis tests for Puppet < 4.7 since that is the most common LTS
58
release and Puppet 3 is well out of support

metadata.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "herculesteam-augeasproviders_sysctl",
3-
"version": "2.2.0",
3+
"version": "2.2.1",
44
"author": "Dominic Cleal, Raphael Pinson, Trevor Vaughan",
55
"summary": "Augeas-based sysctl type and provider for Puppet",
66
"license": "Apache-2.0",
@@ -64,9 +64,16 @@
6464
"operatingsystemrelease": [
6565
"42.2"
6666
]
67+
},
68+
{
69+
"operatingsystem": "OracleLinux",
70+
"operatingsystemrelease": [
71+
"6",
72+
"7"
73+
]
6774
}
6875
],
6976
"requirements": [
70-
{ "name": "puppet", "version_requirement": ">= 2.7.0 < 5.0.0" }
77+
{ "name": "puppet", "version_requirement": ">= 2.7.0 < 6.0.0" }
7178
]
7279
}

spec/acceptance/nodesets/default.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,24 @@ HOSTS:
2525
roles:
2626
- agent
2727
- client
28-
platform: sles-12-x86_64
29-
box: opensuse/openSUSE-42.2-x86_64
28+
platform: sles-12-x86_64
29+
box: opensuse/openSUSE-42.2-x86_64
3030
hypervisor: vagrant
31+
oel7:
32+
roles:
33+
- agent
34+
- client
35+
platform: el-7-x86_64
36+
box: elastic/oel-7-x86_64
37+
hypervisor: vagrant
38+
oel6:
39+
roles:
40+
- agent
41+
- client
42+
platform: el-6-x86_64
43+
box: elastic/oel-6-x86_64
44+
hypervisor: vagrant
45+
3146
CONFIG:
3247
log_level: verbose
3348
type: aio

spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
# ticket https://tickets.puppetlabs.com/browse/MODULES-823
3535
#
3636
ver = Gem::Version.new(Puppet.version.split('-').first)
37-
if Gem::Requirement.new("~> 2.7.20") =~ ver || Gem::Requirement.new("~> 3.0.0") =~ ver || Gem::Requirement.new("~> 3.5") =~ ver || Gem::Requirement.new("~> 4.0") =~ ver
37+
if Gem::Requirement.new("~> 2.7.20") =~ ver || Gem::Requirement.new("~> 3.0.0") =~ ver || Gem::Requirement.new("~> 3.5") =~ ver || Gem::Requirement.new("~> 4.0") || Gem::Requirement.new("~> 5.0") =~ ver
3838
puts "augeasproviders: setting Puppet[:libdir] to work around broken type autoloading"
3939
# libdir is only a single dir, so it can only workaround loading of one external module
4040
Puppet[:libdir] = "#{Puppet[:modulepath]}/augeasproviders_core/lib"

0 commit comments

Comments
 (0)