Role - tripleo_nova_migration_target

Role Documentation

Welcome to the “tripleo_nova_migration_target” role documentation.

Role Defaults

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

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

# All variables within this role should have a prefix of "tripleo_nova_migration_target"
tripleo_nova_migration_target_debug: '{{ (ansible_verbosity | int) >= 2 | bool }}'

tripleo_nova_migration_target_hide_sensitive_logs: true

tripleo_nova_migration_target_config_image: ''
tripleo_nova_migration_target_volumes:
- /var/lib/kolla/config_files/nova-migration-target.json:/var/lib/kolla/config_files/config.json:ro
- /var/lib/config-data/puppet-generated/nova_libvirt:/var/lib/kolla/config_files/src:ro
- /etc/ssh:/host-ssh:ro
- /run/libvirt:/run/libvirt:shared,z
- /var/lib/nova:/var/lib/nova:shared
tripleo_nova_migration_target_sshd_port: "{{ tripleo_migration_ssh_port | default('2022'.\
  \ true) }}"
tripleo_nova_migration_target_ssh_key: >
  {{ tripleo_migration_ssh_key | default({"public_key": "", "private_key": ""}, true)
  }}

# from t-h-t hiera mappings
tripleo_nova_migration_target_sshd_password_authentication: no   # not a boolean
tripleo_nova_migration_target_sshd_listen: internal_api # NovaApiNetwork
tripleo_nova_migration_target_ssh_authorized_keys: >
  {{ tripleo_nova_migration_target_ssh_key["public_key"] }}
tripleo_nova_migration_target_sshd_options:
  HostKey:
  - /etc/ssh/ssh_host_rsa_key
  - /etc/ssh/ssh_host_ecdsa_key
  - /etc/ssh/ssh_host_ed25519_key
  SyslogFacility: AUTHPRIV
  AuthorizedKeysFile: .ssh/authorized_keys
  ChallengeResponseAuthentication: no
  GSSAPIAuthentication: no
  GSSAPICleanupCredentials: no
  UsePAM: yes
  UseDNS: no
  X11Forwarding: yes
  AcceptEnv:
  - LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
  - LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
  - LC_IDENTIFICATION LC_ALL LANGUAGE
  - XMODIFIERS
  Subsystem: sftp  /usr/libexec/openssh/sftp-server

Role Variables: main.yml

null
...

Molecule Scenarios

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

Scenario: default

Driver: podman
Molecule Inventory
hosts:
  all:
    hosts:
      centos:
        ansible_python_interpreter: /usr/bin/python3
Example default playbook
- name: Converge
  hosts: all
  roles:
  - role: tripleo_nova_migration_target