Line 43: |
Line 43: |
| ssh root@munin 'echo "rundir /var/run/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 'echo "tmpldir /etc/munin/templates" >> /etc/munin/munin.conf' |
| + | ssh root@munin 'sed -i "s/localhost.localdomain/VMs;munin.treehouse.su/" /etc/munin/munin.conf' |
| ssh root@munin 'sed -i "s/<\/Vir/#<\/Vir/" /etc/apache2/sites-enabled/000-default' | | 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 'echo "Alias /gar /var/cache/munin/www" >> /etc/apache2/sites-enabled/000-default' |
Line 49: |
Line 50: |
| ssh root@munin 'echo "</VirtualHost>" >> /etc/apache2/sites-enabled/000-default' | | ssh root@munin 'echo "</VirtualHost>" >> /etc/apache2/sites-enabled/000-default' |
| ssh root@munin 'service apache2 restart' | | ssh root@munin 'service apache2 restart' |
| + | ssh root@munin 'echo "[VMs;TEMPLATE.treehouse.su]" > /etc/munin/munin-conf.d.tpl' |
| + | ssh root@munin 'echo " address TEMPLATE.treehouse.su" >> /etc/munin/munin-conf.d.tpl' |
| + | ssh root@munin 'echo " use_node_name yes" >> /etc/munin/munin-conf.d.tpl' |
| + | ssh root@munin 'sed "s/TEMPLATE/dextra/" </etc/munin/munin-conf.d.tpl >/etc/munin/munin-conf.d/dextra' |
| + | ssh root@munin 'sed "s/TEMPLATE/treehouse/" </etc/munin/munin-conf.d.tpl >/etc/munin/munin-conf.d/treehouse' |
| + | ssh root@munin 'sed "s/TEMPLATE/housetree/" </etc/munin/munin-conf.d.tpl >/etc/munin/munin-conf.d/housetree' |
| + | ssh root@munin 'sed -i "s/VMs/DOMs/" /etc/munin/munin-conf.d/dextra /etc/munin/munin-conf.d/treehouse /etc/munin/munin-conf.d/housetree' |