-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating add compiler docs to show optional params
- Loading branch information
Showing
2 changed files
with
45 additions
and
14 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 |
---|---|---|
@@ -1,33 +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 | ||
|
||
Prepare to run the plan using a params.json file such as this one: | ||
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 | ||
{ | ||
"avail_group_letter": "A", | ||
"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", | ||
"primary_host": "pe-xl-core-0.lab1.puppet.vm" | ||
} | ||
``` | ||
|
||
See the [install](install.md#reference-architectures) documentation for a list of supported architectures. | ||
|
||
|
||
## Running the add_compiler plan | ||
## 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 is be installed. The compiler agent's certificate is be regenerated to include required data with `peadm::subplans::component_install`. Puppet agent will run on the following components | ||
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 be 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 been seen used 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 each 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` | This will by default 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