Role - tripleo-packages

Role Documentation

Welcome to the “tripleo-packages” role documentation.

Role Defaults

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

tripleo_packages_default_passwords: {}
tripleo_packages_enable_package_install: false
tripleo_packages_endpoint_map: {}
tripleo_packages_fast_forward_custom_repo_script_content: '#!/bin/bash

  set -e

  echo "If you use FastForwardRepoType ''custom-script'' you have to provide the upgrade
  repo script content."

  echo "It will be installed as /root/ffu_upgrade_repo.sh on the node"

  echo "and passed the upstream name (ocata, pike, queens) of the release as first
  argument"

  exit 1

  '
tripleo_packages_fast_forward_repo_args:
  tripleo_repos:
    ocata: -b ocata current
    pike: -b pike current
    queens: -b queens current
tripleo_packages_fast_forward_repo_type: tripleo-repos
tripleo_packages_role_name: ''
tripleo_packages_role_parameters: {}
tripleo_packages_service_data: {}
tripleo_packages_service_net_map: {}
tripleo_packages_short_bootstrap_node_name: ''
tripleo_packages_upgrade_init_command: ''
tripleo_packages_upgrade_init_common_command: ''
tripleo_packages_upgrade_leapp_debug: true
tripleo_packages_upgrade_leapp_devel_skip_rhsm: false
tripleo_packages_upgrade_leapp_enabled: true
tripleo_packages_upgrade_leapp_reboot_timeout: 1800
tripleo_release: '{{ release | default(''queens'') }}'

Molecule Scenarios

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

Scenario: ffu

Driver: docker
Example ffu playbook
- hosts: all
  name: Converge
  tasks:
  - include_role:
      name: tripleo-packages
      tasks_from: fast_forward_upgrade.yml
    name: Import TripleO packages role
  - include_role:
      name: tripleo-packages
      tasks_from: fast_forward_post_upgrade.yml
    name: Import TripleO packages role
  vars:
    step: 3

Scenario: default

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

Scenario: upgrade

Driver: docker
Example upgrade playbook
- hosts: all
  name: Converge
  tasks:
  - include_role:
      name: tripleo-packages
      tasks_from: upgrade.yml
    name: Import TripleO packages role (step|0)
    vars:
      step: 0
  - include_role:
      name: tripleo-packages
      tasks_from: upgrade.yml
    name: Import TripleO packages role (step|2)
    vars:
      step: 2
  - include_role:
      name: tripleo-packages
      tasks_from: upgrade.yml
    name: Import TripleO packages role (step|3)
    vars:
      step: 3
  - include_role:
      name: tripleo-packages
      tasks_from: upgrade.yml
    name: Import TripleO packages role (step|4)
    vars:
      step: 4

Scenario: update

Driver: docker
Example update playbook
- hosts: all
  name: Converge
  tasks:
  - include_role:
      name: tripleo-packages
      tasks_from: update.yml
    name: Import TripleO packages role
  vars:
    step: 3

Scenario: external_upgrade

Driver: docker
Example external_upgrade playbook
- hosts: all
  name: Converge
  tasks:
  - include_role:
      name: tripleo-packages
      tasks_from: external_upgrade.yml
    name: Import TripleO packages role
  vars:
    step: 1