Skip to content

Commit

Permalink
Configure debian 8 systems for acceptance tests
Browse files Browse the repository at this point in the history
* pacemaker and crmsh are delivered in jessie-backports
* openhpid post-install may fail (#408)
  • Loading branch information
btravouillon committed Oct 23, 2017
1 parent a7c8372 commit 65b71f3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion spec/acceptance/nodesets/docker/debian-8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ HOSTS:
docker_preserve_image: true
docker_cmd: '["/sbin/init"]'
docker_image_commands:
- 'echo deb http://ftp.debian.org/debian jessie-backports main >> /etc/apt/sources.list'
- 'apt-get update && apt-get install -y cron locales-all net-tools wget'
- 'rm -f /usr/sbin/policy-rc.d'
- 'systemctl mask getty@tty1.service getty-static.service'
Expand Down
8 changes: 8 additions & 0 deletions spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@

hosts.each do |host|
on host, puppet('module', 'install', 'puppetlabs-stdlib'), acceptable_exit_codes: [0, 1]

# For Debian 8 "jessie", we need
# - pacemaker and crmsh delivered in jessie-backports only
# - openhpid post-install may fail (https://bugs.debian.org/785287)
if fact('lsbdistcodename') == 'jessie'
on host, 'echo deb http://ftp.debian.org/debian jessie-backports main >> /etc/apt/sources.list'
on host, 'apt-get update && apt-get install -y openhpid'
end
end
end
end
Expand Down

0 comments on commit 65b71f3

Please sign in to comment.