source: trunk/puppet/manifests/classes/cups-browser.pp @ 373

Last change on this file since 373 was 210, checked in by sebas, 15 years ago

paso cups en una clase aparte

File size: 671 bytes
Line 
1##
2## cups (browse) - to see other printers
3##
4
5class cups::browse {
6
7    package { [ 'cups' ]: ensure => installed }
8
9    file { "/etc/cups/cupsd.conf": ensure => present, checksum => mtime }
10   
11    line { cupsbrowseoff:
12       file => "/etc/cups/cupsd.conf",
13       line => 'Browsing Off',
14       ensure => absent,
15       require => Package["cups"]
16    }
17    line { cupsbrowseon:
18       file => "/etc/cups/cupsd.conf",
19       line => 'Browsing On',
20       ensure => present,
21       require => Package["cups"]
22    }
23
24    service { "cups":
25       enable => true,
26       ensure => running,
27       subscribe => [ Package["cups"], File["/etc/cups/cupsd.conf"] ],
28    }
29}
Note: See TracBrowser for help on using the repository browser.