[ffwd3] Switch UBI8 to UBI9 of collectd after OS upgrade
When we finish OS upgrade of node with colletd we need to switch the UBI of the container to finish the upgrade. It's better to just switch one contianer instead of running full deploy for this. Change-Id: I2210a7068620cd1b1bdea377de5383e1360f128b Resolves: rhbz#2216476
This commit is contained in:
parent
2dbbc7e84a
commit
036c61574f
@ -708,3 +708,29 @@ outputs:
|
||||
include_role:
|
||||
name: tripleo_podman
|
||||
tasks_from: tripleo_podman_rsyslog_cleanup
|
||||
- name: UBI8 to UBI9 switch of collectd
|
||||
tags:
|
||||
- never
|
||||
- system_upgrade
|
||||
- system_upgrade_run
|
||||
when:
|
||||
# Run on step 5 as we should be after reboot
|
||||
- step|int == 5
|
||||
block:
|
||||
- name: Force pull image collectd
|
||||
containers.podman.podman_image:
|
||||
name: {get_param: ContainerCollectdImage}
|
||||
force: true
|
||||
# TODO: FIXME: I think we should always validate certs
|
||||
validate_certs: false
|
||||
- name: Update collectd to UBI9
|
||||
tripleo_container_manage:
|
||||
config_dir: "/var/lib/tripleo-config/container-startup-config/step_3"
|
||||
config_patterns: 'collectd.json'
|
||||
config_id:
|
||||
- 'tripleo_step3'
|
||||
log_base_path: "{{ container_log_stdout_path }}"
|
||||
debug: "{{ enable_debug | bool }}"
|
||||
config_overrides:
|
||||
collectd:
|
||||
image: {get_param: ContainerCollectdImage}
|
||||
|
Loading…
x
Reference in New Issue
Block a user