Role - tripleo-create-admin

Role Documentation

Welcome to the “tripleo-create-admin” role documentation.

Role Defaults

This section highlights all of the defaults and variables set within the “tripleo-create-admin” role.

tripleo_admin_generate_key: false
tripleo_admin_user: tripleo-admin

Molecule Scenarios

Molecule is being used to test the “tripleo-create-admin” role. The following section highlights the drivers in service and provides an example playbook showing how the role is leveraged.

Scenario: default

Driver: docker
Example default playbook
- hosts: all
  name: Converge
  roles:
  - role: tripleo-create-admin

Scenario: addkey

Driver: docker
Example addkey playbook
- hosts: all
  name: Converge
  post_tasks:
  - import_role:
      name: tripleo-create-admin
      tasks_from: authorize_user.yml
    vars:
      tripleo_admin_pubkey: ssh-rsa AAAATEST
      tripleo_admin_user: tripleo-admin
  roles:
  - role: tripleo-create-admin

Scenario: keygen

Driver: docker
Example keygen playbook
- hosts: all
  name: Converge
  roles:
  - role: tripleo-create-admin
    tripleo_admin_generate_key: true