Unattended eDirectory SLES Script
A colleague and I put this script together to help with our server builds that use cloned DIB sets from an existing tree and require a temporary instance of eDirectory running.
Some of the switches were hard to find so I thought I would share it here. Feel free to use this as a template for your own environments.
The following script will create an eDirectory Tree with an instance under /eDir/$HOSTNAME path.
As the Notes say just include your installer paths in the variables and modify the instance to be relevant for your environment.
#!/bin/bash #ndsinstall unattended v1.0 #Date: 13/12/08 #Authors: Milan Bochin, Luke Meijer #Notes: Use variables at beginning of script to point to your installation source paths #Security Services Installer Path ################################## SSPATH=/eDir/utils #eDirectory Installer Path ########################### EDPATH=/eDir/eDirectory/setup #dsrmenu.sh Path ################# DMPATH=/eDir/utils echo ". /opt/novell/eDirectory/bin/ndspath" > /etc/bash.bashrc.local cp $DMPATH/dsrmenu.sh /root/bin ln -s /root/bin/dsrmenu.sh /root/bin/dsrepair $EDPATH/nds-install -u -c server -c admutils mkdir /eDir/$HOSTNAME /opt/novell/eDirectory/bin/ndsconfig new -t $HOSTNAME-TREE -S $HOSTNAME -n ou=itb.o=det -a cn=admin.o=det -w password -b 524 -D /eDir/$HOSTNAME -d /eDir/$HOSTNAME/data/dib --config-file /etc/opt/novell/eDirectory/conf/nds.conf /etc/init.d/ndsd stop $SSPATH/install.sh -q /etc/init.d/ndsd start ln -s /etc/opt/novell/nici.cfg /etc/nici.cfg
If anyone has information on how to script IDM installation on Linux please comment, we are having problems finding the syntax for the installer.properties file that the -? help switch refers to.
No comments yet