NIS client installation with FAI
Steffen Grunewald
Steffen.Grunewald at aei.mpg.de
Fri Jul 20 10:44:43 CEST 2012
On Fri, Jul 20, 2012 at 09:45:39AM +0200, Katarzyna Myrek wrote:
> Hi
>
> I managed to install NIS with NFS via FAI class. Here are files I am using:
>
> 1. /srv/fai/config/files/root/nis_install
> nis nis/domain string YOUR_NIS_DOMAIN
>
> This file will help install package nis (holding off any prompts in post
> install aptitude scripts).
>
> 2. Script included in class which installs nis:
> #! /bin/bash
> # © 2012 Katarzyna "Olivia" Myrek
>
> if [ $FAI_ACTION = "install" ]; then
> fcopy -BMi /root/nis_install
> echo "Copied nis_install"
> $ROOTCMD debconf-set-selections /root/nis_install
> $ROOTCMD aptitude install -y nis
> rm /target/root/nis_install
> ##Those lines need a little security tweaking
> echo "NFSSERVER:/export/home /home nfs
> defaults,rw,nodev,nosuid,rsize=32768,wsize=32768,_netdev,tcp 0 0" >>
> /target/etc/fstab
> echo "+::::::" >> /target/etc/passwd
> echo "+::::::" >> /target/etc/shadow
> echo "+::::::" >> /target/etc/group
> echo "+::::::" >> /target/etc/gshadow
Wouldn't a "compat" antry in /etc/nsswitch.conf mean the same as the
4 lines above?
> fcopy -BMi /etc/defaultdomain
> fcopy -BMi /etc/default/nis
> fcopy -BMi /etc/yp.conf
> fcopy -BMi /etc/nsswitch.conf
> fcopy -BMi /etc/profile
> fcopy -BMi /var/yp/Makefile ##not needed?
> fcopy -BMi /usr/local/bin/passwd
BTW, /target should better read ${target} to allow softupdates...
>
> fi
>
> I hope this will someday help someone install nis via class;).
>
>
> Regards,
> Katarzyna Myrek
--
Steffen Grunewald * MPI Grav.Phys.(AEI) * Am Mühlenberg 1, D-14476 Potsdam
Cluster Admin * --------------------------------- * http://www.aei.mpg.de/
* e-mail: steffen.grunewald(*)aei.mpg.de * +49-331-567-{fon:7274,fax:7298}
More information about the linux-fai
mailing list