Browse Source

Add release version package

Currently this is only used downstream, however there is a version
package that can allow us to ensure specific package requirements are
met.  We can likely add this to the upstream via a tripleo-version or
something to that efffect but currently this does not exist. So this
change adds a task to ensure that we have the latest version of this
version package at deploy time.

Change-Id: I5fd88c8e2fae811e854eb0dfb462fae8d1ad8f0d
changes/17/751317/5
Alex Schultz 2 years ago
parent
commit
b58345d7fa
  1. 2
      tripleo_ansible/roles/tripleo_bootstrap/defaults/main.yml
  2. 10
      tripleo_ansible/roles/tripleo_bootstrap/tasks/main.yml
  3. 3
      tripleo_ansible/roles/tripleo_bootstrap/vars/redhat-8.yml

2
tripleo_ansible/roles/tripleo_bootstrap/defaults/main.yml

@ -20,6 +20,8 @@
# 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

10
tripleo_ansible/roles/tripleo_bootstrap/tasks/main.yml

@ -32,6 +32,16 @@
tags:
- always
# Currently only supported on RHEL as tripleo does not have a version package
- name: Deploy release version package
become: true
package:
name: "{{ tripleo_bootstrap_release_version_package }}"
state: present
when:
- (ansible_distribution | lower) == 'redhat'
- (tripleo_bootstrao_release_version_package |list | length) > 0
- name: Deploy required packages to bootstrap TripleO
become: true
package:

3
tripleo_ansible/roles/tripleo_bootstrap/vars/redhat-8.yml

@ -31,3 +31,6 @@ _tripleo_bootstrap_legacy_network_packages:
- network-scripts
tripleo_bootstrap_network_service: NetworkManager
_tripleo_bootstrap_release_version_package:
- rhosp-version

Loading…
Cancel
Save