Changes

956 bytes added ,  17:56, 1 October 2011
m
nemo is a pywikipediabot
Line 27: Line 27:  
   ssh root@housetree 'virsh start munin'
 
   ssh root@housetree 'virsh start munin'
 
add "munin" to .ssh/config and to treehouse-DNS
 
add "munin" to .ssh/config and to treehouse-DNS
   ssh root@munin 'sed -i "s/squeeze/munin/g" /etc/hostname /etc/hosts /etc/postfix/main.cf'
+
   ssh root@munin 'sed -i "s/squeeze/munin/g" /etc/hostname /etc/mailname /etc/hosts /etc/postfix/main.cf'
 
   ssh root@munin 'ssh-keygen -N "" -f /etc/ssh/ssh_host_rsa_key -t rsa'
 
   ssh root@munin 'ssh-keygen -N "" -f /etc/ssh/ssh_host_rsa_key -t rsa'
 
   ssh-keygen -f ".ssh/known_hosts" -R munin.treehouse.su
 
   ssh-keygen -f ".ssh/known_hosts" -R munin.treehouse.su
 
   ssh root@munin 'ssh-keygen -N "" -f /etc/ssh/ssh_host_dsa_key -t dsa'
 
   ssh root@munin 'ssh-keygen -N "" -f /etc/ssh/ssh_host_dsa_key -t dsa'
 
   ssh root@munin 'ssh-keygen -N "" -f /root/.ssh/id_rsa -t rsa'
 
   ssh root@munin 'ssh-keygen -N "" -f /root/.ssh/id_rsa -t rsa'
  ssh root@munin 'sed "s/squeeze/munin/" </etc/munin/munin-conf.d/squeeze >/etc/munin/munin-conf.d/munin'
+
ssh root@munin 'sed "s/squeeze/munin/" </etc/munin/munin-conf.d/squeeze >/etc/munin/munin-conf.d/munin' #recursion :P
 
user "hhardy" name "Henry Edward Hardy" other "hhardy01@gmail.com"
 
user "hhardy" name "Henry Edward Hardy" other "hhardy01@gmail.com"
 
   ssh root@munin 'adduser --disabled-password --add_extra_groups hhardy'
 
   ssh root@munin 'adduser --disabled-password --add_extra_groups hhardy'
 
   ssh root@munin 'echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDcvPyaILAJXdOM074kdswcFXLsAJgi34cZmumaOwa/88Uv/4rHBtNLBbRnGNOE7ZnMlW3T+GvgGvAKIunCmK9UpNCBA+zWq8Heosfnemf55ygnCn56ESHKFLV9IH0TZqKFMKH5/LU8CcxxAAmKvbk5nz/xNEbPyUisaBaI/J2ff3q5KQujgfhyPfZGpEUjKCrAXx+IBqcMUrwi7yWQRPaa12AxxNz7YEBMM0MWWbHP90OafnRIjM03v8L+KYjjCw9psRMI9uKWmF0XpD1MO/iqXPGOlj+ouYVXyT8W3PosDpPCDoNr/djIbzr5om8gw0qRgpE4q+a4g9YGP7pJ6CEl hh@hh-hp.bc.edu" >> /home/hhardy/.ssh/authorized_keys'
 
   ssh root@munin 'echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDcvPyaILAJXdOM074kdswcFXLsAJgi34cZmumaOwa/88Uv/4rHBtNLBbRnGNOE7ZnMlW3T+GvgGvAKIunCmK9UpNCBA+zWq8Heosfnemf55ygnCn56ESHKFLV9IH0TZqKFMKH5/LU8CcxxAAmKvbk5nz/xNEbPyUisaBaI/J2ff3q5KQujgfhyPfZGpEUjKCrAXx+IBqcMUrwi7yWQRPaa12AxxNz7YEBMM0MWWbHP90OafnRIjM03v8L+KYjjCw9psRMI9uKWmF0XpD1MO/iqXPGOlj+ouYVXyT8W3PosDpPCDoNr/djIbzr5om8gw0qRgpE4q+a4g9YGP7pJ6CEl hh@hh-hp.bc.edu" >> /home/hhardy/.ssh/authorized_keys'
 
   ssh root@munin 'reboot'
 
   ssh root@munin 'reboot'
 +
  ssh root@munin 'aptitude install munin apache2'
 +
  ssh root@munin 'echo "dbdir /var/lib/munin" >> /etc/munin/munin.conf'
 +
  ssh root@munin 'echo "htmldir /var/cache/munin/www" >> /etc/munin/munin.conf'
 +
  ssh root@munin 'echo "logdir /var/log/munin" >> /etc/munin/munin.conf'
 +
  ssh root@munin 'echo "rundir  /var/run/munin" >> /etc/munin/munin.conf'
 +
  ssh root@munin 'echo "tmpldir /etc/munin/templates" >> /etc/munin/munin.conf'
 +
  ssh root@munin 'sed -i "s/<\/Vir/#<\/Vir/" /etc/apache2/sites-enabled/000-default'
 +
  ssh root@munin 'echo "Alias /gar /var/cache/munin/www" >> /etc/apache2/sites-enabled/000-default'
 +
  ssh root@munin 'cat /etc/munin/apache.conf >> /etc/apache2/sites-enabled/000-default'
 +
  ssh root@munin 'sed -i "s/localhost 127.0.0.0\/8 ::1/all/" /etc/apache2/sites-enabled/000-default'
 +
  ssh root@munin 'echo "</VirtualHost>" >> /etc/apache2/sites-enabled/000-default'
 +
  ssh root@munin 'service apache2 restart'
42

edits