Merge branch '1.x' into MODULES-6717-mergeback-and-drop-3.8
* 1.x: (MODULES-6832) Prepare for v1.6.0 release (MODULES-6826) Pin rspec-puppet to 2.6.9 (MODULES-6717) Pin module versions in acceptance test fixtures (MODULES-6708) Use puppetlabs-inifile 2.1.0 or less (MODULES-6708) Install CA Certs for module downloading Revert "(MODULES-6280) ensure compatibility to puppetlabs/apt > 3.0.0 (#268)"
(MODULES-6280) Pin apt module versions in acceptance test fixtures
Previously the APT module versions were increased however the test fixtures were not modified. This commit changes the testing fixtures to the latest possible versions.
(MODULES-6717) Remove Puppet Agent 3.x support
This commit begins the process to remove Puppet 3.x support and make Puppet 4.7.0 the lower bound of testing and applicability.
(MODULES-6717) Update apt to 4.4.0 and remove deprecated functions
Previously apt modules prior to 4.4.0 used deprecated functions in StdLib. This commit updates apt to a minimum of 4.4.0 and updates the debian tests with a new fact requirement. This commit also removes the use of deprecated functions in the puppet_agent module itself, and moving to Puppet 4 data types.
Merge pull request #283 from glennsarti/MODULES-6717-mergeback-and-dr…
…op-3.8 (MODULES-6717) Mergeback 1.x to Master and remove Puppet 3.8
(maint) Update Stdlib dependency
Previously the Stdlib module was updated in the test fixtures to support the Puppet 4 types however this was not updated in the metadata.json. (4d9b949). This commit updates the metadata to match that of the minimum test fixtures.
Merge pull request #284 from glennsarti/master
(maint) Update Stdlib dependency
(MODULES-4271) Update Windows OSes in metadata
This commit removes Windows Operating Systems that are no longer supported and adds Server 2016.
Merge pull request #288 from glennsarti/add-2016
(MODULES-4271) Update Windows OSes in metadata
(MODULES-6708) fix tests for windows agent to agent upgrades
* remove tests around configuration migration as they are not managed by the upgrade * changed base version from 3.x to 1.7.0 and associated changes * specified upgrade target as 1.10.0 Three Windows tests are currently red. Two appear to be legitimate failues related to idempotency. The third is related to service startup. Tests have only been updated to make things green, with no other refactoring applied as yet.
Merge pull request #285 from speedofdark/modules-6708-fix-tests
(MODULES-6708) fix tests for windows agent to agent upgrades
(MODULES-6915) Remove check for PE when calculating whether to upgrade
On FOSS Windows specifically, the agent would continue to upgrade on every puppet run. This removes a code path that would behave differently for PE vs. FOSS, and actually perform a version check.
Merge pull request #289 from smcclellan/version-upgrades-fix
(MODULES-6915) Remove check for PE when calculating whether to upgrade
* 1.x: (MODULES-7167) Prepare module for 1.6.1 release (MODULES-5230) Conditionally test on Puppet 3.x (maint) Pin Beaker on old ruby versions (maint) Update Gemfile for older ruby versions (MODULES-5230) Use legacy fact variables (MODULES-4424) Add skip_if_unavailable to yumrepo resource (MODULES-7329) Fix update failure for FIPS (MODULES-4195) Install AIX 6.1 RPMs on all AIX versions for puppet6 (PE-23725) Update metadata to to add Ubuntu 18.04 (MODULES-7167) Prepare for 1.6.1 release
Merge pull request #300 from glennsarti/master
(maint) Mergeback 1.x into master
(BOLT-701) Add new tasks to install the agent package
This adds a new task to install the agent on linux nodes from the public package repositories.
(BOLT-704) Add acceptance tests for install task
This adds acceptance tests for the install task that run in travis. It contains new task testing helpers to run bolt from the gemfile instead of installing it on the SUT. These should be moved to the beaker-task_helper library.
Merge pull request #302 from adreyer/BOLT-701
(BOLT-701) Add task to install agent package on linux
(PDK-1036) Unpin rspec-puppet from 2.6.9
The bug that necessitated the pinning (rodjek/rspec-puppet#663) has been resolved and this module can return to tracking the latest versions of rspec-puppet again.
(maint) Unpin puppet-module-posix-dev from 0.3.3
As of MODULES-6717, this module is no longer tested against Puppet 3.x meaning that the minimum Ruby version has raised to 2.1.9. This gem was pinned to 0.3.3 to enable support of Ruby back to 2.1.0.
Merge pull request #305 from rodjek/pdk-1036
(PDK-1036) Unpin rspec-puppet from 2.6.9
(maint) Use more unique name for install implementation
Use an implicit namespace to identify the shell implementation of install. Note that the implementation file has a different name to prevert PE from erroring about multiple tasks with the same name once we add other implementations. Also clarify the metadata.
Adds a task to retrieve the installed version of the puppet-agent
package. Returns results as `{"version": "<ver>", "source": "<how
version was detected>"}`. If a version cannot be found, returns
`{"version": null, "source": null}`.Merge pull request #306 from MikaelSmith/version-task
(BOLT-641) Add version task
(BOLT-702) Install puppet agent on macOS
Support puppet-agent install on macOS 11, 12, and 13. Logic is based on the PE install script.
Previously any Beaker version 3+ was supported. However Beaker 4 was just released and removes many previously integrated gems. Stick to Beaker 3 until we can figure out which ones explicitly need to be pulled in.
(maint) Remove unused functions
Remove unused shell functions do_checksum and checksum_mismatch from the install task.
Merge pull request #307 from donoghuc/BOLT-702
(BOLT-702) Install puppet agent on osx
(maint) Restore correct dependencies with Beaker 4
Add back dependencies we need that were removed in Beaker 4.
Merge pull request #310 from MikaelSmith/beaker-4
(maint) Restore correct dependencies with Beaker 4
(MODULES-7580) Fix PowerShell task for puppet version on 32bit
Previously the powershell based version task was failing on 32bit windows operating systems due to passing in a null path to Test-Path. This commit modifies the detection to be far more tolerant of errors and instead detects if the registry entries are null instead of using Test-Path. This commit also cleans up the code as per PS Script Analyzer rules; * Remove use of aliases * Prefer `$null -eq ...` instead of `... -eq $null`
Merge pull request #309 from glennsarti/modules-7580-powershell
(MODULES-7580) Fix PowerShell task for puppet version on 32bit
(BOLT-703) Install puppet agent on windows
Add powershell task implementation to install puppet agent on windows platforms. Logic based on https://github.com/puppetlabs/puppetlabs-pe_repo/blob/hoyt/templates/install.ps1.erb
Merge pull request #308 from donoghuc/BOLT-703
(BOLT-703) Install puppet agent on windows
(BOLT-742) Add support for collections to install task
Adds a collections parameter that defaults to 'puppet'. Available values - 'puppet5' - 'puppet6', for future support when it's released - 'puppet', aliases to the latest available collection Install will select either the latest version from that collection, or only work if you provide a valid version within that collection. To install versions outside the default collection you'll need to explicitly specify the collection and version.
Merge pull request #312 from MikaelSmith/BOLT-742
(BOLT-742) Add support for collections to install task
Merge pull request #311 from adreyer/BOLT-229
(BOLT-229) update to use new test helpers in BoltSpec and task_helpers
(maint) Require beaker-puppet for beaker 4.0 update
As of beaker 4.0 beaker no longer requires beaker-puppet. This commit adds beaker-puppet required for acceptance tests.
Merge pull request #314 from donoghuc/update-bkr
(maint) Require beaker-puppet for beaker 4.0 update
(maint) Revert to beaker 3.x.x
This commit pins beaker-rspec at 6.2.3. This forces beaker to be pre 4.0.0. The combination of beaker 4.0.0 and beaker-puppet causes failures in acceptance tests tracked with https://tickets.puppetlabs.com/browse/BKR-1516.
Merge pull request #315 from donoghuc/pin-bkr
(maint) Revert to beaker 3.x.x
(maint) Bump beaker-task_helper version
In order to support automated testing for install_agent tasks beaker-task_helper was updated to add support for the abs hypervisor.
Merge pull request #316 from donoghuc/bump-bkr-task_helper
(maint) Bump beaker-task_helper version
(MOD-7655) SLES support for install_agent tasks
This commit adds logic to the install_shell.sh install task implementation to support installing puppet-agent on SLES platforms. Currently the supported platform versions are 11 and 12. Nodeset templates have been added for manual testing.
Merge pull request #318 from donoghuc/MOD-7655
(MOD-7655) SLES support for install_agent tasks
Bolt 0.21.8 includes update to host-key-check that is required by task acceptance tests. This commit updates the bolt dependency accordingly.