Role - tripleo_bootstrap

Role Documentation

Welcome to the “tripleo_bootstrap” role documentation.

Role Defaults

This section highlights all of the defaults and variables set within the “tripleo_bootstrap” role.

# All variables intended for modification should be placed in this file.

# List of packages that are requred to bootstrap TripleO.
tripleo_bootstrap_packages_bootstrap: '{{ _tripleo_bootstrap_packages_bootstrap |
  default([]) }}'

tripleo_bootstrap_release_version_package: '{{ _tripleo_bootstrap_release_version_package
  | default([]) }}'

# List of packages that are required for legacy networking to function.
# NOTE: We are using 'network' service provided by 'network-scripts' (initscripts)
#       which deprecated in recent releases but os-net-config doesn't support yet
#       NetworkManager. Until it happens, we need to ensure that network is started
#       at boot, as it'll take care of restarting the network interfaces managed by
#       OVS. Note that OVS unit service is already configure to start before
#       network.service.
tripleo_bootstrap_legacy_network_packages: '{{ _tripleo_bootstrap_legacy_network_packages
  | default([]) }}'
tripleo_bootstrap_network_service: network

Role Variables: fedora-28.yml

_tripleo_bootstrap_packages_bootstrap:
- openstack-heat-agents
- jq
- puppet-tripleo
- os-net-config
- openvswitch
- openstack-selinux
- libselinux-python
- rsync

_tripleo_bootstrap_legacy_network_packages:
- initscripts

Role Variables: redhat-8.yml

_tripleo_bootstrap_packages_bootstrap:
- lvm2
- jq
- openvswitch
- openstack-heat-agents
- openstack-selinux
- os-net-config
- python3-libselinux
- python3-pyyaml
- puppet-tripleo
- rsync
- tmpwatch
- sysstat

_tripleo_bootstrap_legacy_network_packages:
- network-scripts

tripleo_bootstrap_network_service: NetworkManager

_tripleo_bootstrap_release_version_package:
- rhosp-release

Role Variables: redhat-9.yml

_tripleo_bootstrap_packages_bootstrap:
- lvm2
- jq
- openvswitch
- openstack-heat-agents
- openstack-selinux
- os-net-config
- python3-libselinux
- python3-pyyaml
- puppet-tripleo
- rsync
- tmpwatch
- sysstat

_tripleo_bootstrap_legacy_network_packages:
- openstack-network-scripts

tripleo_bootstrap_network_service: NetworkManager

_tripleo_bootstrap_release_version_package:
- rhosp-release

Role Variables: redhat.yml

_tripleo_bootstrap_packages_bootstrap:
- libselinux-python
- lvm2
- jq
- os-net-config
- openstack-heat-agents
- openstack-selinux
- openvswitch
- puppet-tripleo
- rsync
- tmpwatch
- sysstat

Molecule Scenarios

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

Scenario: default

Molecule Inventory
hosts:
  all:
    hosts:
      instance:
        ansible_host: localhost
Example default playbook
- name: Converge
  become: true
  hosts: all
  roles:
  - role: tripleo_bootstrap