puppetlabs / beaker-puppet_install_helper Goto Github PK
View Code? Open in Web Editor NEWA beaker helper for installing PE, Foss/Gem puppet, or puppet-agent all in one beaker method.
License: Other
A beaker helper for installing PE, Foss/Gem puppet, or puppet-agent all in one beaker method.
License: Other
Hi,
I'm using run_puppet_install_helper to install puppet client, but it's not working on centos5 because it is using https:
[root@480275903ffb /]# rpm -Uvh https://yum.puppetlabs.com/puppetlabs-release-el-5.noarch.rpm
Retrieving https://yum.puppetlabs.com/puppetlabs-release-el-5.noarch.rpm
error: skipping https://yum.puppetlabs.com/puppetlabs-release-el-5.noarch.rpm - transfer failed - Unknown or unexpected error
[root@480275903ffb /]# rpm -Uvh http://yum.puppetlabs.com/puppetlabs-release-el-5.noarch.rpm
Retrieving http://yum.puppetlabs.com/puppetlabs-release-el-5.noarch.rpm
warning: /var/tmp/rpm-xfer.5SmRAV: Header V3 RSA/SHA1 signature: NOKEY, key ID 4bd6ec30
Preparing... ########################################### [100%]
1:puppetlabs-release ########################################### [100%]
Is there any way to force it to use http since https is not working?
thanks,
When using ' BEAKER_PUPPET_COLLECTION=pc1' I get the following error running beaker:
An error occurred while loading ./spec/acceptance/am__server_spec.rb.
Failure/Error: run_puppet_install_helper()
Beaker::Host::CommandFailure:
Host 'centos-7-x64' exited with 1 running:
rpm --replacepkgs -Uvh http://yum.puppet.com/pc1-release-el-7.noarch.rpm
Last 10 lines of output were:
curl: (22) The requested URL returned error: 404 Not Found
Retrieving http://yum.puppet.com/pc1-release-el-7.noarch.rpm
error: skipping http://yum.puppet.com/pc1-release-el-7.noarch.rpm - transfer failed
I think the correct url should be http://yum.puppet.com/puppetlabs-release-pc1-el-7.noarch.rpm
At VoxPupuli the beaker tests use the puppet_install_helper method.
It's not possibile to declare PUPPET_INSTALL_VERSION=5.0.0
right now. Reading https://github.com/puppetlabs/beaker-puppet_install_helper/blob/master/CONTRIBUTING.md it seems like this is deprecated.
What is the puppet beaker rspec way to test with the new Puppet 5?
Running PUPPET_INSTALL_TYPE=foss PUPPET_INSTALL_VERSION=3.8.7 BEAKER_set=fedora-24-x64 BEAKER_destroy=no bundle exec rake beaker:fedora-24-x64
fails with:
/home/user/.gem/ruby/gems/beaker-3.9.0/lib/beaker/host.rb:373:in `exec': Host 'fedora-24-x64' exited with 1 running: (Beaker::Host::CommandFailure)
rpm --replacepkgs -Uvh http://yum.puppetlabs.com/puppetlabs-release-fedora-24.noarch.rpm
Last 10 lines of output were:
curl: (22) The requested URL returned error: 404 Not Found
Retrieving http://yum.puppetlabs.com/puppetlabs-release-fedora-24.noarch.rpm
error: skipping http://yum.puppetlabs.com/puppetlabs-release-fedora-24.noarch.rpm - transfer failed
from /home/user/.gem/ruby/gems/beaker-3.9.0/lib/beaker/command_factory.rb:35:in `execute'
from /home/user/.gem/ruby/gems/beaker-3.9.0/lib/beaker/host/unix/pkg.rb:155:in `install_package_with_rpm'
from /home/user/.gem/ruby/gems/beaker-3.9.0/lib/beaker/dsl/install_utils/foss_utils.rb:925:in `block in install_puppetlabs_release_repo_on'
from /home/user/.gem/ruby/gems/beaker-3.9.0/lib/beaker/shared/host_manager.rb:127:in `run_block_on'
from /home/user/.gem/ruby/gems/beaker-3.9.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
from /home/user/.gem/ruby/gems/beaker-3.9.0/lib/beaker/dsl/install_utils/foss_utils.rb:899:in `install_puppetlabs_release_repo_on'
from /home/user/.gem/ruby/gems/beaker-3.9.0/lib/beaker/dsl/install_utils/foss_utils.rb:439:in `block in install_puppet_from_rpm_on'
from /home/user/.gem/ruby/gems/beaker-3.9.0/lib/beaker/shared/host_manager.rb:127:in `run_block_on'
...
what I tried, but did not help:
type: foss
in nodeset definitionsnippet from README
if PUPPET_INSTALL_VERSION is less than 4 will attempt to install that version of the system package if available, or else the ruby gem of that version.
it should install the gem if there is no system package.
used gem versions:
#> grep beaker Gemfile.lock
beaker (3.9.0)
beaker-facter (~> 0.0)
beaker-hiera (~> 0.0)
beaker-hostgenerator
beaker-facter (0.1.0)
beaker-hiera (0.1.1)
beaker-hostgenerator (0.8.2)
beaker-puppet_install_helper (0.6.0)
beaker (>= 2.0)
beaker-rspec (6.0.0)
beaker (~> 3.0)
beaker-puppet_install_helper
beaker-rspec
Are there any workarounds to make it work with beaker 4.0?
An error occurred while loading ./spec/acceptance/class_spec.rb.
Failure/Error: run_puppet_install_helper_on(hosts) unless ENV['BEAKER_provision'] == 'no'
NoMethodError:
undefined method `install_puppet_agent_on' for main:Object
Did you mean? install_ca_certs_on
# /home/lcentinel/.rvm/gems/ruby-2.4.4/gems/beaker-puppet_install_helper-0.9.4/lib/beaker/puppet_install_helper.rb:95:in `run_puppet_install_helper_on'
# ./spec/spec_helper_acceptance.rb:9:in `<top (required)>'
# ./spec/acceptance/class_spec.rb:1:in `require'
# ./spec/acceptance/class_spec.rb:1:in `<top (required)>'
No examples found.
ssh connection to master has been terminated
removing temporary ssh-config files per-vagrant box
Destroying vagrant boxes
==> master: Forcing shutdown of VM...
==> master: Destroying VM and associated drives...
It would be great if the docs could explain how to specify install type etc. via the nodeset's yaml config vs. just env variables (e.g., PUPPET_INSTALL_TYPE
, PUPPET_INSTALL_VERSION
). If I set
CONFIG:
type: agent
in the YAML config for the node, it still seems to try and install Puppet 3 (which fails).
https://tickets.puppetlabs.com/browse/BKR-970 explains how to install puppet 4.x agent (install_puppet_agent_on(hosts, options)
); is there an equivalent for this helper? Since this is intended to be a wrapper, would also be nice if it could default to Puppet 4 on platforms that don't support 3 (see error in https://tickets.puppetlabs.com/browse/BKR-970).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.