From c30ecb76d91f39c7d82d486eb3c5db4a1415638c Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Fri, 28 Aug 2009 22:25:45 +0200 Subject: [PATCH] LDAP host entries are more important now --- input/howto/new-machine.creole | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/input/howto/new-machine.creole b/input/howto/new-machine.creole index f73c2da..fcf4c31 100644 --- a/input/howto/new-machine.creole +++ b/input/howto/new-machine.creole @@ -26,19 +26,16 @@ Note: this has recently been changed to rely more on [[puppet|howto/puppet-setup dpkg -l postfix | grep '^ii postfix' && (dpkg --purge postfix && rm /etc/aliases) }}} -* setup [[puppet|howto/puppet-setup]] (run the puppet client two or three times until things converge.) +* on draghi, add the host to the ldap using ud-host. Set the ssh key and the IP Address attributes. -* on draghi, add the host to /home/sshdist/.ssh/authorized_keys -(you want the host's rsa host key there: {{{cat /etc/ssh/ssh_host_rsa_key.pub}}}) -{{{ - : :: draghi :: && sudo vi /home/sshdist/.ssh/authorized_keys -}}} -* use ud-host to add the new host to LDAP * run generate, or wait until cron runs it for you {{{ - : :: draghi :: && sudo -u sshdist ud-generate + : :: draghi :: && sudo -u sshdist ud-generate && sudo -H ud-replicate }}} +* setup [[puppet|howto/puppet-setup]] (run the puppet client two or three times until things converge.) + + * fix nsswitch for ud fu. (you might have to restart sshd here) {{{ sed -i -e 's/^passwd:\[[:space:]]\+compat$/passwd: compat db/; -- 2.20.1