X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=input%2Fhowto%2Fnew-machine.creole;h=36edc83031a2e869694226effe6e9c11a4bc0808;hb=e7870f7172b032decf2c007ef571b5f321f221d9;hp=66e65f0197de318262fc692b9b664ca08dcbfc36;hpb=89fc8d5388355ab1d01f3bdcf2f1deefb6f11850;p=mirror%2Fdsa-wiki.git diff --git a/input/howto/new-machine.creole b/input/howto/new-machine.creole index 66e65f0..36edc83 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 --no-daemonize --onetime + : :: draghi :: && sudo -u sshdist ud-generate && sudo -H ud-replicate && sudo -H puppet agent -t : :: denis :: && sudo -H ud-replicate }}} @@ -30,6 +30,7 @@ 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 @@ -42,7 +43,7 @@ Note: this has recently been changed to rely more on [[puppet|howto/puppet-setup * run puppet a couple times {{{ - puppet agent --no-daemonize --onetime; puppet agent --no-daemonize --onetime; puppet agent --no-daemonize --onetime; puppet agent --no-daemonize --onetime + puppet agent -t; puppet agent -t; puppet agent -t }}} * install security updates etc. @@ -54,13 +55,6 @@ Note: this has recently been changed to rely more on [[puppet|howto/puppet-setup * 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 @@ -74,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 --no-daemonize --onetime || true ) && + ( puppet agent -t || 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