]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Enable simplified nodo::subsystem::hosts
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 2 Jul 2016 17:21:09 +0000 (14:21 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 2 Jul 2016 17:21:09 +0000 (14:21 -0300)
manifests/base.pp
manifests/subsystem/hosts.pp

index 4ad5d11bda2ca88c10c61946dbf73b0d98770396..87433a4f6cf31cdc4f9a54969c528199b347bf74 100644 (file)
@@ -14,7 +14,7 @@ class nodo::base {
   include nodo::subsystem::local
 
   # Declare subsystem classes
-  #class { 'nodo::subsystem::hosts': }
+  class { 'nodo::subsystem::hosts': }
   class { 'nodo::subsystem::motd': }
 
   # Syslog facility
index d3b0d56270a2005d67dfb201c7ad1484ccc9a387..cd7647ebe9cbd1db0a2ede26d0bc1ad63ee84e8a 100644 (file)
@@ -13,48 +13,48 @@ class nodo::subsystem::hosts(
         source => "puppet:///modules/site_nodo/hosts/${::fqdn}",
       }
     }
-    default: {
-      host { "${::hostname}":
-        ensure       => present,
-        ip           => "${::ipaddress}",
-        host_aliases => [ "${::fqdn}" ],
-      }
-    
-      #host { "localhost":
-      #  ensure => present,
-      #  ip     => "127.0.0.1",
-      #}
-    
-      #host { "ip6-localhost":
-      #  ensure       => present,
-      #  ip           => "::1",
-      #  host_aliases => [ "ip6-loopback" ],
-      #}
-    
-      #host { "ip6-localnet":
-      #  ensure => present,
-      #  ip     => "fe00::0",
-      #}
-    
-      #host { "ip6-mcastprefix":
-      #  ensure => present,
-      #  ip     => "ff00::0",
-      #}
-    
-      #host { "ip6-allnodes":
-      #  ensure => present,
-      #  ip     => "ff02::1",
-      #}
-    
-      #host { "ip6-allrouters":
-      #  ensure => present,
-      #  ip     => "ff02::2",
-      #}
-    
-      #host { "ip6-allhosts":
-      #  ensure => present,
-      #  ip     => "ff02::3",
-      #}
-    }
+    #default: {
+    #  host { "${::hostname}":
+    #    ensure       => present,
+    #    ip           => "${::ipaddress}",
+    #    host_aliases => [ "${::fqdn}" ],
+    #  }
+    #
+    #  #host { "localhost":
+    #  #  ensure => present,
+    #  #  ip     => "127.0.0.1",
+    #  #}
+    #
+    #  #host { "ip6-localhost":
+    #  #  ensure       => present,
+    #  #  ip           => "::1",
+    #  #  host_aliases => [ "ip6-loopback" ],
+    #  #}
+    #
+    #  #host { "ip6-localnet":
+    #  #  ensure => present,
+    #  #  ip     => "fe00::0",
+    #  #}
+    #
+    #  #host { "ip6-mcastprefix":
+    #  #  ensure => present,
+    #  #  ip     => "ff00::0",
+    #  #}
+    #
+    #  #host { "ip6-allnodes":
+    #  #  ensure => present,
+    #  #  ip     => "ff02::1",
+    #  #}
+    #
+    #  #host { "ip6-allrouters":
+    #  #  ensure => present,
+    #  #  ip     => "ff02::2",
+    #  #}
+    #
+    #  #host { "ip6-allhosts":
+    #  #  ensure => present,
+    #  #  ip     => "ff02::3",
+    #  #}
+    #}
   }
 }