-
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.
(PE-37235) Verify and update documentation on add_compiler (#429)
* PE-37235 Verify and update documentation on add_compiler if needed and its experimental status * @cathal41 PE-37235 Verify and update documentation on add_compiler - wording updates * Update plans/add_compiler.pp Co-authored-by: Dimitri Tischenko <1586813+timidri@users.noreply.github.com> * Update documentation/add_compiler.md Co-authored-by: Dimitri Tischenko <1586813+timidri@users.noreply.github.com> * Update documentation/add_compiler.md Co-authored-by: Dimitri Tischenko <1586813+timidri@users.noreply.github.com> * Update documentation/add_compiler.md Co-authored-by: Dimitri Tischenko <1586813+timidri@users.noreply.github.com> * Update documentation/add_compiler.md Co-authored-by: Dimitri Tischenko <1586813+timidri@users.noreply.github.com> * Update documentation/add_compiler.md Co-authored-by: Dimitri Tischenko <1586813+timidri@users.noreply.github.com> * Updating add compiler docs to show optional params * Updating docs with text corrections --------- Co-authored-by: Dimitri Tischenko <1586813+timidri@users.noreply.github.com> Co-authored-by: Neil Anderson <neil.anderson@perforce.com>
- Loading branch information
1 parent
e610a2a
commit d8ced09
Showing
3 changed files
with
75 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Add Compiler | ||
|
||
- [Add Compiler](#Add-Compiler) | ||
- [Introduction](#Introduction) | ||
- [Add a compiler to an existing PE cluster](#Add-a-compiler-to-an-existing-PE-cluster) | ||
- [Running the `add_compiler` plan](#running-the-add_compiler-plan) | ||
- [Optional Parameters](#optional-parameters) | ||
|
||
|
||
## Introduction | ||
|
||
The `peadm::add_compiler` plan can be used to add a new compiler to a PE cluster or replace an existing one with new configuration. | ||
|
||
|
||
## Add a compiler to an existing PE cluster | ||
|
||
As seen in the example below, this is the minimal parameters required to add a compiler to an existing PE cluster. These can be passed as command line variables to the plan, or in this case added to a params.json file. | ||
|
||
```json | ||
{ | ||
"compiler_host": "pe-xl-compiler-0.lab1.puppet.vm", | ||
"primary_host": "pe-xl-core-0.lab1.puppet.vm" | ||
} | ||
``` | ||
|
||
## Running the `add_compiler` plan | ||
``` | ||
bolt plan run peadm::add_compiler --params @params.json | ||
``` | ||
|
||
This command will retrieve the current PEADM configuration to determine the setup rules needed for a compiler's secondary PuppetDB instances. The plan will configure the primary with appropriate rules for allowing access from the new compiler. On the primary, the `puppet` service is stopped and the `pe-postgresql` service is reloaded. If required, a puppet agent will be installed on the new compiler host. The compiler agent's certificate is regenerated to include data required by the `peadm::subplans::component_install` plan. A subsequent Puppet agent run will happen on the following components. | ||
* _\<compiler-host\>_ | ||
* _\<primary_postgresql_host\>_ | ||
* _\<replica host\>_ | ||
* _\<primary_postgresql_host\>_ | ||
|
||
The `puppet` service is then restarted. | ||
|
||
|
||
## Optional Parameters | ||
|
||
As well as `compiler_host` and `primary_host`, the `add_compiler` plan has a number of optional parameters. These can be viewed in the following params example. | ||
|
||
```json | ||
{ | ||
"avail_group_letter": "B", | ||
"compiler_host": "pe-xl-compiler-0.lab1.puppet.vm", | ||
"dns_alt_names": [ "puppet", "puppet.lab1.puppet.vm" ], | ||
"primary_host": "pe-xl-core-0.lab1.puppet.vm", | ||
"primary_postgresql_host": "pe-psql-6251cd-0.us-west1-a.c.slice-cody.internal" | ||
} | ||
``` | ||
|
||
Please note, the optional parameters and values of the plan are as follows. | ||
|
||
<!-- table --> | ||
| Parameter | Default value | Description | | ||
|--------------------------|---------------|--------------------------------------------------| | ||
| `avail_group_letter` | `A` | By default, each compiler will be added to the primary group A. | | ||
| `dns_alt_names` | `undef` | | | ||
| `primary_postgresql_host`| `undef` | By default, this will pre-populate to the required value depending if your architecture contains HA and or external databases. | | ||
|
||
For more information around adding compilers to your infrastructure [Expanding Your Deployment](expanding.md#adding-compilers-with-peadmadd_compiler) | ||
|
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