X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=input%2Fhowto%2Fnew-machine.creole;h=fcf4c319962d8738689ea57fe2d8e1ccbb9baf1c;hb=c30ecb76d91f39c7d82d486eb3c5db4a1415638c;hp=f73c2dafbe37bee9e1eb66e895204d4cf1383cb7;hpb=1c4afe0675b4bf840639d0c27d36f23f7499cc09;p=mirror%2Fdsa-wiki.git 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/;