Skip to content

Conversation

@caseywilliams
Copy link
Contributor

Allows the environment variable BEAKER_PACKAGING_PLATFORMS to override
the default packaging platforms specified for hosts by
beaker-hostgenerator in host_urls. BEAKER_PACKAGING_PLATFORMS should
be a comma-separated list with entries of the format
<platform-name>=<packaging-platform-name>.

Here's an example run of puppet-agent and puppet acceptance, with BEAKER_PACKAGING_PLATFORMS="aix-7.1-power=aix-6.1-power,aix-7.2-power=aix-6.1-power" set on puppet-agent only; The puppet-agent tests install the 6.1 package on 7.1 and 7.2, and the puppet tests (which don't use the environment variable) fail, because they still look for 7.1 and 7.2 packages, which aren't available in this run.

@caseywilliams caseywilliams force-pushed the BKR-1484/platform-overrides branch from d0e2a76 to d537b16 Compare July 3, 2018 14:23
@caseywilliams caseywilliams requested review from branan and kevpl July 3, 2018 14:32
if ENV['BEAKER_PACKAGING_PLATFORMS']
overrides = Hash[ENV['BEAKER_PACKAGING_PLATFORMS'].split(',').map { |e| e.split('=') }]
logger.debug("Found packaging platform overrides: #{overrides}")
if overrides[host[:packaging_platform]]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be looking up overrides for host[:platform]?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it should -- my aix tests just happened to work out for that specific case anyway. I'll update.

Copy link
Contributor

@speedofdark speedofdark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Allows the environment variable BEAKER_PACKAGING_PLATFORMS to override
the default packaging platforms specified for hosts by
beaker-hostgenerator in `host_urls`. BEAKER_PACKAGING_PLATFORMS should
be a comma-separated list with entries of the format
`<platform-name>=<packaging-platform-name>`.
@caseywilliams caseywilliams force-pushed the BKR-1484/platform-overrides branch from d537b16 to 97d6eaa Compare July 3, 2018 17:31
@caseywilliams
Copy link
Contributor Author

The PR test failure looks transient

@caseywilliams
Copy link
Contributor Author

jenkins please test this

@kevpl kevpl merged commit 2f05918 into puppetlabs:master Jul 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants