]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Avoid annoying warning with laptop-mode-tools config
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 27 Mar 2014 15:44:16 +0000 (12:44 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 27 Mar 2014 15:44:16 +0000 (12:44 -0300)
manifests/base/laptop.pp

index dbafda7b7cae461915d2815bb52463d0799a7792..4e07e809922b71c0d38d422fa64cb40002692ea9 100644 (file)
@@ -30,4 +30,23 @@ class nodo::base::laptop inherits nodo::base::personal {
       default => present,
     },
   }
+
+  # Avoid this annoying warning
+  # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=673818
+  file { '/etc/laptop-mode/conf.d/board-specific':
+    ensure  => directory,
+    owner   => root,
+    group   => root,
+    mode    => 0755,
+    require => Package['laptop-mode-tools'],
+  }
+
+  file { '/etc/laptop-mode/conf.d/board-specific/bogus.conf' :
+    ensure  => present,
+    owner   => 'root',
+    group   => 'root',
+    mode    => '0644',
+    content => "# Placeholder file, see Debian bug #673818\n",
+    require => File['/etc/laptop-mode/conf.d/board-specific'],
+  }
 }