* 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 puppetd --no-daemonize --onetime
: :: denis :: && sudo -H ud-replicate
}}}
* 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
}}}
* 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)
+* make ca-certificates sane: (choose to *not* trust new certs)
{{{
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
}}}
* 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
}}}