From da2440a2af07c425da29ed1e3c6f0108154a07cf Mon Sep 17 00:00:00 2001 From: Timo Makinen Date: Thu, 11 Mar 2021 19:27:21 +0000 Subject: [PATCH] Move shell hosts back to NFS mounte home directories Use static ip for lan network for now to get NFS access to home directories. Still require kerberos for role directories. --- host_vars/shell02.foo.sh.yml | 4 ++++ playbooks/nas.yml | 3 ++- playbooks/shell.yml | 1 - 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/host_vars/shell02.foo.sh.yml b/host_vars/shell02.foo.sh.yml index ef9f685..c34042b 100644 --- a/host_vars/shell02.foo.sh.yml +++ b/host_vars/shell02.foo.sh.yml @@ -9,3 +9,7 @@ network_interfaces: proto: static - device: eth1 vlan: 30 + ipaddr: 172.20.30.22 + netmask: 255.255.255.0 + proto: static + nameservers: [172.20.30.2] diff --git a/playbooks/nas.yml b/playbooks/nas.yml index 3557799..15a4496 100644 --- a/playbooks/nas.yml +++ b/playbooks/nas.yml @@ -33,7 +33,8 @@ copy: dest: /etc/exports content: | - /export/home 172.20.30.0/24(rw,root_squash,secure,sec=krb5p) \ + /export/home 172.20.30.22/32(rw,root_squash,secure) \ + 172.20.30.0/24(rw,root_squash,secure,sec=krb5p) \ @nfsclients-rw(rw,root_squash,secure) \ @nfsclients-ro(ro,root_squash,secure) /export/roles 172.20.30.0/24(rw,root_squash,secure,sec=krb5p) \ diff --git a/playbooks/shell.yml b/playbooks/shell.yml index f210664..b002b70 100644 --- a/playbooks/shell.yml +++ b/playbooks/shell.yml @@ -17,7 +17,6 @@ - "nfs/{{ inventory_hostname }}@{{ kerberos_realm }}" - nfs-client - sssd - - mkhomedir - autofs - thinlinc-server