Skip to content

Commit 5283669

Browse files
author
Shiva Poudel
committed
Merge pull request voxpupuli#232 from ghoneycutt/support_puppet_v4
Support puppet v4
2 parents eb8846f + 5c07be5 commit 5283669

4 files changed

Lines changed: 27 additions & 6 deletions

File tree

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ env:
1919
- PUPPET_GEM_VERSION="~> 3.6.0"
2020
- PUPPET_GEM_VERSION="~> 3.7.0"
2121
- PUPPET_GEM_VERSION="~> 3.8.0"
22+
- PUPPET_GEM_VERSION="~> 3" FUTURE_PARSER="yes"
23+
- PUPPET_GEM_VERSION="~> 4.0.0"
24+
- PUPPET_GEM_VERSION="~> 4.1.0"
25+
- PUPPET_GEM_VERSION="~> 4.2.0"
26+
- PUPPET_GEM_VERSION="~> 4"
2227

2328
sudo: false
2429

@@ -37,6 +42,14 @@ matrix:
3742
env: PUPPET_GEM_VERSION="~> 3.3.0"
3843
- rvm: 2.1.0
3944
env: PUPPET_GEM_VERSION="~> 3.4.0"
45+
- rvm: 1.8.7
46+
env: PUPPET_GEM_VERSION="~> 4.0.0"
47+
- rvm: 1.8.7
48+
env: PUPPET_GEM_VERSION="~> 4.1.0"
49+
- rvm: 1.8.7
50+
env: PUPPET_GEM_VERSION="~> 4.2.0"
51+
- rvm: 1.8.7
52+
env: PUPPET_GEM_VERSION="~> 4"
4053

4154
notifications:
4255
email: false

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,15 @@ Puppet module for installing and managing python, pip, virtualenvs and Gunicorn
66

77
# Compatibility #
88

9-
Puppet v3 with Ruby versions 1.8.7, 1.9.3, 2.0.0 and 2.1.0.
9+
* Puppet v3 (with and without the future parser)
10+
* Puppet v4
11+
12+
## Ruby versions
13+
14+
* 1.8.7
15+
* 1.9.3
16+
* 2.0.0
17+
* 2.1.0
1018

1119
## OS Distributions ##
1220

manifests/init.pp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@
7171
$use_epel = $python::params::use_epel,
7272
) inherits python::params{
7373

74-
# validate inputs
75-
if $provider != undef {
76-
validate_re($provider, ['^(pip|scl|rhscl)$'], 'Only "pip", "rhscl", and "scl" are valid providers besides the system default.')
74+
if $provider != undef and $provider != '' {
75+
validate_re($provider, ['^(pip|scl|rhscl)$'],
76+
"Only 'pip', 'rhscl' and 'scl' are valid providers besides the system default. Detected provider is <${provider}>.")
7777
}
7878

7979
if $provider == 'pip' {

metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@
4949
"requirements": [
5050
{
5151
"name": "puppet",
52-
"version_requirement": ">=3.0.0 < 4.0.0"
52+
"version_requirement": ">=3.0.0 < 5.0.0"
5353
}
5454
],
5555
"dependencies": [
56-
{"name":"puppetlabs/stdlib","version_requirement":">= 4.0.0 < 6.0.0"},
56+
{"name":"puppetlabs/stdlib","version_requirement":">= 4.6.0 < 6.0.0"},
5757
{"name":"stahnma/epel","version_requirement":">= 1.0.1 < 2.0.0"}
5858
]
5959
}

0 commit comments

Comments
 (0)