-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
macOS PE tarballs include arch now #1747
Conversation
Assume PE tarballs for macOS include the architecture unless it's an older agent version. This fixes an issue when beaker-pe tries to fetch the tarball from the PE server.
Codecov Report
@@ Coverage Diff @@
## master #1747 +/- ##
==========================================
- Coverage 74.89% 74.85% -0.05%
==========================================
Files 82 82
Lines 4868 4871 +3
==========================================
Hits 3646 3646
- Misses 1222 1225 +3
Continue to review full report at Codecov.
|
For example, these earlier versions don't have the http://agent-downloads.delivery.puppetlabs.net/2019.8/puppet-agent/6.27.1/repos/ |
To verify using
|
In cases where
That works for install, but I need to try an upgrade, e.g. install 7.17.0 and then try to upgrade to 7.18.0 |
This installed 2019.8.x and upgraded to 2021.7.x
|
|
||
# macOS puppet-agent tarballs haven't always included arch | ||
agent_version = opts[:puppet_agent_version] | ||
download_file = if agent_version && (agent_version.to_f < 6.28 || agent_version.to_f < 7.18) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From what I can tell, this method is only ever called from beaker-pe and puppet_agent_version
is always passed as an option. It starts in beaker-pe, where we call get_puppet_agent_version
That method either raises or returns a non-nil value
Then we call install_puppet_agent_pe_promoted_repo_on
That method is implemented in beaker-puppet Not sure why it's in beaker-puppet (!?)
And that calls Beaker::Host#pe_puppet_agent_promoted_package_info which is the method this PR changes.
Assume PE tarballs for macOS include the architecture unless it's an older agent
version. This fixes an issue when beaker-pe tries to fetch the tarball from the
PE server.