Skip to content

Commit 6e32d71

Browse files
committed
Merge branch 'release/3.1.0'
2 parents 9f048cf + 9b17ae2 commit 6e32d71

File tree

64 files changed

+947
-445
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+947
-445
lines changed

.fixtures.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,26 @@
11
fixtures:
22
repositories:
33
stdlib: "https://github.com/puppetlabs/puppetlabs-stdlib.git"
4-
mysql: "https://github.com/puppetlabs/puppetlabs-mysql.git"
5-
postgresql: "https://github.com/puppetlabs/puppet-postgresql.git"
6-
concat: "https://github.com/puppetlabs/puppetlabs-concat.git"
4+
mysql:
5+
repo: "https://github.com/puppetlabs/puppetlabs-mysql.git"
6+
ref: "3.11.0"
7+
postgresql:
8+
repo: "https://github.com/puppetlabs/puppet-postgresql.git"
9+
ref: "4.9.0"
10+
concat:
11+
repo: "https://github.com/puppetlabs/puppetlabs-concat.git"
12+
ref: "1.2.1"
713
staging: "https://github.com/nanliu/puppet-staging.git"
8-
epel: "https://github.com/stahnma/puppet-module-epel.git"
14+
epel:
15+
repo: "https://github.com/stahnma/puppet-module-epel.git"
16+
ref: "1.2.2"
917
java_ks: "https://github.com/puppetlabs/puppetlabs-java_ks.git"
10-
zypprepo: "https://github.com/deadpoint/puppet-zypprepo.git"
11-
apt: "https://github.com/puppetlabs/puppetlabs-apt.git"
18+
zypprepo:
19+
repo: "https://github.com/deadpoint/puppet-zypprepo.git"
20+
ref: "v1.0.2"
21+
apt:
22+
repo: "https://github.com/puppetlabs/puppetlabs-apt.git"
23+
ref: "1.8.0"
1224
augeasproviders_core: "https://github.com/hercules-team/augeasproviders_core.git"
1325
augeasproviders_sysctl: "https://github.com/hercules-team/augeasproviders_sysctl.git"
1426
symlinks:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ spec/fixtures/
77
coverage/
88
*.swp
99
.vendor/
10+
.vendor

.project

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,17 @@
33
<name>cloudera</name>
44
<comment></comment>
55
<projects>
6+
<project>apt</project>
7+
<project>augeasproviders_core</project>
8+
<project>augeasproviders_sysctl</project>
9+
<project>concat</project>
610
<project>epel</project>
711
<project>java_ks</project>
812
<project>mysql</project>
913
<project>postgresql</project>
1014
<project>staging</project>
1115
<project>stdlib</project>
16+
<project>zypprepo</project>
1217
</projects>
1318
<buildSpec>
1419
<buildCommand>
@@ -45,5 +50,14 @@
4550
<arguments>1.0-projectRelativePath-matches-false-false-spec/fixtures/modules</arguments>
4651
</matcher>
4752
</filter>
53+
<filter>
54+
<id>1428386119416</id>
55+
<name></name>
56+
<type>10</type>
57+
<matcher>
58+
<id>org.eclipse.ui.ide.multiFilter</id>
59+
<arguments>1.0-projectRelativePath-matches-false-false-.vendor</arguments>
60+
</matcher>
61+
</filter>
4862
</filteredResources>
4963
</projectDescription>

.puppet-lint.rc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--fail-on-warnings
22
--relative
3-
--no-80chars-check
3+
--no-140chars-check
44
--no-class_inherits_from_params_class-check
55
--no-documentation-check
66
--no-single_quote_string_with_variables-check

.sync.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
.travis.yml:
3+
extras:
4+
- rvm: 1.8.7
5+
env: PUPPET_GEM_VERSION="~> 2.7.0" FACTER_GEM_VERSION="~> 1.6.0"
6+
- rvm: 1.8.7
7+
env: PUPPET_GEM_VERSION="~> 2.7.0" FACTER_GEM_VERSION="~> 1.7.0"

.travis.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ script: "bundle exec rake validate && bundle exec rake lint && bundle exec rake
1414
matrix:
1515
fast_finish: true
1616
include:
17-
- rvm: 1.8.7
18-
env: PUPPET_GEM_VERSION="~> 2.7.0" FACTER_GEM_VERSION="~> 1.6.0"
19-
- rvm: 1.8.7
20-
env: PUPPET_GEM_VERSION="~> 2.7.0" FACTER_GEM_VERSION="~> 1.7.0"
2117
- rvm: 1.8.7
2218
env: PUPPET_GEM_VERSION="~> 3.0"
2319
- rvm: 1.9.3
@@ -26,9 +22,17 @@ matrix:
2622
env: PUPPET_GEM_VERSION="~> 3.0"
2723
- rvm: 2.0.0
2824
env: PUPPET_GEM_VERSION="~> 3.0" FUTURE_PARSER="yes"
25+
- rvm: 2.1.9
26+
env: PUPPET_GEM_VERSION="~> 4.0"
27+
- rvm: 2.4.1
28+
env: PUPPET_GEM_VERSION="~> 5.0"
29+
- rvm: 1.8.7
30+
env: PUPPET_GEM_VERSION="~> 2.7.0" FACTER_GEM_VERSION="~> 1.6.0"
31+
- rvm: 1.8.7
32+
env: PUPPET_GEM_VERSION="~> 2.7.0" FACTER_GEM_VERSION="~> 1.7.0"
2933
allow_failures:
30-
- rvm: 2.0.0
31-
env: PUPPET_GEM_VERSION="~> 3.0" FUTURE_PARSER="yes"
34+
- rvm: 2.4.1
35+
env: PUPPET_GEM_VERSION="~> 5.0"
3236
notifications:
3337
email:
3438
- github@razorsedge.org

DEVELOP.md renamed to CONTRIBUTING.md

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,45 @@ Contributing
33

44
normal
55

6-
1. [Fork](http://help.github.com/forking/) puppet-cloudera
7-
2. Create a topic branch against the develop branch `git checkout develop; git checkout -b my_branch`
8-
3. Push to your branch `git push origin my_branch`
9-
4. Create a [Pull Request](http://help.github.com/pull-requests/) from your branch against the develop branch
6+
1. [Fork](http://help.github.com/forking/) puppet-cloudera.
7+
2. Create a topic branch against the develop branch. `git checkout develop; git checkout -b my_branch`
8+
3. Make your change.
9+
4. Add a test for your change. Only refactoring and documentation changes require no new tests. If you are adding functionality or fixing a bug, please add a test.
10+
5. Run the tests. We only take pull requests with passing tests. `bundle exec rake spec SPEC_OPTS='--format documentation'`
11+
6. Add or update documentation.
12+
7. Squash your commits down into logical components. Make sure to rebase against the current `develop` branch. `git pull --rebase upstream develop`
13+
8. Push to your branch. `git push origin my_branch`
14+
9. Create a [Pull Request](http://help.github.com/pull-requests/) from your branch against the develop branch.
1015

1116
[git-flow](https://github.com/nvie/gitflow)
1217

13-
1. [Fork](http://help.github.com/forking/) puppet-cloudera
14-
2. Create a feature `git flow feature start my-feature`
15-
3. Publish your featue `git flow feature publish my-feature`
16-
4. Create a [Pull Request](http://help.github.com/pull-requests/) from your branch against the develop branch
18+
1. [Fork](http://help.github.com/forking/) puppet-cloudera.
19+
2. Create a feature. `git flow feature start my-feature`
20+
3. Make your change.
21+
4. Add a test for your change. Only refactoring and documentation changes require no new tests. If you are adding functionality or fixing a bug, please add a test.
22+
5. Run the tests. We only take pull requests with passing tests. `bundle exec rake spec SPEC_OPTS='--format documentation'`
23+
6. Add or update documentation.
24+
7. Squash your commits down into logical components. Make sure to rebase against the current `develop` branch. `git pull --rebase upstream develop`
25+
8. Publish your featue. `git flow feature publish my-feature`
26+
9. Create a [Pull Request](http://help.github.com/pull-requests/) from your branch against the develop branch.
1727

1828
Testing
1929
-------
2030

2131
Tests are written with [rspec-puppet](http://rspec-puppet.com/). CI is covered by [Travis CI](http://about.travis-ci.org/) and the current status is visible [here](http://travis-ci.org/razorsedge/puppet-cloudera).
2232

33+
To install the test system, pick one of the following:
34+
35+
PUPPET_GEM_VERSION="~> 2.7.0" FACTER_GEM_VERSION="~> 1.7.0" bundle install --path=.vendor --without system_tests
36+
PUPPET_GEM_VERSION="~> 3.0" bundle install --path=.vendor --without system_tests
37+
PUPPET_GEM_VERSION="~> 4.0" bundle install --path=.vendor --without system_tests
38+
2339
To run all tests:
2440

25-
rake spec
41+
bundle exec rake validate && \
42+
bundle exec rake lint && \
43+
bundle exec rake metadata_lint && \
44+
bundle exec rake spec SPEC_OPTS='--format documentation' FUTURE_PARSER="yes" STRICT_VARIABLES="no"
2645

2746
Branching
2847
---------

Gemfile

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,26 @@
11
source ENV['GEM_SOURCE'] || "https://rubygems.org"
22

33
group :development, :unit_tests do
4-
gem 'rake', :require => false
5-
gem 'rspec', '~> 2.0', :require => false
6-
gem 'rspec-puppet', '~> 2.0', :require => false
7-
gem 'puppetlabs_spec_helper', :require => false
8-
gem 'puppet-lint', '>= 1.1.0', :require => false
9-
gem 'simplecov', :require => false
10-
gem 'puppet_facts', :require => false
11-
gem 'json', :require => false
12-
gem 'metadata-json-lint', '>= 0.0.4', :require => false
4+
gem 'rake', '10.5.0', :require => false
5+
gem 'rspec', '~> 2.0', :require => false
6+
gem 'rspec-puppet', '>= 2.1.0', :require => false
7+
gem 'puppetlabs_spec_helper', '~> 1.2', :require => false
8+
gem 'puppet-lint', '~> 2.0', :require => false
9+
gem 'json', '~> 1.8', :require => false if RUBY_VERSION =~ /^1\./
10+
gem 'json', :require => false if RUBY_VERSION =~ /^2\./
11+
gem 'json_pure', '~> 1.8', :require => false if RUBY_VERSION =~ /^1\.8/
12+
gem 'json_pure', '<= 2.0.1', :require => false if RUBY_VERSION =~ /^1\.9/
13+
gem 'json_pure', :require => false if RUBY_VERSION =~ /^2\./
14+
gem 'metadata-json-lint', '< 1.2.0', :require => false if RUBY_VERSION =~ /^1\./
15+
gem 'metadata-json-lint', :require => false if RUBY_VERSION =~ /^2\./
16+
gem 'semantic_puppet', '0.1.3', :require => false if RUBY_VERSION =~ /^1\./
17+
gem 'semantic_puppet', :require => false if RUBY_VERSION =~ /^2\./
18+
gem 'puppet-lint-unquoted_string-check', :require => false
19+
gem 'puppet-lint-empty_string-check', :require => false
20+
gem 'puppet-lint-leading_zero-check', :require => false
1321
end
1422

15-
if facterversion = ENV['FACTER_GEM_VERSION']
16-
gem 'facter', facterversion, :require => false
17-
else
18-
gem 'facter', :require => false
19-
end
20-
21-
if puppetversion = ENV['PUPPET_GEM_VERSION']
22-
gem 'puppet', puppetversion, :require => false
23-
else
24-
gem 'puppet', :require => false
25-
end
23+
gem 'puppet', ENV['PUPPET_GEM_VERSION'], :require => false
24+
gem 'facter', ENV['FACTER_GEM_VERSION'], :require => false
2625

2726
# vim:ft=ruby

0 commit comments

Comments
 (0)