This repository has been archived by the owner on Feb 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update container-config-scripts/ folder content before update_tasks.
Currently, multiple scripts are being stored in /var/lib/container-config-scripts directory if any of theses scripts are being used during the update_tasks the content won't be up to date (or the script will be fully missing if added in a new release), as the content of this folder is being updated during the deploy tasks (step 1), which occurs after all the update_tasks. This patch gathers the tasks responsible for the folder creation and content update into a new playbook named common_container_config_scripts.yaml, this way we can reference the tasks from the deploy-tasks step1 playbook (as it was happening up to now) and invoke them before the update_tasks playbook gets called. Change-Id: I2ac6bb98e1d4183327e888240fc8d5a70e0d6fcb Related-Bug: #1904193 (cherry picked from commit bb8cb15) (cherry picked from commit 6c45e3e)
- Loading branch information
Showing
3 changed files
with
20 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
- name: Create /var/lib/container-config-scripts | ||
become: true | ||
file: | ||
path: /var/lib/container-config-scripts | ||
state: directory | ||
setype: container_file_t | ||
tags: | ||
- container_config_scripts | ||
|
||
- name: Write container config scripts | ||
become: true | ||
no_log: True | ||
tripleo_container_config_scripts: | ||
config_data: "{{ lookup('file', tripleo_role_name + '/container_config_scripts.yaml', errors='ignore') | default({}, True) | from_yaml }}" | ||
config_dir: /var/lib/container-config-scripts | ||
tags: | ||
- container_config_scripts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters