BootstrapΒΆ
The following steps are performed to initialize all nodes. Scaling describes how to add a new node to an existing environment.
Creation of the operator user
osism apply operator -u osism
The operator key has to be added in advance on all nodes to
authorized_keys
of the user specified with-u
.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:osism apply operator -u osism --conn-pass-file /opt/configuration/secrets/osism_password
If the error
/bin/sh: 1: /usr/bin/python: not found
occurs, Python must first be installed withosism apply python3 -u osism
.
Configuration of the network
osism apply network
The network configuration already present on a system should be backuped before this step.
Reboot of the nodes
osism apply reboot -l 'all:!manager' -e ireallymeanit=yes
Check if all systems are reachable (you probably have to do this several times until all systems are accessible)
osism apply ping
System is currently rebooting and is not yet accessible via network
fatal: [net003]: UNREACHABLE! => {"changed": false, "msg": "Connection timed out.", "unreachable": true}``
System has already been rebooted and is not accessible via the network
fatal: [net003]: UNREACHABLE! => {"changed": false, "msg": "EOF on stream; last 100 lines received:\nssh: connect to host 10.15.0.33 port 22: No route to host\r", "unreachable": true}
Refresh facts
osism apply facts
Bootstrap of the nodes
osism apply bootstrap
Reboot of the nodes
osism apply reboot -l 'all:!manager' -e ireallymeanit=yes
Prepare the SSH configuration of the manager node
osism apply sshconfig
Check again if all systems are reachable (you probably have to do this several times until all systems are accessible)
osism apply ping
Ready. All nodes are now bootstrapped and available to launch services.