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

permission on dir pool creation #37

Open
gthieleb opened this issue Jul 1, 2020 · 1 comment
Open

permission on dir pool creation #37

gthieleb opened this issue Jul 1, 2020 · 1 comment

Comments

@gthieleb
Copy link

gthieleb commented Jul 1, 2020

It seems that the permissions for pools of type dir are not correct applied.

Steps to produce

host vars:

libvirt_host_pools:
 - name: isos
    type: dir
    path: /data/isos
    owner: "root"
    group: "kvm"
    mode: "2775"

Current behavior

When running this role are
the applied permissions are:

dr-x-wx-wt  4 root kvm  4096 Jul  1 08:58 isos

Wanted behavior

drwxrwsr-x  4 root kvm  4096 Jul  1 08:58 isos

When Iook in the tasks (pools.yml) I see that you try to apply the mode using this setting:

    mode: "{{ item.mode|int(base=8) }}"

Correct would be to cast to string:

    mode: "{{ item.mode|string }}"
@markgoddard
Copy link
Member

What if you remove the quotes?

mode: 02775

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants