What do you use to keep your environment files like .bashrc, .bash_profile, etc. synchronized across all your servers?
On Sun, Feb 08, 2009 at 12:32:53PM -0600, Sean Carolan wrote:
What do you use to keep your environment files like .bashrc, .bash_profile, etc. synchronized across all your servers?
in order of increasing Network size
1. a script of scp commands eg: for f in list of hosts; scp file ${f} ....
2. rsync, unison scripts
3. NIS
4. LDAP (What? LDAP? How does that help? ans: you can put anything you want in LDAP.)
ymWv! (Your mileage WILL vary)
Also - Look at the SAGE proceedings for excellent info on these and other Sysadmin topics
Jeff Kinz.
--
On Sun, Feb 08, 2009 at 12:32:53PM -0600, Sean Carolan wrote:
What do you use to keep your environment files like .bashrc, .bash_profile, etc. synchronized across all your servers?
Our user accounts are created by running a script on an LDAP server that sets up the account in LDAP and creates the home directory on an NFS share. In this way, /etc/skel, etc. is maintained on the ldap server and nowhere else.
Hi Jake
Appologies but I am wondering if you could give me a sample of that script, I am currently busy with setting up something similar where I work and it would be greate to perhaps get some new ideas.
Regards Per Qvindesland
On 2/8/09 8:06 PM, "Jake" jakepaulus@gmail.com wrote:
to
On Sun, Feb 8, 2009 at 3:45 PM, Per Qvindesland per@norhex.com wrote:
Hi Jake
Appologies but I am wondering if you could give me a sample of that script, I am currently busy with setting up something similar where I work and it would be greate to perhaps get some new ideas.
I'm afraid I don't have permission to distribute the script. The relevant function is that it copies /etc/skel/.* to the user's home directory and then does chown -R user:user on the directory. All of our machines have a /mnt/home and the user's home directory is always set to /mnt/home/user. This would work whether your accounts are in LDAP or anywhere else.
Cool thanks a lot, it's something similar that I have had in mind also, we have about 3000 users on my network with somewhat of a similar stuff right now, the only problem that I can see is how to script adding users into a ldap database in a simple way.
Regards Per Qvindesland
On 2/8/09 10:16 PM, "Jake" jakepaulus@gmail.com wrote:
I'm afraid I don't have permission to distribute the script. The relevant function is that it copies /etc/skel/.* to the user's home directory and then does chown -R user:user
On Sun, Feb 8, 2009 at 4:58 PM, Per Qvindesland per@norhex.com wrote:
the only problem that I can see is how to script adding users into a ldap database in a simple way.
The perl script we use basically takes a templated ldif file, replaces values with those supplied as arguments when the script is ran, and creates a new tmp ldif file that gets imported via ldapadd into the directory. There are extra steps to create the home directory as I mentioned.