Moved printer from desktop to system.
authorAndreas Schiermeier <andreas@schiermeier.name>
Mon, 9 May 2016 23:19:49 +0000 (01:19 +0200)
committerAndreas Schiermeier <andreas@schiermeier.name>
Mon, 9 May 2016 23:19:49 +0000 (01:19 +0200)
modules/desktop/manifests/init.pp
modules/system/manifests/init.pp

index c6d5882..1b0858d 100644 (file)
@@ -227,23 +227,4 @@ class desktop {
                ensure => file,
        }
        
-       printer { "mfp01":
-               ensure       => present,
-               uri          => "dnssd://mfp01._ipp._tcp.local/",
-               description  => "mfp01",
-               location     => "here",
-               require      => [ 
-                       Package['avahi-utils'],
-                       Package['avahi-daemon'],
-                        Package['libnss-mdns'],
-                        Package['cups'],
-                        Package['hplip'],
-                       ],
-               model        => "drv:///hpcups.drv/hp-deskjet_990c.ppd", 
-               shared       => false, # Printer will be shared and published by CUPS
-               error_policy => abort_job, # underscored version of error policy
-               enabled      => true, # Enabled by default
-               page_size    => 'A4',
-
-       }
 }
index 694ac1e..6dfd98d 100644 (file)
@@ -131,4 +131,22 @@ class system {
                require => Package['network-manager'],
        }
 
+       printer { "mfp01":
+               ensure       => present,
+               uri          => 'dnssd://mfp01._ipp._tcp.local/',
+               description  => 'mfp01',
+               location     => 'In the same network.',
+               require      => [ 
+                               Package['avahi-utils'],
+                               Package['avahi-daemon'],
+                               Package['libnss-mdns'],
+                               Package['cups'],
+                               Package['hplip'],
+                       ],
+               model        => 'drv:///hpcups.drv/hp-deskjet_990c.ppd', 
+               shared       => false,
+               error_policy => 'abort_job',
+               enabled      => true,
+               page_size    => 'A4',
+       }
 }