Skip to content

Commit 41247cc

Browse files
committed
Merge pull request #1 from puppetlabs/master
merge upstream
2 parents c7a23b2 + 990e1d7 commit 41247cc

File tree

218 files changed

+5284
-5216
lines changed

Some content is hidden

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

218 files changed

+5284
-5216
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ spec/fixtures/
55
.vagrant/
66
.bundle/
77
coverage/
8+
log/
89
.idea/
910
*.iml

.rspec

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
--color
2-
--format
3-
progress
4-
--backtrace
2+
--format documentation

.travis.yml

+6-11
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,19 @@
11
---
22
sudo: false
33
language: ruby
4+
cache: bundler
45
bundler_args: --without system_tests
56
script: "bundle exec rake validate && bundle exec rake lint && bundle exec rake spec SPEC_OPTS='--color --format documentation'"
67
matrix:
78
fast_finish: true
89
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
10+
- rvm: 2.1.6
11+
env: PUPPET_GEM_VERSION="~> 4.0" STRICT_VARIABLES="yes"
12+
- rvm: 2.1.5
1613
env: PUPPET_GEM_VERSION="~> 3.0" FUTURE_PARSER="yes"
1714
- rvm: 2.1.5
1815
env: PUPPET_GEM_VERSION="~> 3.0"
19-
- rvm: 2.1.5
20-
env: PUPPET_GEM_VERSION="~> 3.4.0"
21-
- rvm: 2.1.5
22-
env: PUPPET_GEM_VERSION="~> 3.0" FUTURE_PARSER="yes"
16+
- rvm: 1.9.3
17+
env: PUPPET_GEM_VERSION="~> 3.0"
2318
notifications:
2419
email: false

CHANGELOG.md

+119-4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,118 @@
1+
## Supported Release 4.11.0
2+
###Summary
3+
4+
Provides a validate_absolute_paths and Debian 8 support. There is a fix to the is_package_provider fact and a test improvement.
5+
6+
####Features
7+
- Adds new parser called is_absolute_path
8+
- Supports Debian 8
9+
10+
####Bugfixes
11+
- Allow package_provider fact to resolve on PE 3.x
12+
13+
####Improvements
14+
- ensures that the test passes independently of changes to rubygems for ensure_resource
15+
16+
##2015-12-15 - Supported Release 4.10.0
17+
###Summary
18+
19+
Includes the addition of several new functions and considerable improvements to the existing functions, tests and documentation. Includes some bug fixes which includes compatibility, test and fact issues.
20+
21+
####Features
22+
- Adds service_provider fact
23+
- Adds is_a() function
24+
- Adds package_provider fact
25+
- Adds validate_ip_address function
26+
- Adds seeded_rand function
27+
28+
####Bugfixes
29+
- Fix backwards compatibility from an improvement to the parseyaml function
30+
- Renaming of load_module_metadata test to include _spec.rb
31+
- Fix root_home fact on AIX 5.x, now '-c' rather than '-C'
32+
- Fixed Gemfile to work with ruby 1.8.7
33+
34+
####Improvements
35+
- (MODULES-2462) Improvement of parseyaml function
36+
- Improvement of str2bool function
37+
- Improvement to readme
38+
- Improvement of intersection function
39+
- Improvement of validate_re function
40+
- Improved speed on Facter resolution of service_provider
41+
- empty function now handles numeric values
42+
- Package_provider now prevents deprecation warning about the allow_virtual parameter
43+
- load_module_metadata now succeeds on empty file
44+
- Check added to ensure puppetversion value is not nil
45+
- Improvement to bool2str to return a string of choice using boolean
46+
- Improvement to naming convention in validate_ipv4_address function
47+
48+
## Supported Release 4.9.1
49+
###Summary
50+
51+
Small release for support of newer PE versions. This increments the version of PE in the metadata.json file.
52+
53+
##2015-09-08 - Supported Release 4.9.0
54+
###Summary
55+
56+
This release adds new features including the new functions dos2unix, unix2dos, try_get_value, convert_base as well as other features and improvements.
57+
58+
####Features
59+
- (MODULES-2370) allow `match` parameter to influence `ensure => absent` behavior
60+
- (MODULES-2410) Add new functions dos2unix and unix2dos
61+
- (MODULE-2456) Modify union to accept more than two arrays
62+
- Adds a convert_base function, which can convert numbers between bases
63+
- Add a new function "try_get_value"
64+
65+
####Bugfixes
66+
- n/a
67+
68+
####Improvements
69+
- (MODULES-2478) Support root_home fact on AIX through "lsuser" command
70+
- Acceptance test improvements
71+
- Unit test improvements
72+
- Readme improvements
73+
74+
## 2015-08-10 - Supported Release 4.8.0
75+
### Summary
76+
This release adds a function for reading metadata.json from any module, and expands file\_line's abilities.
77+
78+
#### Features
79+
- New parameter `replace` on `file_line`
80+
- New function `load_module_metadata()` to load metadata.json and return the content as a hash.
81+
- Added hash support to `size()`
82+
83+
#### Bugfixes
84+
- Fix various docs typos
85+
- Fix `file_line` resource on puppet < 3.3
86+
87+
##2015-06-22 - Supported Release 4.7.0
88+
###Summary
89+
90+
Adds Solaris 12 support along with improved Puppet 4 support. There are significant test improvements, and some minor fixes.
91+
92+
####Features
93+
- Add support for Solaris 12
94+
95+
####Bugfixes
96+
- Fix for AIO Puppet 4
97+
- Fix time for ruby 1.8.7
98+
- Specify rspec-puppet version
99+
- range() fix for typeerror and missing functionality
100+
- Fix pw_hash() on JRuby < 1.7.17
101+
- fqdn_rand_string: fix argument error message
102+
- catch and rescue from looking up non-existent facts
103+
- Use puppet_install_helper, for Puppet 4
104+
105+
####Improvements
106+
- Enforce support for Puppet 4 testing
107+
- fqdn_rotate/fqdn_rand_string acceptance tests and implementation
108+
- Simplify mac address regex
109+
- validate_integer, validate_numeric: explicitely reject hashes in arrays
110+
- Readme edits
111+
- Remove all the pops stuff for rspec-puppet
112+
- Sync via modulesync
113+
- Add validate_slength optional 3rd arg
114+
- Move tests directory to examples directory
115+
1116
##2015-04-14 - Supported Release 4.6.0
2117
###Summary
3118

@@ -12,7 +127,7 @@ Adds functions and function argument abilities, and improves compatibility with
12127
- `validate_absolute_path()` can now take an array
13128
- `validate_cmd()` can now use % in the command to embed the validation file argument in the string
14129
- MODULES-1473: deprecate `type()` function in favor of `type3x()`
15-
- MODULES-1473: Add `type_of()` to give better time information on future parser
130+
- MODULES-1473: Add `type_of()` to give better type information on future parser
16131
- Deprecate `private()` for `assert_private()` due to future parser
17132
- Adds `ceiling()` to take the ceiling of a number
18133
- Adds `fqdn_rand_string()` to generate random string based on fqdn
@@ -90,7 +205,7 @@ backwards-compatible with the stdlib 3 series. It adds two new functions, one bu
90205

91206
#### Features
92207
- New `bool2str()` function
93-
- New `camalcase()` function
208+
- New `camelcase()` function
94209

95210
#### Bugfixes
96211
- Fix `has_interface_with()` when interfaces fact is nil
@@ -293,7 +408,7 @@ This is a supported release
293408

294409
* Add an ensure\_packages function. (8a8c09e)
295410

296-
##### 2012-11-23 - Erik Dalén <[email protected]> - 3.2.0
411+
##### 2012-11-23 - Erik Dalén <[email protected]> - 3.2.0
297412

298413
* (#17797) min() and max() functions (9954133)
299414

@@ -390,7 +505,7 @@ This is a supported release
390505

391506
* Add support for a 'match' parameter to file\_line (a06c0d8)
392507

393-
##### 2012-08-07 - Erik Dalén <[email protected]> - 2.4.0
508+
##### 2012-08-07 - Erik Dalén <[email protected]> - 2.4.0
394509

395510
* (#15872) Add to\_bytes function (247b69c)
396511

CONTRIBUTING.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ If you already have those gems installed, make sure they are up-to-date:
159159
With all dependencies in place and up-to-date we can now run the tests:
160160

161161
```shell
162-
% rake spec
162+
% bundle exec rake spec
163163
```
164164

165165
This will execute all the [rspec tests](http://rspec-puppet.com/) tests
@@ -178,8 +178,8 @@ installed on your system.
178178
You can run them by issuing the following command
179179

180180
```shell
181-
% rake spec_clean
182-
% rspec spec/acceptance
181+
% bundle exec rake spec_clean
182+
% bundle exec rspec spec/acceptance
183183
```
184184

185185
This will now download a pre-fabricated image configured in the [default node-set](./spec/acceptance/nodesets/default.yml),

Gemfile

+14-4
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,20 @@ def location_for(place, fake_version = nil)
1111
end
1212

1313
group :development, :unit_tests do
14+
# rspec must be v2 for ruby 1.8.7
15+
if RUBY_VERSION >= '1.8.7' and RUBY_VERSION < '1.9'
16+
gem 'rspec', '~> 2.0'
17+
else
18+
gem 'rspec', '~> 3.1.0', :require => false
19+
end
20+
1421
gem 'rake', '~> 10.1.0', :require => false
15-
gem 'rspec', '~> 3.1.0', :require => false
16-
gem 'rspec-puppet', :require => false
22+
gem 'rspec-puppet', '~> 2.2', :require => false
23+
gem 'mocha', :require => false
24+
# keep for its rake task for now
1725
gem 'puppetlabs_spec_helper', :require => false
1826
gem 'puppet-lint', :require => false
27+
gem 'metadata-json-lint', :require => false
1928
gem 'pry', :require => false
2029
gem 'simplecov', :require => false
2130
end
@@ -29,9 +38,10 @@ group :system_tests do
2938
if beaker_rspec_version
3039
gem 'beaker-rspec', *location_for(beaker_rspec_version)
3140
else
32-
gem 'beaker-rspec', :require => false
41+
gem 'beaker-rspec', :require => false
3342
end
34-
gem 'serverspec', :require => false
43+
gem 'serverspec', :require => false
44+
gem 'beaker-puppet_install_helper', :require => false
3545
end
3646

3747
facterversion = ENV['GEM_FACTER_VERSION'] || ENV['FACTER_GEM_VERSION']

0 commit comments

Comments
 (0)