Catch puppetdb sync-wait exit code and continue
When the replica is upgraded and PuppetDB sync doesn't complete within 15 minutes, the upgrade command exits with exitstatus 11. This should not be a condition in which the upgrade plan fails; the upgrade plan should proceed forward in this case. There are many reasons why PuppetDB sync might not complete quickly, but it's not a reason not to continue upgrading the compilers. Upgrading the remaining compilers will result in a more stable deployment than not upgrading them, whatever the reason for PuppetDB sync being incomplete/slow.
Handle exit code 11 from replica upgrade task gracefully
Code 11 means "PuppetDB sync in progress but not yet complete". We don't want to abort upgrade on this code. Commit also refactors task to make it easier to unit test.
Catch orchestrator errors like "permission denied"
Print better data when something goes wrong. Example: when the token used to connect to the orchestrator is not permitted to perform the requested operation.
Make unit testing mode controlled by env var
This feels more user-defined and unlikely to be affected by future Bolt product changes, compared to relying on whether or not a tty is present.
Merge pull request #139 from puppetlabs/infra-upgrade-improvement
Infra upgrade improvement
Use stdlib parsehocon() function
This requires puppetlabs-stdlib version 6.5.0 or newer.
Use node_manager's new purge_behavior parameter
This allows us to ensure the data we need, but preserve any user data that may have been set, on the node groups we manage.
Merge pull request #141 from timidri/check_bolt_version
Add bolt_version function and use it in plans
Merge pull request #134 from puppetlabs/GH-130-purge_behavior
Use node_manager's new purge_behavior parameter
Adds testing for validate_version
* Previously there was not any unit tests for
validate_version function. Additionally, the function
was updated to return a Boolean unless the unsupported
version is identified. This return value, while not used
in plans helps with unit testing.Merge pull request #142 from nwops/version
Adds testing for validate_version
Merge pull request #143 from vchepkov/fix-params
fix documented parameters for peadm::install plan
Ensure locales are set to en_US.UTF-8 for install
This prevent the following installation error when the source Bolt host runs a non-US locale: `failed to call refresh: invalid byte sequence in US-ASCII`
Merge pull request #145 from bryanjbelanger/cleanup
Added modules to bolt-project. Removed Puppetfile
Merge pull request #144 from kreeuwijk/patch-1
Ensure locales are set to en_US.UTF-8 for install
Merge pull request #146 from puppetlabs/pe-2021-support
PE 2021.0 support
Remove tty setting from config example
There is a Bolt bug where if tty is true, apply blocks won't work in plans. That will get fixed but in the meantime, removing this from the doc example just in case in the time between now and the bug being fixed somebody copy-pastes the config into something. We don't want them to get tripped up by something like that.
Update bolt-project.yaml dependencies
Now that WhatsARanjit has released a new version of node_manager