Skip to content

Commit

Permalink
Merge pull request #748 from openshift-cherrypick-robot/cherry-pick-7…
Browse files Browse the repository at this point in the history
…19-to-18.0.0-proposed

[18.0.0-proposed] fix users and permissions on ovn-bgp-agent tasks
  • Loading branch information
openshift-merge-bot[bot] committed Sep 10, 2024
2 parents 1c4fa2e + b5e75cd commit 18710c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions roles/edpm_ovn_bgp_agent/tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
loop: "{{ edpm_neutron_ovn_secrets.files }}"

- name: Add OVS Manager
become: true
block:
- name: Check if OVS Manager already exists
ansible.builtin.shell: |
Expand Down
3 changes: 2 additions & 1 deletion roles/edpm_ovn_bgp_agent/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@
- {'path': "{{ edpm_ovn_bgp_agent_config_basedir }}", 'setype': container_file_t, 'mode': '0750'}

- name: Create directory {{ edpm_ovn_bgp_agent_config_basedir }}
become: true
ansible.builtin.file:
path: "{{ edpm_ovn_bgp_agent_config_basedir }}/etc/ovn-bgp-agent"
recurse: true
state: directory
selevel: s0
setype: container_file_t
owner: "{{ ansible_user | default(ansible_user_id) }}"
group: "{{ ansible_user | default(ansible_user_id) }}"

0 comments on commit 18710c5

Please sign in to comment.