X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=input%2Fhowto%2Fnew-machine.creole;h=ec3c8a2b1a34cb4006650a269e147a62499321bf;hb=5eaef104528f579b6d00c5d4f0b772c0ad3faf74;hp=62d4a4a47448c445b1ffb5b49517e92076249ef7;hpb=8f404a0dfc3344399a7933cabb3768ef5a47f985;p=mirror%2Fdsa-wiki.git diff --git a/input/howto/new-machine.creole b/input/howto/new-machine.creole index 62d4a4a..ec3c8a2 100644 --- a/input/howto/new-machine.creole +++ b/input/howto/new-machine.creole @@ -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