Skip to content
This repository has been archived by the owner on Sep 24, 2019. It is now read-only.

Commit

Permalink
(FM-7389) - Add Puppet 6 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
eimlav committed Sep 19, 2018
1 parent 97b104f commit ba62b9a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This gem is simply an abstraction for the various ways that we install puppet fr

The way to use this is to declare either `run_puppet_install_helper()` or `run_puppet_install_helper_on(hosts)` and set environment variables `BEAKER_PUPPET_AGENT_VERSION` and/or `BEAKER_PUPPET_COLLECTION` in the following combinations to have puppet installed on the desired hosts. The nodeset should be configured with `type: pe` or `type: aio` to control the type of install.

- `BEAKER_PUPPET_COLLECTION=<puppet collection>` will install the specified `BEAKER_PUPPET_AGENT_VERSION` from the specified collection. Valid values are `pc1`, `puppet5`, `puppet6-nightly` etc. This may change with time.
- `BEAKER_PUPPET_COLLECTION=<puppet collection>` will install the specified `BEAKER_PUPPET_AGENT_VERSION` from the specified collection. Valid values are `pc1`, `puppet5`, `puppet6`, `puppet6-nightly` etc. This may change with time.
- `BEAKER_PUPPET_AGENT_VERSION=<version>` to specify
- `BEAKER_IS_PE=<yes or no>` may be used to force a nodeset to be PE or not, regardless of the nodeset `type` or absence thereof.
- `BEAKER_PE_VER=<pe version>` may be used to specify the PE version for masters. Eg: `BEAKER_PE_VER=2017.3.5`
Expand Down
3 changes: 2 additions & 1 deletion lib/beaker/puppet_install_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ def run_puppet_install_helper_on(hosts, type_arg = find_install_type, version =
# BEAKER_PUPPET_COLLECTION=pc1 <-- for latest 4.x
# BEAKER_PUPPET_COLLECTION=puppet5 <-- for latest 5.x
# BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_PUPPET_AGENT_VERSION=5.3.1 <-- for specific version
# BEAKER_PUPPET_COLLECTION=puppet6-nightly <-- for latest nightly build
# BEAKER_PUPPET_COLLECTION=puppet6 <-- for latest 6.x
# BEAKER_PUPPET_COLLECTION=puppet-nightly <-- for latest nightly build
# BEAKER_PUPPET_AGENT_SHA=0ed2bbc918326263da9d97d0361a9e9303b52938 <-- for specific dev build

# Ensure windows 2003 is always set to 32 bit
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/beaker/puppet_install_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
subject.run_puppet_install_helper_on(hosts)
end
end
['puppet5', 'puppet6-nightly'].each do |collection|
['puppet5', 'puppet6-nightly', 'puppet6'].each do |collection|
context "with #{collection} collection" do
it "installs puppet-agent from #{collection} repo" do
ENV['BEAKER_PUPPET_COLLECTION'] = collection
Expand Down

0 comments on commit ba62b9a

Please sign in to comment.