Skip to content

Commit

Permalink
deploy-guide: add become-conn parameter to manager (#168)
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Berendt <[email protected]>
  • Loading branch information
berendt authored Nov 22, 2023
1 parent f325c7d commit 9d7a70d
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions docs/guides/deploy-guide/bootstrap.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ Before the nodes can be bootstrapped, they must all have already been provisione
The guide for this can be found in the section
[Provisioning of management and control plane nodes](./provisioning)

The following steps are applied to bootstrap all nodes. After the completion of the bootstrap, the nodes are already ready for use.
The following steps are applied to bootstrap all nodes. After the completion of the bootstrap,
the nodes are already ready for use.

1. Create operator user.

Expand All @@ -20,11 +21,23 @@ The following steps are applied to bootstrap all nodes. After the completion of
* The operator public SSH key has to be added in advance on all nodes to `authorized_keys` file
of the user specified with `-u`. This key is stored as `operator_public_key` in the file
`environments/configuration.yml`.
* Alternatively (not recommended), the password can be stored in plain text in a file `/opt/configuration/secrets/osism_password`.
The parameter `--conn-pass-file /opt/configuration/secrets/osism_password` must then also be specified:

Alternatively (not recommended), the password can be stored in plain text in a file `/opt/configuration/secrets/conn_password`.
The parameter `--conn-pass-file /opt/configuration/secrets/conn_password` must then also be specified:

```
osism apply operator -u osism \
--conn-pass-file /opt/configuration/secrets/conn_password
```

* It is important that this user has sudo rights with `NOPASSWD`.

Alternatively (not recommended), the password can be stored in plain text in a file `/opt/configuration/secrets/become_password`.
The parameter `--become-pass-file /opt/configuration/secrets/become_password` must then also be specified:

```
osism apply operator -u osism --conn-pass-file /opt/configuration/secrets/osism_password
osism apply operator -u osism \
--become-pass-file /opt/configuration/secrets/become_password
```

* When using the [osism/node-image](https://github.com/osism/node-image) the user is `osism` and the password of this
Expand Down

0 comments on commit 9d7a70d

Please sign in to comment.