-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent nfs being mounted by tunnelling/forwarding through login node (…
…#595) * prevent nfs tunnelling through login node * bump nfs role * disable ssh forwarding by default
- Loading branch information
Showing
7 changed files
with
33 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
sshd_password_authentication: false | ||
sshd_disable_forwarding: true | ||
sshd_conf_src: sshd.conf.j2 | ||
sshd_conf_dest: /etc/ssh/sshd_config.d/10-ansible.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# {{ ansible_managed }} | ||
PasswordAuthentication {{ 'yes' if sshd_password_authentication | bool else 'no' }} | ||
DisableForwarding {{ 'yes' if sshd_disable_forwarding | bool else 'no' }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
nfs_configurations: | ||
- comment: Export /exports/home from Slurm control node as /home | ||
nfs_enable: | ||
server: "{{ inventory_hostname in groups['control'] }}" | ||
# Don't mount share on server where it is exported from... | ||
# Could do something like `nfs_clients: "{{ 'nfs_servers' not in group_names }}"` instead. | ||
clients: "{{ inventory_hostname in groups['cluster'] and inventory_hostname not in groups['control'] }}" | ||
nfs_server: "{{ nfs_server_default }}" | ||
nfs_export: "/exports/home" # assumes skeleton TF is being used | ||
nfs_client_mnt_point: "/home" | ||
|
||
# EXPERIMENTAL - not generally secure | ||
- comment: Export /exports/cluster from Slurm control node | ||
nfs_enable: | ||
server: "{{ inventory_hostname in groups['control'] }}" | ||
clients: false | ||
nfs_export: "/exports/cluster" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters