-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(plans): add peadm::add_compiler plan
- Introduced a new plan `peadm::add_compiler` as a proxy for `peadm::add_compilers`. - Added documentation for the new plan in REFERENCE.md. - Parameters include `avail_group_letter`, `compiler_host`, `dns_alt_names`, `primary_host`, and `primary_postgresql_host`. - The plan outputs a deprecation message and calls `peadm::add_compilers` with the provided parameters.
- Loading branch information
Showing
2 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# @api public | ||
# | ||
# @summary Proxy plan for peadm::add_compiler. | ||
# @param avail_group_letter _ Either A or B; whichever of the two letter designations the compiler are being assigned to | ||
# @param compiler_host _ The hostname and certname of the new compiler | ||
# @param dns_alt_names _ A comma-separated list of DNS alt names for the compiler. | ||
# @param primary_host _ The hostname and certname of the primary Puppet server | ||
# @param primary_postgresql_host _ The hostname and certname of the PE-PostgreSQL server with availability group $avail_group_letter | ||
plan peadm::add_compiler( | ||
Enum['A', 'B'] $avail_group_letter = 'A' , | ||
Optional[String[1]] $dns_alt_names = undef, | ||
Peadm::SingleTargetSpec $compiler_host, | ||
Peadm::SingleTargetSpec $primary_host, | ||
Optional[Peadm::SingleTargetSpec] $primary_postgresql_host = undef, | ||
) { | ||
out::message('Warning: The add_compiler plan is deprecated and will be removed in a future release. Please use the add_compilers plan instead. ') | ||
run_plan('peadm::add_compilers', | ||
avail_group_letter => $avail_group_letter, | ||
dns_alt_names => $dns_alt_names ? { undef => undef, default => Array($dns_alt_names) }, | ||
compiler_hosts => $compiler_host, | ||
primary_host => $primary_host, | ||
primary_postgresql_host => $primary_postgresql_host, | ||
) | ||
} |