== setup/integrate a new machine ==
-Note: this is partially obsolete now that we have [[puppet-setup|puppet]]. We should probably update/rework some parts.
+Note: this is partially obsolete now that we have [[puppet|howto/puppet-setup]]. We should probably update/rework some parts.
** Warning: This procedure has not been tested since being moved to the wiki. Beware. **
* on samosa, add the host to /home/sshdist/.ssh/authorized_keys and generate.conf
(you want the host's rsa host key there: {{{cat /etc/ssh/ssh_host_rsa_key.pub}}})
{{{
- :: samosa :: && sudo vi /home/sshdist/.ssh/authorized_keys
- :: samosa :: && sudo vi /etc/userdir-ldap/generate.conf
+ : :: samosa :: && sudo vi /home/sshdist/.ssh/authorized_keys
+ : :: samosa :: && sudo vi /etc/userdir-ldap/generate.conf
}}}
* run generate, or wait until cron runs it for you
{{{
- :: samosa :: && sudo -u sshdist ud-generate
+ : :: samosa :: && sudo -u sshdist ud-generate
}}}
* fix nsswitch for ud fu.
{{{
- sed -i -e 's/^passwd:[[:space:]]\+compat$/passwd: compat db/;
- s/^group:[[:space:]]\+compat$/group: db compat/;
- s/^shadow:[[:space:]]\+compat$/shadow: compat db/' \
+ sed -i -e 's/^passwd:\[[:space:]]\+compat$/passwd: compat db/;
+ s/^group:\[[:space:]]\+compat$/group: db compat/;
+ s/^shadow:\[[:space:]]\+compat$/shadow: compat db/' \
/etc/nsswitch.conf
}}}
* exim setup:
{{{
- :: now obsolete :: &&
+ : :: now obsolete :: &&
apt-get install git-core curl &&
! [ -d /etc/exim4.bak ] &&
/etc/init.d/exim4 stop &&
EOF
}}}
-* munin setup:
-* grant access to spohr
-{{{
- sed -i -e '/^allow/d; $ a \allow ^192\\\.25\\\.206\\\.57$\nallow ^192\\\.25\\\.206\\\.33$' /etc/munin/munin-node.conf
- ( cd / && env -i /etc/init.d/munin-node restart )
-}}}
* add to munin on spohr
{{{
- :: spohr :: && sudo vi /etc/munin/munin.conf
+ : :: spohr :: && sudo vi /etc/munin/munin.conf
}}}
(cd / && env -i /etc/init.d/ssh restart)
}}}
-* if it is a HP Proliant, or has other management fu, read setup-oob
+* if it is a HP Proliant, or has other management fu, read [[howto/ilo-https]]
+
+* setup [[puppet|howto/puppet-setup]]
+
+* add to nagios
-- weasel, Wed, 04 Jun 2008 20:52:56 +0200