]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Adding nodo::master
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 23 Jan 2010 12:59:53 +0000 (10:59 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 23 Jan 2010 12:59:53 +0000 (10:59 -0200)
manifests/init.pp

index c2487a1dfc03d3e1730460551c16f2175161c4c4..d6d4d33b261f0667b39cae99bb98d4a7d9a6e8ec 100644 (file)
@@ -195,6 +195,10 @@ class nodo::vserver inherits nodo {
     #  tag  => $name,
     #}
 
+    # TODO: sound support
+    # http://wiki.debian.org/LinuxVserver
+    # http://seehuhn.de/pages/vserver
+
     # Apply firewall rules just for running vservers
     case $ensure {
       'running': {
@@ -319,3 +323,25 @@ class nodo::web inherits nodo::vserver {
 class nodo::proxy inherits nodo::vserver {
   include nginx
 }
+
+class nodo::master inherits nodo::vserver {
+  include puppetmasterd
+  include gitosis
+  include trac
+  # TODO:
+  #include munin::host
+
+  # rede
+  host { "puppet":
+    ensure => present,
+    ip     => "127.0.0.1",
+    alias  => ["puppet.$domain"],
+  }
+
+  # backup local do banco de dados
+  backupninja::mysql { "all_databases":
+       backupdir => '/var/backups/mysql',
+       compress  => true,
+       sqldump   => true,
+  }
+}