From: Peter Palfrader Date: Fri, 28 Aug 2009 20:25:45 +0000 (+0200) Subject: LDAP host entries are more important now X-Git-Url: https://wiki.adam-barratt.org.uk/gitweb/?a=commitdiff_plain;h=c30ecb76d91f39c7d82d486eb3c5db4a1415638c;p=mirror%2Fdsa-wiki.git LDAP host entries are more important now --- 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/;