X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fdsa-wiki.git;a=blobdiff_plain;f=input%2Fhowto%2Fnew-machine.creole;h=675c708f9d46aa363e80ca8bd98e340cd37074b4;hp=8264df13a3565bd929d4c8d7ec764803759b7600;hb=869b58c310197cf6155f7e9ec756489f7d94ee29;hpb=185d09c5758832f61a54f592d8a20f085817e328 diff --git a/input/howto/new-machine.creole b/input/howto/new-machine.creole index 8264df1..675c708 100644 --- a/input/howto/new-machine.creole +++ b/input/howto/new-machine.creole @@ -22,7 +22,7 @@ Note: this has recently been changed to rely more on [[puppet|howto/puppet-setup * run generate, or wait until cron runs it for you. Update DNS. {{{ - : :: draghi :: && sudo -u sshdist ud-generate && sudo -H ud-replicate && sudo -H puppetd -t + : :: draghi :: && sudo -u sshdist ud-generate && sudo -H ud-replicate && sudo -H puppet agent --no-daemonize --onetime : :: denis :: && sudo -H ud-replicate }}} @@ -30,6 +30,8 @@ Note: this has recently been changed to rely more on [[puppet|howto/puppet-setup * on the host, run ud-replicate and check if it worked {{{ + apt-get update && + apt-get install -y --no-install-recommends userdir-ldap && ud-replicate && id weasel }}} @@ -41,20 +43,18 @@ Note: this has recently been changed to rely more on [[puppet|howto/puppet-setup * run puppet a couple times {{{ - puppet agent -t; puppet agent -t; puppet agent -t; puppet agent -t + puppet agent --no-daemonize --onetime; puppet agent --no-daemonize --onetime; puppet agent --no-daemonize --onetime; puppet agent --no-daemonize --onetime +}}} + +* install security updates etc. +{{{ + apt-get update && apt-get dist-upgrade && apt-get clean }}} * try to login using your user and ssh key. you should get a homedir. * try to become root using sudo. -* make ca-certificates sane: (choose to *not* trust new certs, and we only want the spi cert activated) -{{{ - echo "ca-certificates ca-certificates/trust_new_crts select no" | debconf-set-selections - sed -i -e 's/^[^#!].*/!&/; s#^!spi-inc.org/spi-cacert-2008.crt#spi-inc.org/spi-cacert-2008.crt#' /etc/ca-certificates.conf - dpkg-reconfigure ca-certificates -}}} - * Add debian-admin@debian.org to root in /etc/aliases {{{ if ! egrep '^root:' /etc/aliases > /dev/null; then @@ -68,16 +68,16 @@ Note: this has recently been changed to rely more on [[puppet|howto/puppet-setup * install samhain and get puppet to configure it {{{ apt-get install -y samhain && - ( puppet agent -t || true ) && + ( puppet agent --no-daemonize --onetime || true ) && service samhain stop && - rm /var/state/samhain/samhain_file && + rm -f /var/state/samhain/samhain_file /var/lib/samhain/samhain_file && samhain --foreground -t init -p none -s none -l none -m none && service samhain start }}} * if it is a HP Proliant, or has other management fu, read [[howto/ilo-https]] -* edit dedication into in $DSA-PUPPET/modules/debian-org/misc/local.yaml +* edit dedication into in $DSA-PUPPET/modules/debian_org/files/misc/local.yaml * add to nagios