Merge "Add hook to run RHOSP policies enforcement."
This commit is contained in:
commit
b72df10488
@ -87,7 +87,12 @@ parameters:
|
|||||||
default: 'false'
|
default: 'false'
|
||||||
description: Set to true to skip the update all packages
|
description: Set to true to skip the update all packages
|
||||||
type: boolean
|
type: boolean
|
||||||
|
SkipRhelEnforcement:
|
||||||
|
default: "false"
|
||||||
|
description: Whether to avoid or not RHEL/OSP policies enforcement on Red Hat.
|
||||||
|
Mainly for CI purpose. It shouldn't matter on other distributions
|
||||||
|
where it's disabled in the role. Set to true to skip the enforcement.
|
||||||
|
type: string
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
role_data:
|
role_data:
|
||||||
@ -399,6 +404,15 @@ outputs:
|
|||||||
name: tripleo_transfer
|
name: tripleo_transfer
|
||||||
tasks_from: cleanup.yml
|
tasks_from: cleanup.yml
|
||||||
update_tasks:
|
update_tasks:
|
||||||
|
- name: Enforce RHOSP rules regarding subscription.
|
||||||
|
include_role:
|
||||||
|
name: tripleo_redhat_enforce
|
||||||
|
vars:
|
||||||
|
skip_rhel_enforcement: {get_param: SkipRhelEnforcement}
|
||||||
|
when:
|
||||||
|
- step|int == 0
|
||||||
|
- ansible_distribution == 'RedHat'
|
||||||
|
- not (skip_rhel_enforcement | bool)
|
||||||
- name: Check for existing yum.pid
|
- name: Check for existing yum.pid
|
||||||
stat: path=/var/run/yum.pid
|
stat: path=/var/run/yum.pid
|
||||||
register: yum_pid_file
|
register: yum_pid_file
|
||||||
|
@ -30,6 +30,12 @@ parameters:
|
|||||||
description: Mapping of service endpoint -> protocol. Typically set
|
description: Mapping of service endpoint -> protocol. Typically set
|
||||||
via parameter_defaults in the resource registry.
|
via parameter_defaults in the resource registry.
|
||||||
type: json
|
type: json
|
||||||
|
SkipRhelEnforcement:
|
||||||
|
default: 'false'
|
||||||
|
description: Whether to avoid or not RHEL/OSP policies enforcement on Red Hat.
|
||||||
|
Mainly for CI purpose. It shouldn't matter on other distributions
|
||||||
|
where it's disabled in the role. Set to true to skip the enforcement.
|
||||||
|
type: string
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
role_data:
|
role_data:
|
||||||
@ -45,6 +51,15 @@ outputs:
|
|||||||
step_config: ''
|
step_config: ''
|
||||||
config_image: ''
|
config_image: ''
|
||||||
upgrade_tasks:
|
upgrade_tasks:
|
||||||
|
- name: Enforce RHOSP rules regarding subscription.
|
||||||
|
include_role:
|
||||||
|
name: tripleo_redhat_enforce
|
||||||
|
vars:
|
||||||
|
skip_rhel_enforcement: {get_param: SkipRhelEnforcement}
|
||||||
|
when:
|
||||||
|
- step|int == 0
|
||||||
|
- ansible_distribution == 'RedHat'
|
||||||
|
- not (skip_rhel_enforcement | bool)
|
||||||
# With the layered product packaging, the key package is rhosp-openvswitch. It depends on
|
# With the layered product packaging, the key package is rhosp-openvswitch. It depends on
|
||||||
# a openvswitch package that includes the version as part of the name (e.g openvswitch2.10).
|
# a openvswitch package that includes the version as part of the name (e.g openvswitch2.10).
|
||||||
# This requires some additional special handling:
|
# This requires some additional special handling:
|
||||||
|
Loading…
Reference in New Issue
Block a user