Skip to content

Commit 605fffd

Browse files
author
Morgan Haskel
committed
Merge pull request puppetlabs#503 from puppetlabs/4.8.x
Mergeback 4.8.x
2 parents 061d0c2 + 5727506 commit 605fffd

File tree

4 files changed

+22
-11
lines changed

4 files changed

+22
-11
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
## 2015-08-10 - Supported Release 4.8.0
2+
### Summary
3+
This release adds a function for reading metadata.json from any module, and expands file\_line's abilities.
4+
5+
#### Features
6+
- New parameter `replace` on `file_line`
7+
- New function `load_module_metadata()` to load metadata.json and return the content as a hash.
8+
- Added hash support to `size()`
9+
10+
#### Bugfixes
11+
- Fix various docs typos
12+
- Fix `file_line` resource on puppet < 3.3
13+
114
##2015-06-22 - Supported Release 4.7.0
215
###Summary
316

metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "puppetlabs-stdlib",
3-
"version": "4.7.0",
3+
"version": "4.8.0",
44
"author": "puppetlabs",
55
"summary": "Standard library of resources for Puppet modules.",
66
"license": "Apache-2.0",

spec/acceptance/ensure_resource_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#! /usr/bin/env ruby -S rspec
22
require 'spec_helper_acceptance'
33

4-
describe 'ensure_resource function', :unless => fact('osfamily') =~ /windows/i do
4+
describe 'ensure_resource function', :unless => fact('osfamily') =~ /(windows|Suse)/i do
55
describe 'success' do
66
it 'ensure_resource a package' do
77
apply_manifest('package { "rake": ensure => absent, provider => "gem", }')

spec/spec_helper_acceptance.rb

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,14 @@ def is_future_parser_enabled?
3636
RSpec.shared_context "with faked facts" do
3737
let(:facts_d) do
3838
puppet_version = (on default, puppet('--version')).output.chomp
39-
if Puppet::Util::Package.versioncmp(puppet_version, '4.0.0') < 0 && fact('is_pe', '--puppet') == "true"
40-
if fact('osfamily') =~ /windows/i
41-
if fact('kernelmajversion').to_f < 6.0
42-
'C:/Documents and Settings/All Users/Application Data/PuppetLabs/facter/facts.d'
43-
else
44-
'C:/ProgramData/PuppetLabs/facter/facts.d'
45-
end
39+
if fact('osfamily') =~ /windows/i
40+
if fact('kernelmajversion').to_f < 6.0
41+
'C:/Documents and Settings/All Users/Application Data/PuppetLabs/facter/facts.d'
4642
else
47-
'/etc/puppetlabs/facter/facts.d'
43+
'C:/ProgramData/PuppetLabs/facter/facts.d'
4844
end
45+
elsif Puppet::Util::Package.versioncmp(puppet_version, '4.0.0') < 0 and fact('is_pe', '--puppet') == "true"
46+
'/etc/puppetlabs/facter/facts.d'
4947
else
5048
'/etc/facter/facts.d'
5149
end
@@ -59,7 +57,7 @@ def is_future_parser_enabled?
5957
end
6058

6159
after :each do
62-
shell("rm -f '#{facts_d}/fqdn.txt'")
60+
shell("rm -f '#{facts_d}/fqdn.txt'", :acceptable_exit_codes => [0,1])
6361
end
6462

6563
def fake_fact(name, value)

0 commit comments

Comments
 (0)