The following steps are performed to initialize all nodes. Scaling describes how to add a new node to an existing environment.

  • Creation of the necessary operator user

    $ osism-generic operator -l 'all:!manager' -u ubuntu
    • The operator key has to be added in advance on all nodes to authorized_keys of the user specified with -u.

    • Alternatively, you can work with the parameters --ask-pass and --ask-become-pass.

    • For using sudo please use --become.

    • If the error /bin/sh: 1: /usr/bin/python: not found occurs, Python must first be installed on the manager node with osism-generic python3 -l 'all:!manager' -u ubuntu.


    If the operator user was already created when the operating system was provisioned, this role must still be executed. ANSIBLE_USER is then adjusted accordingly.

    The UID and GID must also be checked. If it is not 45000, it must be adapted accordingly.

    # usermod -u 45000 dragon
    # groupmod -g 45000 dragon
    # chgrp dragon /home/dragon/
    # chown dragon /home/dragon/
    # find /home/dragon -group 1000 -exec chgrp -h dragon {} \;
    # find /home/dragon -user 1000 -exec chown -h dragon {} \;
  • Configuration of the network

    $ osism-generic network -l 'all:!manager'
    • The network configuration already present on a system should be saved before this step.

    • We are currently still using /etc/network/interfaces. Therefore rename all files below /etc/netplan to X.unused.

      The default file 01-netcfg.yaml with the following content can remain as it is.

      # This file describes the network interfaces available on your system
      # For more information, see netplan(5).
        version: 2
        renderer: networkd
  • Reboot of the nodes

    $ osism-generic reboot -l 'all:!manager'
  • Check if all systems are reachable

    $ osism-generic ping
  • Refresh facts

    $ osism-generic facts
  • Bootstrap of the nodes

    $ osism-generic bootstrap


    The re-execution of the bootstrap on the manager is intended.

  • Further reboot of the nodes

    $ osism-generic reboot -l 'all:!manager'
    $ osism-generic reboot -l manager