dnsmaster moved
[mirror/dsa-wiki.git] / input / howto / new-machine.creole
index 62d4a4a..ec3c8a2 100644 (file)
@@ -3,25 +3,12 @@
 Note: this has recently been changed to rely more on [[puppet|howto/puppet-setup]].  If stuff breaks fix it.
 
 
-* install ssh if it isn't there already
+* some initial stuff:
 {{{
-    apt-get install --no-install-recommends ssh
-}}}
-
-* sane editor
-{{{
-    apt-get install --no-install-recommends vim
-}}}
-
-* sane locales: (make sure there is _no_ locale defined in /etc/environment and /etc/default/locale)
-{{{
-   echo -n > /etc/environment
-   echo -n > /etc/default/locale
-}}}
-
-* make debconf the same on every host: - dialog, - high
-{{{
-    apt-get install --no-install-recommends dialog &&
+    apt-get install --no-install-recommends ssh vim &&
+    echo -n > /etc/environment &&
+    echo -n > /etc/default/locale &&
+    apt-get install --no-install-recommends dialog && &&
     echo "debconf debconf/priority        select high" | debconf-set-selections &&
     echo "debconf debconf/frontend        select Dialog" | debconf-set-selections
 }}}
@@ -36,7 +23,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
-    : :: orff :: && sudo -H ud-replicate
+    : :: denis :: && sudo -H ud-replicate
 }}}
 
 * setup [[puppet|howto/puppet-setup]]  (run the puppet client two or three times until things converge.)
@@ -85,16 +72,18 @@ 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 samhain
-  puppet agent -t
+  apt-get install -y samhain &&
+  ( puppet agent -t || true ) &&
+  service samhain stop &&
+  rm /var/state/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
 
-* Add host to smarthost machines in $DSA-PUPPET/modules/debian-org/misc/local.yaml (if so desired).  Set MX in ud-ldap.
-
 * add to nagios
 
 -- weasel, Wed, 04 Jun 2008 20:52:56 +0200