Prep 4.8.0
This commit is contained in:
parent
061d0c29fc
commit
dfa98b89f7
4 changed files with 21 additions and 10 deletions
13
CHANGELOG.md
13
CHANGELOG.md
|
@ -1,3 +1,16 @@
|
||||||
|
## 2015-08-10 - Supported Release 4.8.0
|
||||||
|
### Summary
|
||||||
|
This release adds a function for reading metadata.json from any module, and expands file\_line's abilities.
|
||||||
|
|
||||||
|
#### Features
|
||||||
|
- New parameter `replace` on `file_line`
|
||||||
|
- New function `load_module_metadata()` to load metadata.json and return the content as a hash.
|
||||||
|
- Added hash support to `size()`
|
||||||
|
|
||||||
|
#### Bugfixes
|
||||||
|
- Fix various docs typos
|
||||||
|
- Fix `file_line` resource on puppet < 3.3
|
||||||
|
|
||||||
##2015-06-22 - Supported Release 4.7.0
|
##2015-06-22 - Supported Release 4.7.0
|
||||||
###Summary
|
###Summary
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "puppetlabs-stdlib",
|
"name": "puppetlabs-stdlib",
|
||||||
"version": "4.7.0",
|
"version": "4.8.0",
|
||||||
"author": "puppetlabs",
|
"author": "puppetlabs",
|
||||||
"summary": "Standard library of resources for Puppet modules.",
|
"summary": "Standard library of resources for Puppet modules.",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#! /usr/bin/env ruby -S rspec
|
#! /usr/bin/env ruby -S rspec
|
||||||
require 'spec_helper_acceptance'
|
require 'spec_helper_acceptance'
|
||||||
|
|
||||||
describe 'ensure_resource function', :unless => fact('osfamily') =~ /windows/i do
|
describe 'ensure_resource function', :unless => fact('osfamily') =~ /(windows|Suse)/i do
|
||||||
describe 'success' do
|
describe 'success' do
|
||||||
it 'ensure_resource a package' do
|
it 'ensure_resource a package' do
|
||||||
apply_manifest('package { "rake": ensure => absent, provider => "gem", }')
|
apply_manifest('package { "rake": ensure => absent, provider => "gem", }')
|
||||||
|
|
|
@ -35,15 +35,13 @@ end
|
||||||
|
|
||||||
RSpec.shared_context "with faked facts" do
|
RSpec.shared_context "with faked facts" do
|
||||||
let(:facts_d) do
|
let(:facts_d) do
|
||||||
puppet_version = (on default, puppet('--version')).output.chomp
|
if fact('osfamily') =~ /windows/i
|
||||||
if Puppet::Util::Package.versioncmp(puppet_version, '4.0.0') < 0 && fact('is_pe', '--puppet') == "true"
|
if fact('kernelmajversion').to_f < 6.0
|
||||||
if fact('osfamily') =~ /windows/i
|
'C:/Documents and Settings/All Users/Application Data/PuppetLabs/facter/facts.d'
|
||||||
if fact('kernelmajversion').to_f < 6.0
|
|
||||||
'C:/Documents and Settings/All Users/Application Data/PuppetLabs/facter/facts.d'
|
|
||||||
else
|
|
||||||
'C:/ProgramData/PuppetLabs/facter/facts.d'
|
|
||||||
end
|
|
||||||
else
|
else
|
||||||
|
'C:/ProgramData/PuppetLabs/facter/facts.d'
|
||||||
|
end
|
||||||
|
elsif fact('is_pe', '--puppet') == "true"
|
||||||
'/etc/puppetlabs/facter/facts.d'
|
'/etc/puppetlabs/facter/facts.d'
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue