summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml2
-rw-r--r--CHANGELOG.md44
-rw-r--r--Gemfile11
-rw-r--r--Rakefile12
-rw-r--r--manifests/lens.pp4
-rw-r--r--manifests/params.pp12
-rw-r--r--metadata.json2
-rw-r--r--spec/acceptance/nodesets/centos-5-x86_64-docker.yml1
-rw-r--r--spec/acceptance/nodesets/centos-6-x86_64-docker.yml1
-rw-r--r--spec/acceptance/nodesets/centos-6-x86_64-openstack.yml1
-rw-r--r--spec/acceptance/nodesets/centos-6-x86_64-vagrant.yml1
-rw-r--r--spec/acceptance/nodesets/centos-7-x86_64-docker.yml1
-rw-r--r--spec/acceptance/nodesets/centos-7-x86_64-openstack.yml1
-rw-r--r--spec/acceptance/nodesets/centos-7-x86_64-vagrant.yml1
-rw-r--r--spec/acceptance/nodesets/debian-6-x86_64-docker.yml1
-rw-r--r--spec/acceptance/nodesets/debian-6-x86_64-openstack.yml1
-rw-r--r--spec/acceptance/nodesets/debian-6-x86_64-vagrant.yml1
-rw-r--r--spec/acceptance/nodesets/debian-7-x86_64-docker.yml1
-rw-r--r--spec/acceptance/nodesets/debian-7-x86_64-openstack.yml1
-rw-r--r--spec/acceptance/nodesets/debian-7-x86_64-vagrant.yml1
-rw-r--r--spec/acceptance/nodesets/debian-8-x86_64-docker.yml1
-rw-r--r--spec/acceptance/nodesets/debian-8-x86_64-openstack.yml1
-rw-r--r--spec/acceptance/nodesets/debian-8-x86_64-vagrant.yml1
-rw-r--r--spec/acceptance/nodesets/ubuntu-10.04-x86_64-docker.yml13
-rw-r--r--spec/acceptance/nodesets/ubuntu-12.04-x86_64-docker.yml13
-rw-r--r--spec/acceptance/nodesets/ubuntu-12.04-x86_64-openstack.yml14
-rw-r--r--spec/acceptance/nodesets/ubuntu-14.04-x86_64-docker.yml13
-rw-r--r--spec/acceptance/nodesets/ubuntu-14.04-x86_64-openstack.yml3
-rw-r--r--spec/acceptance/nodesets/ubuntu-14.04-x86_64-vagrant.yml1
-rw-r--r--spec/acceptance/nodesets/ubuntu-14.10-x86_64-docker.yml13
-rw-r--r--spec/acceptance/nodesets/ubuntu-14.10-x86_64-openstack.yml14
-rw-r--r--spec/acceptance/nodesets/ubuntu-15.04-x86_64-docker.yml13
-rw-r--r--spec/acceptance/nodesets/ubuntu-15.04-x86_64-openstack.yml14
-rw-r--r--spec/spec_helper.rb4
34 files changed, 205 insertions, 13 deletions
diff --git a/.travis.yml b/.travis.yml
index 777290c..cc61c5f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -15,6 +15,8 @@ matrix:
env: PUPPET_GEM_VERSION="~> 3.0"
- rvm: 2.0.0
env: PUPPET_GEM_VERSION="~> 3.0" FUTURE_PARSER="yes"
+ - rvm: 2.1.0
+ env: PUPPET_GEM_VERSION="~> 4.0"
notifications:
email: false
deploy:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index b37ecd2..ad77af8 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,47 @@
+## 2015-06-26 - Release 1.2.13
+
+Fix strict_variables activation with rspec-puppet 2.2
+
+## 2015-06-24 - Release 1.2.12
+
+fix the ruby-augeas gem installation on SLES and openSUSE
+
+## 2015-05-28 - Release 1.2.11
+
+Add beaker_spec_helper to Gemfile
+
+## 2015-05-26 - Release 1.2.10
+
+Use random application order in nodeset
+
+## 2015-05-26 - Release 1.2.9
+
+add utopic & vivid nodesets
+
+## 2015-05-25 - Release 1.2.8
+
+Don't allow failure on Puppet 4
+
+## 2015-05-13 - Release 1.2.7
+
+Fix source_without_rights warning
+
+## 2015-05-13 - Release 1.2.6
+
+Add puppet-lint-file_source_rights-check gem
+
+## 2015-05-12 - Release 1.2.5
+
+Don't pin beaker
+
+## 2015-04-27 - Release 1.2.4
+
+Add nodeset ubuntu-12.04-x86_64-openstack
+
+## 2015-04-17 - Release 1.2.3
+
+- Add beaker nodesets
+
## 2015-04-14 - Release 1.2.2
- Fix lens test with content but no source
diff --git a/Gemfile b/Gemfile
index baced22..0cb5933 100644
--- a/Gemfile
+++ b/Gemfile
@@ -18,13 +18,18 @@ group :development, :unit_tests do
gem 'puppet-lint-file_ensure-check', :require => false
gem 'puppet-lint-version_comparison-check', :require => false
gem 'puppet-lint-fileserver-check', :require => false
+ gem 'puppet-lint-file_source_rights-check', :require => false
+ gem 'puppet-lint-alias-check', :require => false
gem 'rspec-puppet-facts', :require => false
+ gem 'github_changelog_generator', :require => false, :git => 'https://github.com/raphink/github-changelog-generator.git', :branch => 'dev/all_patches' if RUBY_VERSION !~ /^1.8/
+ gem 'puppet-blacksmith', :require => false if RUBY_VERSION !~ /^1.8/
end
group :system_tests do
- gem 'beaker', :require => false
- gem 'beaker-rspec', :require => false
- gem 'serverspec', :require => false
+ gem 'beaker', :require => false
+ gem 'beaker-rspec', :require => false
+ gem 'beaker_spec_helper', :require => false
+ gem 'serverspec', :require => false
end
if facterversion = ENV['FACTER_GEM_VERSION']
diff --git a/Rakefile b/Rakefile
index f87e608..adcac18 100644
--- a/Rakefile
+++ b/Rakefile
@@ -9,3 +9,15 @@ PuppetLint::RakeTask.new :lint do |config|
end
PuppetSyntax.exclude_paths = ["spec/fixtures/**/*.pp", "vendor/**/*"]
+
+# Publishing tasks
+unless RUBY_VERSION =~ /^1\.8/
+ require 'puppet_blacksmith'
+ require 'puppet_blacksmith/rake_tasks'
+ require 'github_changelog_generator/task'
+ GitHubChangelogGenerator::RakeTask.new :changelog do |config|
+ m = Blacksmith::Modulefile.new
+ config.future_release = m.version
+ config.release_url = "https://forge.puppetlabs.com/#{m.author}/#{m.name}/%s"
+ end
+end
diff --git a/manifests/lens.pp b/manifests/lens.pp
index c374417..c7dd6b2 100644
--- a/manifests/lens.pp
+++ b/manifests/lens.pp
@@ -75,11 +75,13 @@ define augeas::lens (
$lens_dest = "${augeas::lens_dir}/${name}.aug"
$test_dest = "${augeas::lens_dir}/tests/test_${name}.aug"
+ # lint:ignore:source_without_rights
file { $lens_dest:
ensure => $ensure,
source => $lens_source,
content => $lens_content,
}
+ # lint:endignore
exec { "Typecheck lens ${name}":
command => "augparse -I ${augeas::lens_dir} ${lens_dest} || (rm -f ${lens_dest} && exit 1)",
@@ -88,12 +90,14 @@ define augeas::lens (
}
if $test_source or $test_content {
+ # lint:ignore:source_without_rights
file { $test_dest:
ensure => $ensure,
source => $test_source,
content => $test_content,
notify => Exec["Test lens ${name}"],
}
+ # lint:endignore
exec { "Test lens ${name}":
command => "augparse -I ${augeas::lens_dir} ${test_dest} || (rm -f ${lens_dest} && rm -f ${test_dest} && exit 1)",
diff --git a/manifests/params.pp b/manifests/params.pp
index e540033..59023ab 100644
--- a/manifests/params.pp
+++ b/manifests/params.pp
@@ -12,13 +12,13 @@ class augeas::params {
}
'Suse': {
- # RPM Sources: https://build.opensuse.org/project/show/systemsmanagement:puppet
- # SLES 11 SP3
- if versioncmp($::rubyversion, '1.8.7') >= 0 {
- $ruby_pkg = 'ruby1.8-rubygem-ruby-augeas'
- # SLES 12
- } else {
+ # RPM Sources: https://build.opensuse.org/project/show/systemsmanagement:puppet
+ if versioncmp($::rubyversion, '2.1.2') >= 0 {
+ # SLES 12 / openSUSE
$ruby_pkg = 'ruby2.1-rubygem-ruby-augeas'
+ } else {
+ # SLES 11 SP3
+ $ruby_pkg = 'ruby1.8-rubygem-ruby-augeas'
}
$augeas_pkgs = ['augeas', 'augeas-lenses', 'libaugeas0' ]
}
diff --git a/metadata.json b/metadata.json
index 23bfda9..3dc6212 100644
--- a/metadata.json
+++ b/metadata.json
@@ -1,6 +1,6 @@
{
"name": "camptocamp-augeas",
- "version": "1.2.2",
+ "version": "1.2.13",
"author": "camptocamp",
"summary": "Camptocamp Augeas module",
"license": "Apache-2.0",
diff --git a/spec/acceptance/nodesets/centos-5-x86_64-docker.yml b/spec/acceptance/nodesets/centos-5-x86_64-docker.yml
index 174460d..d9a52d8 100644
--- a/spec/acceptance/nodesets/centos-5-x86_64-docker.yml
+++ b/spec/acceptance/nodesets/centos-5-x86_64-docker.yml
@@ -1,6 +1,7 @@
HOSTS:
centos-5-x64:
default_apply_opts:
+ order: random
strict_variables:
platform: el-5-x86_64
hypervisor : docker
diff --git a/spec/acceptance/nodesets/centos-6-x86_64-docker.yml b/spec/acceptance/nodesets/centos-6-x86_64-docker.yml
index b88cc95..b7a4396 100644
--- a/spec/acceptance/nodesets/centos-6-x86_64-docker.yml
+++ b/spec/acceptance/nodesets/centos-6-x86_64-docker.yml
@@ -1,6 +1,7 @@
HOSTS:
centos-6-x64:
default_apply_opts:
+ order: random
strict_variables:
platform: el-6-x86_64
hypervisor : docker
diff --git a/spec/acceptance/nodesets/centos-6-x86_64-openstack.yml b/spec/acceptance/nodesets/centos-6-x86_64-openstack.yml
index 0291ce5..e325b9e 100644
--- a/spec/acceptance/nodesets/centos-6-x86_64-openstack.yml
+++ b/spec/acceptance/nodesets/centos-6-x86_64-openstack.yml
@@ -1,6 +1,7 @@
HOSTS:
centos-6-x64:
default_apply_opts:
+ order: random
strict_variables:
platform: el-6-x86_64
hypervisor : openstack
diff --git a/spec/acceptance/nodesets/centos-6-x86_64-vagrant.yml b/spec/acceptance/nodesets/centos-6-x86_64-vagrant.yml
index 191329c..f06036e 100644
--- a/spec/acceptance/nodesets/centos-6-x86_64-vagrant.yml
+++ b/spec/acceptance/nodesets/centos-6-x86_64-vagrant.yml
@@ -1,6 +1,7 @@
HOSTS:
centos-6-x64:
default_apply_opts:
+ order: random
strict_variables:
platform: el-6-x86_64
hypervisor : vagrant
diff --git a/spec/acceptance/nodesets/centos-7-x86_64-docker.yml b/spec/acceptance/nodesets/centos-7-x86_64-docker.yml
index 599a681..d891edf 100644
--- a/spec/acceptance/nodesets/centos-7-x86_64-docker.yml
+++ b/spec/acceptance/nodesets/centos-7-x86_64-docker.yml
@@ -1,6 +1,7 @@
HOSTS:
centos-7-x64:
default_apply_opts:
+ order: random
strict_variables:
platform: el-7-x86_64
hypervisor : docker
diff --git a/spec/acceptance/nodesets/centos-7-x86_64-openstack.yml b/spec/acceptance/nodesets/centos-7-x86_64-openstack.yml
index b0769b9..9003c86 100644
--- a/spec/acceptance/nodesets/centos-7-x86_64-openstack.yml
+++ b/spec/acceptance/nodesets/centos-7-x86_64-openstack.yml
@@ -1,6 +1,7 @@
HOSTS:
centos-7-x64:
default_apply_opts:
+ order: random
strict_variables:
platform: el-7-x86_64
hypervisor : openstack
diff --git a/spec/acceptance/nodesets/centos-7-x86_64-vagrant.yml b/spec/acceptance/nodesets/centos-7-x86_64-vagrant.yml
index 6f02769..95402e5 100644
--- a/spec/acceptance/nodesets/centos-7-x86_64-vagrant.yml
+++ b/spec/acceptance/nodesets/centos-7-x86_64-vagrant.yml
@@ -1,6 +1,7 @@
HOSTS:
centos-7-x64:
default_apply_opts:
+ order: random
strict_variables:
platform: el-7-x86_64
hypervisor : vagrant
diff --git a/spec/acceptance/nodesets/debian-6-x86_64-docker.yml b/spec/acceptance/nodesets/debian-6-x86_64-docker.yml
index 0296d12..685e2b7 100644
--- a/spec/acceptance/nodesets/debian-6-x86_64-docker.yml
+++ b/spec/acceptance/nodesets/debian-6-x86_64-docker.yml
@@ -1,6 +1,7 @@
HOSTS:
debian-6-x64:
default_apply_opts:
+ order: random
strict_variables:
platform: debian-6-amd64
hypervisor : docker
diff --git a/spec/acceptance/nodesets/debian-6-x86_64-openstack.yml b/spec/acceptance/nodesets/debian-6-x86_64-openstack.yml
index 276356b..c6c192f 100644
--- a/spec/acceptance/nodesets/debian-6-x86_64-openstack.yml
+++ b/spec/acceptance/nodesets/debian-6-x86_64-openstack.yml
@@ -1,6 +1,7 @@
HOSTS:
debian-6-x64:
default_apply_opts:
+ order: random
strict_variables:
platform: debian-6-amd64
hypervisor : openstack
diff --git a/spec/acceptance/nodesets/debian-6-x86_64-vagrant.yml b/spec/acceptance/nodesets/debian-6-x86_64-vagrant.yml
index 23dae1b..03db0fa 100644
--- a/spec/acceptance/nodesets/debian-6-x86_64-vagrant.yml
+++ b/spec/acceptance/nodesets/debian-6-x86_64-vagrant.yml
@@ -1,6 +1,7 @@
HOSTS:
debian-6-x64:
default_apply_opts:
+ order: random
strict_variables:
platform: debian-6-amd64
hypervisor : vagrant
diff --git a/spec/acceptance/nodesets/debian-7-x86_64-docker.yml b/spec/acceptance/nodesets/debian-7-x86_64-docker.yml
index ef1c9b2..0be8845 100644
--- a/spec/acceptance/nodesets/debian-7-x86_64-docker.yml
+++ b/spec/acceptance/nodesets/debian-7-x86_64-docker.yml
@@ -1,6 +1,7 @@
HOSTS:
debian-7-x64:
default_apply_opts:
+ order: random
strict_variables:
platform: debian-7-amd64
hypervisor : docker
diff --git a/spec/acceptance/nodesets/debian-7-x86_64-openstack.yml b/spec/acceptance/nodesets/debian-7-x86_64-openstack.yml
index 8c23792..017b4c7 100644
--- a/spec/acceptance/nodesets/debian-7-x86_64-openstack.yml
+++ b/spec/acceptance/nodesets/debian-7-x86_64-openstack.yml
@@ -1,6 +1,7 @@
HOSTS:
debian-7-x64:
default_apply_opts:
+ order: random
strict_variables:
platform: debian-7-amd64
hypervisor : openstack
diff --git a/spec/acceptance/nodesets/debian-7-x86_64-vagrant.yml b/spec/acceptance/nodesets/debian-7-x86_64-vagrant.yml
index 21aee50..8ed1264 100644
--- a/spec/acceptance/nodesets/debian-7-x86_64-vagrant.yml
+++ b/spec/acceptance/nodesets/debian-7-x86_64-vagrant.yml
@@ -1,6 +1,7 @@
HOSTS:
debian-7-x64:
default_apply_opts:
+ order: random
strict_variables:
platform: debian-7-amd64
hypervisor : vagrant
diff --git a/spec/acceptance/nodesets/debian-8-x86_64-docker.yml b/spec/acceptance/nodesets/debian-8-x86_64-docker.yml
index 28c3e02..d3b89d9 100644
--- a/spec/acceptance/nodesets/debian-8-x86_64-docker.yml
+++ b/spec/acceptance/nodesets/debian-8-x86_64-docker.yml
@@ -1,6 +1,7 @@
HOSTS:
debian-8-x64:
default_apply_opts:
+ order: random
strict_variables:
platform: debian-8-amd64
hypervisor : docker
diff --git a/spec/acceptance/nodesets/debian-8-x86_64-openstack.yml b/spec/acceptance/nodesets/debian-8-x86_64-openstack.yml
index 94fe73a..003b6f4 100644
--- a/spec/acceptance/nodesets/debian-8-x86_64-openstack.yml
+++ b/spec/acceptance/nodesets/debian-8-x86_64-openstack.yml
@@ -1,6 +1,7 @@
HOSTS:
debian-8-x64:
default_apply_opts:
+ order: random
strict_variables:
platform: debian-8-amd64
hypervisor : openstack
diff --git a/spec/acceptance/nodesets/debian-8-x86_64-vagrant.yml b/spec/acceptance/nodesets/debian-8-x86_64-vagrant.yml
index 38c844b..5cc7f0c 100644
--- a/spec/acceptance/nodesets/debian-8-x86_64-vagrant.yml
+++ b/spec/acceptance/nodesets/debian-8-x86_64-vagrant.yml
@@ -1,6 +1,7 @@
HOSTS:
debian-8-x64:
default_apply_opts:
+ order: random
strict_variables:
platform: debian-8-amd64
hypervisor : vagrant
diff --git a/spec/acceptance/nodesets/ubuntu-10.04-x86_64-docker.yml b/spec/acceptance/nodesets/ubuntu-10.04-x86_64-docker.yml
new file mode 100644
index 0000000..933dee6
--- /dev/null
+++ b/spec/acceptance/nodesets/ubuntu-10.04-x86_64-docker.yml
@@ -0,0 +1,13 @@
+HOSTS:
+ ubuntu-1004-x64:
+ default_apply_opts:
+ order: random
+ strict_variables:
+ platform: ubuntu-10.04-amd64
+ hypervisor : docker
+ image: ubuntu:10.04
+ # This stops the image from being deleted on completion, speeding up the process.
+ docker_preserve_image: true
+CONFIG:
+ type: foss
+ log_level: debug
diff --git a/spec/acceptance/nodesets/ubuntu-12.04-x86_64-docker.yml b/spec/acceptance/nodesets/ubuntu-12.04-x86_64-docker.yml
new file mode 100644
index 0000000..92a7901
--- /dev/null
+++ b/spec/acceptance/nodesets/ubuntu-12.04-x86_64-docker.yml
@@ -0,0 +1,13 @@
+HOSTS:
+ ubuntu-1204-x64:
+ default_apply_opts:
+ order: random
+ strict_variables:
+ platform: ubuntu-12.04-amd64
+ hypervisor : docker
+ image: ubuntu:12.04
+ # This stops the image from being deleted on completion, speeding up the process.
+ docker_preserve_image: true
+CONFIG:
+ type: foss
+ log_level: debug
diff --git a/spec/acceptance/nodesets/ubuntu-12.04-x86_64-openstack.yml b/spec/acceptance/nodesets/ubuntu-12.04-x86_64-openstack.yml
new file mode 100644
index 0000000..f81b04b
--- /dev/null
+++ b/spec/acceptance/nodesets/ubuntu-12.04-x86_64-openstack.yml
@@ -0,0 +1,14 @@
+HOSTS:
+ ubuntu-1204-x64:
+ default_apply_opts:
+ order: random
+ strict_variables:
+ platform: ubuntu-12.04-amd64
+ hypervisor : openstack
+ flavor: m1.small
+ image: ubuntu-1204-latest
+ user: ubuntu
+CONFIG:
+ type: foss
+ log_level: debug
+ openstack_network: default
diff --git a/spec/acceptance/nodesets/ubuntu-14.04-x86_64-docker.yml b/spec/acceptance/nodesets/ubuntu-14.04-x86_64-docker.yml
new file mode 100644
index 0000000..7716f94
--- /dev/null
+++ b/spec/acceptance/nodesets/ubuntu-14.04-x86_64-docker.yml
@@ -0,0 +1,13 @@
+HOSTS:
+ ubuntu-1404-x64:
+ default_apply_opts:
+ order: random
+ strict_variables:
+ platform: ubuntu-14.04-amd64
+ hypervisor : docker
+ image: ubuntu:14.04
+ # This stops the image from being deleted on completion, speeding up the process.
+ docker_preserve_image: true
+CONFIG:
+ type: foss
+ log_level: debug
diff --git a/spec/acceptance/nodesets/ubuntu-14.04-x86_64-openstack.yml b/spec/acceptance/nodesets/ubuntu-14.04-x86_64-openstack.yml
index 073562e..2eeb912 100644
--- a/spec/acceptance/nodesets/ubuntu-14.04-x86_64-openstack.yml
+++ b/spec/acceptance/nodesets/ubuntu-14.04-x86_64-openstack.yml
@@ -1,6 +1,7 @@
HOSTS:
- ubuntu-14.04-x64:
+ ubuntu-1404-x64:
default_apply_opts:
+ order: random
strict_variables:
platform: ubuntu-14.04-amd64
hypervisor : openstack
diff --git a/spec/acceptance/nodesets/ubuntu-14.04-x86_64-vagrant.yml b/spec/acceptance/nodesets/ubuntu-14.04-x86_64-vagrant.yml
index 7188ccb..3b37695 100644
--- a/spec/acceptance/nodesets/ubuntu-14.04-x86_64-vagrant.yml
+++ b/spec/acceptance/nodesets/ubuntu-14.04-x86_64-vagrant.yml
@@ -1,6 +1,7 @@
HOSTS:
ubuntu-1404-x64:
default_apply_opts:
+ order: random
strict_variables:
platform: ubuntu-14.04-amd64
hypervisor : vagrant
diff --git a/spec/acceptance/nodesets/ubuntu-14.10-x86_64-docker.yml b/spec/acceptance/nodesets/ubuntu-14.10-x86_64-docker.yml
new file mode 100644
index 0000000..256b004
--- /dev/null
+++ b/spec/acceptance/nodesets/ubuntu-14.10-x86_64-docker.yml
@@ -0,0 +1,13 @@
+HOSTS:
+ ubuntu-1410-x64:
+ default_apply_opts:
+ order: random
+ strict_variables:
+ platform: ubuntu-14.10-amd64
+ hypervisor : docker
+ image: ubuntu:14.10
+ # This stops the image from being deleted on completion, speeding up the process.
+ docker_preserve_image: true
+CONFIG:
+ type: foss
+ log_level: debug
diff --git a/spec/acceptance/nodesets/ubuntu-14.10-x86_64-openstack.yml b/spec/acceptance/nodesets/ubuntu-14.10-x86_64-openstack.yml
new file mode 100644
index 0000000..58a2acd
--- /dev/null
+++ b/spec/acceptance/nodesets/ubuntu-14.10-x86_64-openstack.yml
@@ -0,0 +1,14 @@
+HOSTS:
+ ubuntu-1410-x64:
+ default_apply_opts:
+ order: random
+ strict_variables:
+ platform: ubuntu-14.10-amd64
+ hypervisor : openstack
+ flavor: m1.small
+ image: ubuntu-1410-latest
+ user: ubuntu
+CONFIG:
+ type: foss
+ log_level: debug
+ openstack_network: default
diff --git a/spec/acceptance/nodesets/ubuntu-15.04-x86_64-docker.yml b/spec/acceptance/nodesets/ubuntu-15.04-x86_64-docker.yml
new file mode 100644
index 0000000..800da28
--- /dev/null
+++ b/spec/acceptance/nodesets/ubuntu-15.04-x86_64-docker.yml
@@ -0,0 +1,13 @@
+HOSTS:
+ ubuntu-1504-x64:
+ default_apply_opts:
+ order: random
+ strict_variables:
+ platform: ubuntu-15.04-amd64
+ hypervisor : docker
+ image: ubuntu:15.04
+ # This stops the image from being deleted on completion, speeding up the process.
+ docker_preserve_image: true
+CONFIG:
+ type: foss
+ log_level: debug
diff --git a/spec/acceptance/nodesets/ubuntu-15.04-x86_64-openstack.yml b/spec/acceptance/nodesets/ubuntu-15.04-x86_64-openstack.yml
new file mode 100644
index 0000000..22ef76c
--- /dev/null
+++ b/spec/acceptance/nodesets/ubuntu-15.04-x86_64-openstack.yml
@@ -0,0 +1,14 @@
+HOSTS:
+ ubuntu-1504-x64:
+ default_apply_opts:
+ order: random
+ strict_variables:
+ platform: ubuntu-15.04-amd64
+ hypervisor : openstack
+ flavor: m1.small
+ image: ubuntu-1504-latest
+ user: ubuntu
+CONFIG:
+ type: foss
+ log_level: debug
+ openstack_network: default
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 86cc740..94d30d5 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -11,7 +11,7 @@ RSpec.configure do |c|
@old_env = {}
ENV.each_key {|k| @old_env[k] = ENV[k]}
- Puppet.settings[:strict_variables]=true if Gem::Version.new(Puppet::PUPPETVERSION) >= Gem::Version.new('3.5')
+ c.strict_variables = Gem::Version.new(Puppet.version) >= Gem::Version.new('3.5')
Puppet.features.stubs(:root?).returns(true)
end
@@ -35,7 +35,7 @@ Puppet[:modulepath] = File.join(dir, 'fixtures', 'modules')
# ticket https://tickets.puppetlabs.com/browse/MODULES-823
#
ver = Gem::Version.new(Puppet.version.split('-').first)
-if Gem::Requirement.new("~> 2.7.20") =~ ver || Gem::Requirement.new("~> 3.0.0") =~ ver || Gem::Requirement.new("~> 3.5") =~ ver
+if Gem::Requirement.new("~> 2.7.20") =~ ver || Gem::Requirement.new("~> 3.0.0") =~ ver || Gem::Requirement.new("~> 3.5") =~ ver || Gem::Requirement.new("~> 4.0")
puts "augeasproviders: setting Puppet[:libdir] to work around broken type autoloading"
# libdir is only a single dir, so it can only workaround loading of one external module
Puppet[:libdir] = "#{Puppet[:modulepath]}/augeasproviders_core/lib"