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

Commit 2ae1bd0

Browse files
authored
Merge pull request #179 from willdurand/puppet-5
Puppet 5 support
2 parents 55a46f9 + 091ce44 commit 2ae1bd0

11 files changed

Lines changed: 202 additions & 142 deletions

.travis.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
language: ruby
22

3-
rvm:
4-
- 2.1.0
3+
rvm: $RUBY_VERSION
54

65
env:
7-
- PUPPET_VERSION="~> 3.6.0"
8-
- PUPPET_VERSION="~> 3.7.0"
9-
- PUPPET_VERSION="~> 4.3.0"
10-
- PUPPET_VERSION="~> 4.3.0" STRICT_VARIABLES=yes
6+
- PUPPET_VERSION="~> 3.6.0" RUBY_VERSION="2.1.0"
7+
- PUPPET_VERSION="~> 3.7.0" RUBY_VERSION="2.1.0"
8+
- PUPPET_VERSION="~> 4.3.0" RUBY_VERSION="2.4.0"
9+
- PUPPET_VERSION="~> 4.3.0" STRICT_VARIABLES=yes RUBY_VERSION="2.4.0"
10+
- PUPPET_VERSION="~> 5.5.0" RUBY_VERSION="2.4.0"
1111

1212
before_install:
1313
- gem update bundler

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
source 'https://rubygems.org'
22

3-
puppetVersion = ENV.key?('PUPPET_VERSION') ? ENV['PUPPET_VERSION'] : '~> 3.4.0'
3+
puppetVersion = ENV.key?('PUPPET_VERSION') ? ENV['PUPPET_VERSION'] : '~> 5.5.0'
44

55
gem 'rake'
66
gem 'puppet', puppetVersion

Gemfile-Nix.lock

Lines changed: 46 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,71 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
addressable (2.5.0)
5-
public_suffix (~> 2.0, >= 2.0.2)
4+
addressable (2.5.2)
5+
public_suffix (>= 2.0.2, < 4.0)
66
crack (0.4.3)
77
safe_yaml (~> 1.0.0)
88
diff-lcs (1.3)
9-
domain_name (0.5.20170223)
9+
domain_name (0.5.20170404)
1010
unf (>= 0.0.5, < 1.0.0)
11-
facter (1.7.6)
12-
hashdiff (0.3.2)
13-
hiera (1.3.4)
14-
json_pure
11+
facter (2.5.1)
12+
fast_gettext (1.1.2)
13+
hashdiff (0.3.7)
14+
hiera (3.4.2)
1515
http-cookie (1.0.3)
1616
domain_name (~> 0.5)
17-
iconv (1.0.4)
18-
json_pure (2.0.3)
17+
iconv (1.0.5)
18+
locale (2.1.2)
1919
metaclass (0.0.4)
20-
mime-types (2.99.3)
21-
mocha (1.2.1)
20+
mime-types (3.1)
21+
mime-types-data (~> 3.2015)
22+
mime-types-data (3.2016.0521)
23+
mocha (1.5.0)
2224
metaclass (~> 0.0.1)
25+
multi_json (1.13.1)
2326
netrc (0.11.0)
24-
public_suffix (2.0.5)
25-
puppet (3.4.3)
26-
facter (~> 1.6)
27-
hiera (~> 1.0)
28-
rgen (~> 0.6.5)
29-
puppet-blacksmith (3.4.0)
30-
puppet (>= 2.7.16)
31-
rest-client (~> 1.8.0)
32-
puppet-lint (2.1.1)
33-
puppet-syntax (2.3.0)
27+
public_suffix (3.0.2)
28+
puppet (5.5.0)
29+
facter (> 2.0.1, < 4)
30+
fast_gettext (~> 1.1.2)
31+
hiera (>= 3.2.1, < 4)
32+
locale (~> 2.1)
33+
multi_json (~> 1.10)
34+
puppet-blacksmith (4.1.2)
35+
rest-client (~> 2.0)
36+
puppet-lint (2.3.5)
37+
puppet-syntax (2.4.1)
3438
rake
35-
puppetlabs_spec_helper (2.1.0)
39+
puppetlabs_spec_helper (2.7.0)
3640
mocha (~> 1.0)
3741
puppet-lint (~> 2.0)
3842
puppet-syntax (~> 2.0)
3943
rspec-puppet (~> 2.0)
40-
rake (12.0.0)
41-
rest-client (1.8.0)
44+
rake (12.3.1)
45+
rest-client (2.0.2)
4246
http-cookie (>= 1.0.2, < 2.0)
43-
mime-types (>= 1.16, < 3.0)
44-
netrc (~> 0.7)
45-
rgen (0.6.6)
46-
rspec (3.5.0)
47-
rspec-core (~> 3.5.0)
48-
rspec-expectations (~> 3.5.0)
49-
rspec-mocks (~> 3.5.0)
50-
rspec-core (3.5.4)
51-
rspec-support (~> 3.5.0)
52-
rspec-expectations (3.5.0)
47+
mime-types (>= 1.16, < 4.0)
48+
netrc (~> 0.8)
49+
rspec (3.7.0)
50+
rspec-core (~> 3.7.0)
51+
rspec-expectations (~> 3.7.0)
52+
rspec-mocks (~> 3.7.0)
53+
rspec-core (3.7.1)
54+
rspec-support (~> 3.7.0)
55+
rspec-expectations (3.7.0)
5356
diff-lcs (>= 1.2.0, < 2.0)
54-
rspec-support (~> 3.5.0)
55-
rspec-mocks (3.5.0)
57+
rspec-support (~> 3.7.0)
58+
rspec-mocks (3.7.0)
5659
diff-lcs (>= 1.2.0, < 2.0)
57-
rspec-support (~> 3.5.0)
58-
rspec-puppet (2.5.0)
60+
rspec-support (~> 3.7.0)
61+
rspec-puppet (2.6.11)
5962
rspec
60-
rspec-support (3.5.0)
63+
rspec-support (3.7.1)
6164
safe_yaml (1.0.4)
6265
unf (0.1.4)
6366
unf_ext
64-
unf_ext (0.0.7.2)
65-
webmock (2.3.2)
67+
unf_ext (0.0.7.5)
68+
webmock (3.3.0)
6669
addressable (>= 2.3.6)
6770
crack (>= 0.3.2)
6871
hashdiff
@@ -72,7 +75,7 @@ PLATFORMS
7275

7376
DEPENDENCIES
7477
iconv
75-
puppet (~> 3.4.0)
78+
puppet (~> 5.5.0)
7679
puppet-blacksmith
7780
puppet-lint
7881
puppet-syntax
@@ -82,4 +85,4 @@ DEPENDENCIES
8285
webmock
8386

8487
BUNDLED WITH
85-
1.14.4
88+
1.16.1

default.nix

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,41 @@
11
with import <nixpkgs> {};
22

3+
let
4+
5+
puppetEnv = stdenv.mkDerivation rec {
6+
name = "willdurand-puppet-nodejs-env";
7+
8+
env = bundlerEnv {
9+
name = "willdurand-puppet-nodejs-env-gems";
10+
11+
gemfile = ./Gemfile;
12+
lockfile = ./Gemfile-Nix.lock;
13+
gemset = ./gemset.nix;
14+
15+
inherit ruby;
16+
};
17+
18+
buildInputs = [ makeWrapper ];
19+
20+
phases = [ "installPhase" ];
21+
installPhase = ''
22+
export PUPPET_VERSION="~> 4.9.0"
23+
24+
mkdir -p $out/bin
25+
makeWrapper ${env}/bin/puppet $out/bin/puppet
26+
makeWrapper ${env}/bin/rake $out/bin/rake
27+
makeWrapper ${env}/bin/puppet-lint $out/bin/puppet-lint
28+
'';
29+
};
30+
31+
in
32+
333
stdenv.mkDerivation rec {
434
name = "willdurand-puppet-nodejs";
535

636
buildInputs =
7-
[
8-
(import ./env.nix)
9-
];
37+
[
38+
ruby
39+
puppetEnv
40+
];
1041
}

env.nix

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)