Skip to content

Commit 5268684

Browse files
committed
Merge remote-tracking branch 'upstream/stable'
* upstream/stable: (PUP-4340) Fix intermittent failure in test case Merge pull request #3742 from joshcooper/ticket/master/PUP-4194-relocate-puppet-logdir (PUP-3290) Update hiera version to 2.0 under ext (PUP-3920) Make puppet depend on hiera 2.0
2 parents a018038 + e3855c2 commit 5268684

File tree

7 files changed

+15
-18
lines changed

7 files changed

+15
-18
lines changed

.gemspec

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ Gem::Specification.new do |s|
4343

4444
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
4545
s.add_runtime_dependency(%q<facter>, [">= 1.7", "< 3"])
46-
s.add_runtime_dependency(%q<hiera>, [">= 1.0", "< 3"])
46+
s.add_runtime_dependency(%q<hiera>, [">= 2.0", "< 3"])
4747
else
4848
s.add_dependency(%q<facter>, [">= 1.7", "< 3"])
49-
s.add_dependency(%q<hiera>, [">= 1.0", "< 3"])
49+
s.add_dependency(%q<hiera>, [">= 2.0", "< 3"])
5050
end
5151
else
5252
s.add_dependency(%q<facter>, [">= 1.7", "< 3"])
53-
s.add_dependency(%q<hiera>, [">= 1.0", "< 3"])
53+
s.add_dependency(%q<hiera>, [">= 2.0", "< 3"])
5454
end
5555
end

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ end
2525

2626
gem "puppet", :path => File.dirname(__FILE__), :require => false
2727
gem "facter", *location_for(ENV['FACTER_LOCATION'] || ['> 2.0', '< 4'])
28-
gem "hiera", *location_for(ENV['HIERA_LOCATION'] || ['> 1.0', '< 3'])
28+
gem "hiera", *location_for(ENV['HIERA_LOCATION'] || ['>= 2.0', '< 3'])
2929
gem "rake", "10.1.1", :require => false
3030

3131
group(:development, :test) do

acceptance/tests/resource/file/source_attribute.rb

+5-8
Original file line numberDiff line numberDiff line change
@@ -169,14 +169,11 @@ class source_test_module {
169169
end
170170

171171
step "touch files and verify they're updated with ctime/mtime"
172-
# wait until we're not at the file's mtime
173-
# mod_dir_source_file is the last file modified
174-
# This stat will not work on most BSDs
175-
dir_file_mtime = on(master, "stat --format '%Y' #{mod_source_dir_file}").stdout.chomp
176-
master_time = on(master, 'date +%s').stdout.chomp
177-
until master_time > dir_file_mtime do
178-
master_time = on(master, 'date +%s').stdout.chomp
179-
end
172+
# wait until we're not at the mtime of files on the agents
173+
# this could be done cross-platform using Puppet, but a single puppet query is unlikely to be less than a second,
174+
# and iterating over all agents would be much slower
175+
sleep(1)
176+
180177
on master, "touch #{mod_source_file} #{mod_source_dir_file}"
181178
agents.each do |agent|
182179
on(agent, puppet('agent', "--test --server #{master}"), :acceptable_exit_codes => [0,2]) do

ext/build_defaults.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ build_msi:
2828
x64: 'cfacter-0.3.0-x64.zip'
2929
path: 'http://builds.puppetlabs.lan/cfacter/0.3.0/artifacts/windows'
3030
hiera:
31-
ref: 'refs/tags/1.3.4'
31+
ref: 'refs/tags/2.0.0'
3232
repo: 'git://github.com/puppetlabs/hiera.git'
3333
mcollective:
3434
ref: 'refs/tags/2.7.0'

ext/debian/control

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ Section: admin
33
Priority: optional
44
Maintainer: Puppet Labs <[email protected]>
55
Uploaders: Micah Anderson <[email protected]>, Andrew Pollock <[email protected]>, Nigel Kersten <[email protected]>, Stig Sandbeck Mathisen <[email protected]>
6-
Build-Depends-Indep: ruby | ruby-interpreter, libopenssl-ruby | libopenssl-ruby1.9.1 | libruby (>= 1:1.9.3.4), facter (>= 1.7.0), hiera (>= 1.0.0)
6+
Build-Depends-Indep: ruby | ruby-interpreter, libopenssl-ruby | libopenssl-ruby1.9.1 | libruby (>= 1:1.9.3.4), facter (>= 1.7.0), hiera (>= 2.0.0)
77
Build-Depends: debhelper (>= 7.0.0), openssl
88
Standards-Version: 3.9.1
99
Vcs-Git: git://github.com/puppetlabs/puppet
1010
Homepage: http://projects.puppetlabs.com/projects/puppet
1111

1212
Package: puppet-common
1313
Architecture: all
14-
Depends: ${misc:Depends}, ruby | ruby-interpreter, libopenssl-ruby | libopenssl-ruby1.9.1 | libruby (>= 1:1.9.3.4), ruby-shadow | libshadow-ruby1.8, libaugeas-ruby | libaugeas-ruby1.9.1 | libaugeas-ruby1.8, lsb-base, sysv-rc (>= 2.86) | file-rc, hiera (>= 1.0.0), facter (>= 1.7.0), libjson-ruby | ruby-json
14+
Depends: ${misc:Depends}, ruby | ruby-interpreter, libopenssl-ruby | libopenssl-ruby1.9.1 | libruby (>= 1:1.9.3.4), ruby-shadow | libshadow-ruby1.8, libaugeas-ruby | libaugeas-ruby1.9.1 | libaugeas-ruby1.8, lsb-base, sysv-rc (>= 2.86) | file-rc, hiera (>= 2.0.0), facter (>= 1.7.0), libjson-ruby | ruby-json
1515
Recommends: lsb-release, debconf-utils
1616
Suggests: ruby-selinux | libselinux-ruby1.8
1717
Breaks: puppet (<< 2.6.0~rc2-1), puppetmaster (<< 0.25.4-1)

ext/project_data.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ gem_default_executables: 'puppet'
1616
gem_forge_project: 'puppet'
1717
gem_runtime_dependencies:
1818
facter: ['> 2.0', '< 4']
19-
hiera: ['> 1.0', '< 3']
19+
hiera: ['>= 2.0', '< 3']
2020
json_pure:
2121
gem_rdoc_options:
2222
- --title

ext/redhat/puppet.spec.erb

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
3939
BuildRequires: facter >= 1:1.7.0
4040
# Puppet 3.x drops ruby 1.8.5 support and adds ruby 1.9 support
4141
BuildRequires: ruby >= 1.8.7
42-
BuildRequires: hiera >= 1.0.0
42+
BuildRequires: hiera >= 2.0.0
4343
BuildArch: noarch
4444
Requires: ruby >= 1.8
4545
Requires: ruby-shadow
@@ -58,7 +58,7 @@ Requires: facter >= 1:1.7.0
5858
# Puppet 3.x drops ruby 1.8.5 support and adds ruby 1.9 support
5959
# Ruby 1.8.7 available for el5 at: yum.puppetlabs.com/el/5/devel/$ARCH
6060
Requires: ruby >= 1.8.7
61-
Requires: hiera >= 1.0.0
61+
Requires: hiera >= 2.0.0
6262
Obsoletes: hiera-puppet < 1.0.0
6363
Provides: hiera-puppet >= 1.0.0
6464
%{!?_without_augeas:Requires: ruby-augeas}

0 commit comments

Comments
 (0)