Skip to content
This repository has been archived by the owner on Feb 4, 2020. It is now read-only.

Commit

Permalink
Merge pull request #20 from queeno/fix_beaker_tests
Browse files Browse the repository at this point in the history
Fix puppet-uchiwa beaker tests
  • Loading branch information
solarkennedy committed Nov 11, 2014
2 parents ffc22e2 + 359df67 commit f078fb8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions spec/acceptance/class_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
it 'should work with no errors' do
pp = <<-EOS
class { 'rabbitmq':
package_ensure => installed,
ssl => false,
delete_guest_user => true,
}
Expand Down
13 changes: 12 additions & 1 deletion spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,28 @@
# RubyGems missing on some Vagrant boxes
# Otherwise you'lll get a load of 'Provider gem is not functional on this host'
shell('apt-get install rubygems -y')
# TODO: puppetlabs-rabbitmq 4.1 doesn't support rabbitmq 3.4.0.
# Remove the following two lines after a new puppetlabs-rabbitmq release
# that contains PR #250
shell('apt-get install erlang-nox -y')
shell('wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.3.5/rabbitmq-server_3.3.5-1_all.deb && sudo dpkg -i rabbitmq-server_3.3.5-1_all.deb')
end
if fact('osfamily') == 'RedHat'
# RedHat needs EPEL for RabbitMQ and Redis
shell('wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm && sudo rpm -Uvh epel-release-6*.rpm')
# TODO: puppetlabs-rabbitmq 4.1 doesn't support rabbitmq 3.4.0.
# Remove the following three lines after a new puppetlabs-rabbitmq release
# that contains PR #250
shell('sed -i \'s/\(mirrorlist=http\)s/\1/\' /etc/yum.repos.d/epel.repo')
shell('yum install -y erlang')
shell('rpm -Uvh http://www.rabbitmq.com/releases/rabbitmq-server/v3.3.5/rabbitmq-server-3.3.5-1.noarch.rpm')
end
shell('/bin/touch /etc/puppet/hiera.yaml')
shell('puppet module install puppetlabs-stdlib --version 3.2.0', { :acceptable_exit_codes => [0] })
shell('puppet module install maestrodev/wget --version 1.4.5', { :acceptable_exit_codes => [0] })
shell('puppet module install puppetlabs/apt --version 1.6.0', { :acceptable_exit_codes => [0] })
shell('puppet module install puppetlabs-rabbitmq --version 4.1.0', { :acceptable_exit_codes => [0] })
shell('puppet module install fsalum-redis --version 1.0.0', { :acceptable_exit_codes => [0] })
shell('puppet module install puppetlabs/apt --version 1.6.0', { :acceptable_exit_codes => [0] })
shell('puppet module install sensu-sensu', { :acceptable_exit_codes => [0] })
shell('puppet module install richardc/datacat', { :acceptable_exit_codes => [0] })
end
Expand Down

0 comments on commit f078fb8

Please sign in to comment.