Replace documentation with type alias
Keep the top-of-line documentation simple, but supply additional hints as to how to configure ldap via a type alias (struct) as well as a yardoc link to the relevant API documentation.
Merge pull request #253 from bwilcox/ldap_setup
Add task and update configure plan to allow for ldap configuration on…
Update classification when replica is added
Fixes the lack of classificaton in the add_replica plan so that it does not fail when adding a replica to a deployment which was not previously configured with one. Without this fix, the plan could only replace failed replicas of the same name.
Repair failing add_replica tests after additions
Changes to add_replica which fix classificaton invalidate tests, commit makes them valid again.
Base classification on availability group
Previous to this, utility plan update_classification made unnecessary assumptions about primaries and replicas. This commit ensure those assumptions are not made and classification is based solely on availability group letter.
Make add_database compatible with classification
The switch to availability group based classification necessitated changes to add_database for it to continue working. Does a little clean up of various cruft along the way.
When reusing failed infrastructure components they may be configured for a different primary then is current and have an old certificate revacation list. Commit ensures that agent configuration is updated for the current primary and fetches CRL from that primary. Includes a little cleanup lifted from the add_compiler plan.
Get certificate status from primary
When running peadm::subplans::modify_certificate also get status of certificate from the perspective of the primary to detect if the certificate has been revoked. Introduces new task, peadm::cert_valid_status which checks different failure scenarios when validating certificates.
Expand scenario where clean failure is acceptable
Acceptable failures when running clean on a primary expanded to address scenarios where an infrastructure component is cleaned by another process, e.g. puppet infrastructure forget
Ensure global hiera is synced to new replicas
Creates a utility plan that is used by add_replica plan to source the primary's global hiera configuration and distribute it to replicat target. Without this, data in the console is not available when compiling catalogs after replica is promoted.
Provide ability to override db settings
Capability to set PuppetDB database backend address to anything. Previously, peadm::util::update_db_setting would always attempt to pair configuration with appropriate availability group letter but in DR scenarios this is not appropriate.
Fix tests after inclusion of cert_valid_status
The addition of the peadm::cert_valid_status task triggered test suite failures. Commit fixes them.
Merge pull request #258 from ody/use_failed_primary
Fix classification when adding some components
Set allow list rules on replica PuppetDB
When adding a compiler using the add_compiler plan and a replica is provisioned, it is necessary to add the new compiler's certificate name to the PuppetDB instance that will serve as replica for the compiler.
Ensure the global hiera.yaml is synced from primary so that data in console is enabled.
Restarts compiler services on infrastructure nodes which are unlikely to have them restarted by final Puppet run.
Introduced new things that needed to be mocked to finish successfully
Merge pull request #270 from ody/add_compiler_run_puppet
Set additional rules on replica when adding compiler
Merge pull request #271 from ody/bug_restart_post_convert
Restart compiler services
Merge pull request #269 from ody/beyond_with_docs
Updates documentation