Skip to content

Commit

Permalink
Add UID and GID options for MergerFS mounts, attempt to fix notthebee#5
Browse files Browse the repository at this point in the history
  • Loading branch information
notthebee committed Mar 7, 2022
1 parent 8c84f70 commit d9f5e77
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion roles/docker/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

- name: Add Docker Repository
apt_repository:
repo: deb https://download.docker.com/linux/ubuntu bionic stable
repo: "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
state: present

- name: Install Docker (Raspbian)
Expand Down
4 changes: 2 additions & 2 deletions roles/filesystems/mounts/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
mount:
name: "{{ mergerfs_root }}"
src: /mnt/cache*:/mnt/data*
opts: category.create=lfs,direct_io,defaults,allow_other,moveonenospc=1,minfreespace=50G,fsname=mergerfs
opts: category.create=lfs,direct_io,defaults,allow_other,moveonenospc=1,minfreespace=50G,fsname=mergerfs,uid=1000,gid=1000
fstype: fuse.mergerfs
state: mounted
when: disks[0] is defined
Expand All @@ -42,7 +42,7 @@
mount:
name: "{{ mergerfs_root }}_slow"
src: /mnt/data*
opts: direct_io,defaults,allow_other,moveonenospc=1,minfreespace=500G,fsname=mergerfs_slow
opts: direct_io,defaults,allow_other,moveonenospc=1,minfreespace=500G,fsname=mergerfs_slow,uid=1000,gid=1000
fstype: fuse.mergerfs
state: mounted
when: disks[0] is defined
Expand Down
2 changes: 1 addition & 1 deletion roles/security/crowdsec/tasks/crowdsec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

- name: Add Crowdsec Repository
apt_repository:
repo: deb https://packagecloud.io/crowdsec/crowdsec/ubuntu bionic stable
repo: "deb [arch=amd64] https://packagecloud.io/crowdsec/crowdsec/ubuntu focal stable"
state: present

- name: Update apt and install Crowdsec and Prometheus
Expand Down

0 comments on commit d9f5e77

Please sign in to comment.