Skip to content

Commit

Permalink
align hosted-engine.conf permissions to host-deploy
Browse files Browse the repository at this point in the history
host deploy creates hosted-engine conf with restricted perissions since
it may contain sensitive data. We should do the same here in initial
deploy.
  • Loading branch information
michalskrivanek committed Aug 2, 2022
1 parent 36140f8 commit 8a69786
Showing 1 changed file with 14 additions and 7 deletions.
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

0 comments on commit 8a69786

Please sign in to comment.