Skip to content

Commit

Permalink
make /site RO and update to NFS4.2
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Cameron <git@jasoncameron.dev>
  • Loading branch information
JasonLovesDoggo committed Oct 3, 2024
1 parent 503c75e commit 31cdd56
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion automation/playbooks/initialize_worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
src: 10.137.0.5:/var/share
state: mounted
fstype: nfs4
opts: 'auto,nofail,noatime,nolock,intr,tcp,actimeo=1800,nfsvers=4.1,rw'
opts: 'auto,nofail,noatime,nolock,intr,tcp,actimeo=1800,nfsvers=4.2,rw'

- name: Ensure /var/share and its subdirectories exist with correct permissions
shell: |
Expand Down
8 changes: 4 additions & 4 deletions dmoj/docker-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ services:
- /var/share/media:/media/
- /var/share/problems:/problems/
- /var/share/logs:/logs/
- /site/:/site/
- /site/:/site/:ro
- /var/share/configs/wlmoj/local_settings.py:/site/dmoj/local_settings.py:ro
working_dir: /site/
env_file: [ environment/mysql.env, environment/site.env ]
Expand All @@ -70,7 +70,7 @@ services:
- /var/share/cache/pdfcache:/pdfcache/
- /var/share/cache/datacache:/datacache/
- /var/share/logs:/logs/
- /site/:/site/
- /site/:/site/:ro
- /var/share/configs/wlmoj/local_settings.py:/site/dmoj/local_settings.py:ro
working_dir: /site/
env_file: [ environment/mysql.env, environment/site.env ]
Expand All @@ -94,7 +94,7 @@ services:
- /var/share/cache/pdfcache:/pdfcache/
- /var/share/problems/:/problems/
- /var/share/logs:/logs/
- /site/:/site/
- /site/:/site/:ro
- /var/share/configs/wlmoj/local_settings.py:/site/dmoj/local_settings.py:ro
working_dir: /site/
env_file: [ environment/mysql.env, environment/site.env ]
Expand All @@ -115,7 +115,7 @@ services:
init: true
user: "root:9889"
volumes:
- /site/:/app/site/
- /site/:/app/site/:ro
working_dir: /app/site
env_file: [ environment/mysql.env, environment/site.env ]
networks:
Expand Down

0 comments on commit 31cdd56

Please sign in to comment.