Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Merge "Update container-config-scripts/ folder content before update_…
Browse files Browse the repository at this point in the history
…tasks." into stable/ussuri
  • Loading branch information
Zuul authored and openstack-gerrit committed Jan 26, 2021
2 parents b10d771 + 3f93e3a commit 9abf0ed
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 17 deletions.
17 changes: 17 additions & 0 deletions common/common-container-config-scripts.yaml
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
18 changes: 1 addition & 17 deletions common/deploy-steps-tasks-step-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -175,15 +175,6 @@
tags:
- container_config

- 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

# The container config files
# /var/lib/container-startup-configs.json is removed as we now write
# per-step files instead
Expand All @@ -204,14 +195,7 @@
tags:
- container_startup_configs

- 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
- import_tasks: common_container_config_scripts.yaml

# This file location is deprecated and the new location is now:
# /var/lib/tripleo-config/container-startup-config/step_X/<container_name>.json
Expand Down
2 changes: 2 additions & 0 deletions common/deploy-steps.j2
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ outputs:
keystone_resources: {get_param: KeystoneResourcesConfigs}
common_deploy_steps_playbooks: {get_file: deploy-steps-playbooks-common.yaml}
common_deploy_steps_tasks: {get_file: deploy-steps-tasks.yaml}
common_container_config_scripts: {get_file: common-container-config-scripts.yaml}
hiera_steps_tasks: {get_file: hiera-steps-tasks.yaml}
deploy_steps_tasks_step_0: {get_file: deploy-steps-tasks-step-0.yaml}
common_deploy_steps_tasks_step_1: {get_file: deploy-steps-tasks-step-1.yaml}
Expand Down Expand Up @@ -805,6 +806,7 @@ outputs:
tripleo_minor_update: true
tasks:
- import_tasks: hiera_steps_tasks.yaml
- import_tasks: common_container_config_scripts.yaml
{%- for step in range(0,update_steps_max) %}
- import_tasks: "{{ role.name }}/update_tasks_step{{ step }}.yaml"
vars:
Expand Down

0 comments on commit 9abf0ed

Please sign in to comment.