summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColleen Murphy <colleen@gazlene.net>2017-06-11 21:49:27 +0200
committerColleen Murphy <colleen@gazlene.net>2017-06-11 21:49:27 +0200
commit227d6dc253371a10d4871bb1a247a3ecd88f2fd6 (patch)
tree7d4ac03dd6f287789bada50b065ea64af70eb449
parent33d815763c162f3c07aea5608b4682831545626a (diff)
Update beaker setup for xenial
Add a xenial nodeset and update the spec helper to install puppet 3 from the Ubuntu repos instead of from puppetlabs. Change-Id: I875a48bea886036bbb1cb00500252b46efb928f7
Notes
Notes (review): Code-Review+2: Ian Wienand <iwienand@redhat.com> Workflow+1: Ian Wienand <iwienand@redhat.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Tue, 13 Jun 2017 19:58:42 +0000 Reviewed-on: https://review.openstack.org/473143 Project: openstack-infra/puppet-iptables Branch: refs/heads/master
-rw-r--r--spec/acceptance/nodesets/nodepool-xenial.yml10
-rw-r--r--spec/spec_helper_acceptance.rb10
2 files changed, 19 insertions, 1 deletions
diff --git a/spec/acceptance/nodesets/nodepool-xenial.yml b/spec/acceptance/nodesets/nodepool-xenial.yml
new file mode 100644
index 0000000..99dd318
--- /dev/null
+++ b/spec/acceptance/nodesets/nodepool-xenial.yml
@@ -0,0 +1,10 @@
1HOSTS:
2 ubuntu-16.04-amd64:
3 roles:
4 - master
5 platform: ubuntu-16.04-amd64
6 hypervisor: none
7 ip: 127.0.0.1
8CONFIG:
9 type: foss
10 set_env: false
diff --git a/spec/spec_helper_acceptance.rb b/spec/spec_helper_acceptance.rb
index 7a5efa1..de96291 100644
--- a/spec/spec_helper_acceptance.rb
+++ b/spec/spec_helper_acceptance.rb
@@ -2,7 +2,15 @@ require 'beaker-rspec'
2 2
3hosts.each do |host| 3hosts.each do |host|
4 4
5 install_puppet 5 # puppet 3 isn't available from apt.puppetlabs.com so install it from the Xenial repos
6 on host, "which apt-get && apt-get install puppet -y", { :acceptable_exit_codes => [0,1] }
7 # otherwise use the beaker helpers to install the yum.puppetlabs.com repo and puppet
8 r = on host, "which yum", { :acceptable_exit_codes => [0,1] }
9 if r.exit_code == 0
10 install_puppet
11 end
12 add_platform_foss_defaults(host, 'unix')
13
6 14
7 on host, "mkdir -p #{host['distmoduledir']}" 15 on host, "mkdir -p #{host['distmoduledir']}"
8end 16end