Skip to content
New issue

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

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

Already on GitHub? # to your account

Custom rights on mounts and config files #58

Open
Tuxem opened this issue Mar 28, 2023 · 0 comments
Open

Custom rights on mounts and config files #58

Tuxem opened this issue Mar 28, 2023 · 0 comments

Comments

@Tuxem
Copy link

Tuxem commented Mar 28, 2023

Allow custom rights

- name: Ensure the BeeGFS mount point exists
  file:
    mode: 0755
    path: "{{ client_path }}"
    state: directory
  become: true
  notify: Restart BeeGFS client service

- name: Copy over beegfs-mounts config file
  template:
    src: beegfs-mounts.conf.j2
    dest: /etc/beegfs/beegfs-mounts.conf
    mode: 0644
  become: true
  notify: Restart BeeGFS client service

- name: Make of copy of BeeGFS client config file if it doesn't exist
  copy:
    mode: 0644
    remote_src: true
    src: /etc/beegfs/beegfs-client.conf
    dest: "/etc/beegfs/{{ beegfs_client_config_file }}"
    force: false
  become: true
  when: beegfs_client_scope_config | bool
  notify: Restart BeeGFS client service

For security, it bight be needed to remove world rights, maybe having variables :

  • beegfs_client_config_mode
  • beegfs_client_mount_mode
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant