Add RHELRegistrationActions to rhel-registration template
This can be used in the case where e.g a satellite has been added after the initial deployment to re-register the nodes with the satellite, even those nodes that already exist. Change-Id: I944bc4c65b08de1ca08dd91f55764ebfe141dd9c
This commit is contained in:
parent
0d78b528d2
commit
db61b37345
|
@ -65,6 +65,11 @@ parameters:
|
||||||
description: |
|
description: |
|
||||||
When true, the system profile will be deleted from the registration
|
When true, the system profile will be deleted from the registration
|
||||||
service when the rhel-registration.yaml nested stack is deleted.
|
service when the rhel-registration.yaml nested stack is deleted.
|
||||||
|
RHELRegistrationActions:
|
||||||
|
type: comma_delimited_list
|
||||||
|
default:
|
||||||
|
- CREATE
|
||||||
|
description: Actions when the system profile will be registered, by default we only do this on CREATE of a new server, not for existing nodes.
|
||||||
|
|
||||||
conditions:
|
conditions:
|
||||||
unregister_on_delete:
|
unregister_on_delete:
|
||||||
|
@ -119,7 +124,7 @@ resources:
|
||||||
name: RHELRegistrationDeployment
|
name: RHELRegistrationDeployment
|
||||||
server: {get_param: server}
|
server: {get_param: server}
|
||||||
config: {get_resource: RHELRegistration}
|
config: {get_resource: RHELRegistration}
|
||||||
actions: ['CREATE'] # Only do this on CREATE
|
actions: {get_param: RHELRegistrationActions}
|
||||||
input_values:
|
input_values:
|
||||||
REG_ACTIVATION_KEY: {get_param: rhel_reg_activation_key}
|
REG_ACTIVATION_KEY: {get_param: rhel_reg_activation_key}
|
||||||
REG_AUTO_ATTACH: {get_param: rhel_reg_auto_attach}
|
REG_AUTO_ATTACH: {get_param: rhel_reg_auto_attach}
|
||||||
|
@ -202,7 +207,7 @@ resources:
|
||||||
name: UpdateDeploymentAfterRHELRegistration
|
name: UpdateDeploymentAfterRHELRegistration
|
||||||
config: {get_resource: YumUpdateConfigurationAfterRHELRegistration}
|
config: {get_resource: YumUpdateConfigurationAfterRHELRegistration}
|
||||||
server: {get_param: server}
|
server: {get_param: server}
|
||||||
actions: ['CREATE'] # Only do this on CREATE
|
actions: {get_param: RHELRegistrationActions}
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
deploy_stdout:
|
deploy_stdout:
|
||||||
|
|
Loading…
Reference in New Issue