Skip to content

Commit

Permalink
Add nfs server
Browse files Browse the repository at this point in the history
  • Loading branch information
sverhoeven committed Mar 20, 2024
1 parent fdbb0f4 commit 5b484fa
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions research-cloud-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,34 @@
autoclean: true
autoremove: true

- name: Setup nfs server
when: worker_ip_addresses
block:
-name: nfs-server
apt:
name:
- nfs-common
- nfs-kernel-server
state: present
- name: nfs export /home
lineinfile:
path: /etc/exports
line: "/home {{ item }}(rw,async,no_subtree_check)"
create: yes
loop: '{{ worker_ip_addresses }}'
- name: nfs export /mnt/data
lineinfile:
path: /etc/exports
line: "/mnt/data {{ item }}(ro,async,no_subtree_check)"
create: yes
loop: '{{ worker_ip_addresses }}'
- name: nfsd service
service:
name: nfs-kernel-server
state: started
state: started
enabled: true

- name: Debug
debug:
msg: The eWaterCycle Jupyter plugin has completed
Expand Down

0 comments on commit 5b484fa

Please sign in to comment.