Changeset 572


Ignore:
Timestamp:
Mar 11, 2010, 4:15:52 PM (12 years ago)
Author:
sebas@…
Message:

agrego aca la class cups::browse para los clientes que tiene que ver la impresoras remotas

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/puppet/modules/puppet-cups/manifests/init.pp

    r514 r572  
    44class cups {
    55}
     6
     7##
     8## cups (browse) - to see other printers
     9##
     10
     11class cups::browse {
     12
     13    package { [ 'cups' ]: ensure => installed }
     14
     15    file { "/etc/cups/cupsd.conf": ensure => present, checksum => mtime }
     16   
     17    line { cupsbrowseoff:
     18       file => "/etc/cups/cupsd.conf",
     19       line => 'Browsing Off',
     20       ensure => absent,
     21       require => Package["cups"]
     22    }
     23    line { cupsbrowseon:
     24       file => "/etc/cups/cupsd.conf",
     25       line => 'Browsing On',
     26       ensure => present,
     27       require => Package["cups"]
     28    }
     29
     30    service { "cups":
     31       enable => true,
     32       ensure => running,
     33       subscribe => [ Package["cups"], File["/etc/cups/cupsd.conf"] ],
     34    }
     35}
     36
    637
    738define cups::saned::client ($remotescanner)
Note: See TracChangeset for help on using the changeset viewer.