Skip to content

Commit

Permalink
Render kolla_config files for bootc
Browse files Browse the repository at this point in the history
Signed-off-by: Brendan Shephard <[email protected]>
  • Loading branch information
bshephar committed Jan 17, 2025
1 parent a05603a commit cb8217e
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 12 deletions.
20 changes: 14 additions & 6 deletions roles/edpm_logrotate_crond/tasks/logrotate_crond.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,19 @@
logrotate_crond: "{{ lookup('file', 'files/logrotate_crond.yaml') | from_yaml }}"
when: not ansible_local.bootc

- name: Manage logrotate crond containers
ansible.builtin.systemd_service:
name: edpm-compute@logrotate_crond
enabled: true
state: started
become: true
- name: Configure logrotate for bootc
when: ansible_local.bootc
block:
- name: Render kolla config file
ansible.builtin.copy:
src: files/logrotate_crond.yaml
dest: /var/lib/kolla/config_files/logrotate_crond.json
mode: 0644

- name: Manage logrotate crond containers
ansible.builtin.systemd_service:
name: edpm-compute@logrotate_crond
enabled: true
state: started
become: true

20 changes: 14 additions & 6 deletions roles/edpm_logrotate_crond/tasks/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,18 @@
logrotate_crond: "{{ lookup('file', 'files/logrotate_crond.yaml') | from_yaml }}"
when: not ansible_local.bootc

- name: Manage logrotate crond containers
ansible.builtin.systemd_service:
name: edpm-compute@logrotate_crond
enabled: true
state: started
become: true
- name: Configure logrotate for bootc
when: ansible_local.bootc
become: true
block:
- name: Render kolla config file
ansible.builtin.copy:
src: files/logrotate_crond.yaml
dest: /var/lib/kolla/config_files/logrotate_crond.json
mode: 0644

- name: Manage logrotate crond containers
ansible.builtin.systemd_service:
name: edpm-compute@logrotate_crond
enabled: true
state: started
10 changes: 10 additions & 0 deletions roles/edpm_podman/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,3 +160,13 @@
setype: var_log_t
become: true

- name: Ensure /var/lib/kolla/config_files/ exists
ansible.builtin.file:
path: /var/lib/kolla/config_files
state: directory
mode: '0750'
owner: root
group: root
setype: container_file_t
become: true

0 comments on commit cb8217e

Please sign in to comment.