Scale-down tasks for RHSM

First implementation of scale-down tasks, for Red Hat Subcription
Manager.

With this patch, when an overcloud node will be removed, Ansible will
take care of unregister the node from the Red Hat subscription properly
before the node is actually removed from the stack.

Change-Id: I7c08b0f9dcbc583af02cef64d0e953756e344d27
This commit is contained in:
Emilien Macchi 2019-04-11 22:29:59 -04:00
parent 5d66b9c1eb
commit a82f3f0c79
1 changed files with 8 additions and 1 deletions

View File

@ -66,10 +66,17 @@ outputs:
tripleo::rhsm::firewall_rules: {}
step_config: ''
host_prep_tasks:
- name: Red Hat Subscription Management configuration
- name: Red Hat Subscription Management configuration during deployment
import_role:
name: redhat-subscription
vars: {get_attr: [RoleParametersValue, value, vars]}
scale_tasks:
- name: Red Hat Subscription Management configuration during scale-down
tags: down
when: step|int == 1
import_role:
name: redhat-subscription
tasks_from: unregister
upgrade_tasks:
- name: Red Hat Subscription Management configuration
import_role: