[Ocata/Pike/Queens] Make rhel-registration scripts location absolute.

This patch modifies the script files location to be executed
during the SoftwareDeployment resources in rhel-registration.yaml.
The main purpose of this is to ensure we are running the right
script content related to a branch, for example, after an upgrade.

Change-Id: If77acb78c63511054e17d553982e19e748c88992
Related-Bug: #1797138
This commit is contained in:
Jose Luis Franco Arza 2018-10-10 17:36:04 +02:00
parent c149fccaa3
commit 91746c290b
1 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@ resources:
- name: REG_HTTP_PROXY_PORT
- name: REG_HTTP_PROXY_USERNAME
- name: REG_HTTP_PROXY_PASSWORD
config: {get_file: scripts/rhel-registration}
config: {get_file: /usr/share/openstack-tripleo-heat-templates/extraconfig/pre_deploy/rhel-registration/scripts/rhel-registration}
RHELRegistrationDeployment:
type: OS::Heat::SoftwareDeployment
@ -147,7 +147,7 @@ resources:
type: OS::Heat::SoftwareConfig
properties:
group: script
config: {get_file: scripts/rhel-unregistration}
config: {get_file: /usr/share/openstack-tripleo-heat-templates/extraconfig/pre_deploy/rhel-registration/scripts/rhel-unregistration}
inputs:
- name: REG_METHOD