Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hosted_engine_setup: hosted-engine.conf permissions #569

Merged
merged 2 commits into from
Aug 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions changelogs/fragments/569-heconf-permissions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
bugfixes:
- hosted_engine_setup - fix hosted-engine.conf permissions and ownership (https://github.com/oVirt/ovirt-ansible-collection/pull/569).
Original file line number Diff line number Diff line change
Expand Up @@ -147,15 +147,22 @@
path: /var/run/ovirt-hosted-engine-ha
state: directory
mode: 0755
- name: Copy configuration files to the right location on host
- name: Copy vm.conf to the right location on host
ansible.builtin.copy:
remote_src: true
src: "{{ item.src }}"
dest: "{{ item.dest }}"
mode: 0644
with_items:
- {src: "{{ he_local_vm_dir }}/vm.conf", dest: /var/run/ovirt-hosted-engine-ha}
- {src: "{{ he_local_vm_dir }}/hosted-engine.conf", dest: /etc/ovirt-hosted-engine/}
src: "{{ he_local_vm_dir }}/vm.conf"
dest: "/var/run/ovirt-hosted-engine-ha"
owner: 'vdsm'
group: 'kvm'
mode: 0640
- name: Copy hosted-engine.conf to the right location on host
ansible.builtin.copy:
remote_src: true
src: "{{ he_local_vm_dir }}/hosted-engine.conf"
dest: "/etc/ovirt-hosted-engine/"
owner: 'vdsm'
group: 'kvm'
mode: 0440
- name: Check fapolicyd status
ansible.builtin.systemd:
name: fapolicyd
Expand Down