Fix beaker on xenial
Add a xenial nodeset and update the spec helper to install puppet 3 from the Ubuntu repos instead of from puppetlabs. Also fix a linter error. Change-Id: Iad0ceb85547747d6c5d16e93f024a59ffafc13f1
This commit is contained in:
parent
1decc9c14c
commit
8f02f2da7c
@ -19,13 +19,13 @@ class lpmqtt::server (
|
||||
$imap_username,
|
||||
$imap_hostname,
|
||||
$imap_password,
|
||||
$mqtt_password,
|
||||
$imap_use_ssl = true,
|
||||
$imap_folder = 'INBOX',
|
||||
$imap_delete_old = false,
|
||||
$mqtt_hostname = 'firehose01.openstack.org',
|
||||
$topic = 'launchpad',
|
||||
$mqtt_username = 'infra',
|
||||
$mqtt_password,
|
||||
) {
|
||||
file { '/etc/lpmqtt.conf':
|
||||
ensure => present,
|
||||
|
10
spec/acceptance/nodesets/nodepool-xenial.yml
Normal file
10
spec/acceptance/nodesets/nodepool-xenial.yml
Normal file
@ -0,0 +1,10 @@
|
||||
HOSTS:
|
||||
ubuntu-16.04-amd64:
|
||||
roles:
|
||||
- master
|
||||
platform: ubuntu-16.04-amd64
|
||||
hypervisor: none
|
||||
ip: 127.0.0.1
|
||||
CONFIG:
|
||||
type: foss
|
||||
set_env: false
|
@ -2,7 +2,14 @@ require 'beaker-rspec'
|
||||
|
||||
hosts.each do |host|
|
||||
|
||||
# puppet 3 isn't available from apt.puppetlabs.com so install it from the Xenial repos
|
||||
on host, "which apt-get && apt-get install puppet -y", { :acceptable_exit_codes => [0,1] }
|
||||
# otherwise use the beaker helpers to install the yum.puppetlabs.com repo and puppet
|
||||
r = on host, "which yum", { :acceptable_exit_codes => [0,1] }
|
||||
if r.exit_code == 0
|
||||
install_puppet
|
||||
end
|
||||
add_platform_foss_defaults(host, 'unix')
|
||||
|
||||
on host, "mkdir -p #{host['distmoduledir']}"
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user