Changeset 478


Ignore:
Timestamp:
Dec 9, 2009, 4:43:11 PM (13 years ago)
Author:
sebas
Message:

agregamos el acl para llegar al scanner + el lado cliente + cambio en el cupsd.conf para monstrarlas impresoras local al resto de la red

Location:
trunk/puppet/modules/cups
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/puppet/modules/cups/files/cupsd.conf

    r470 r478  
    55Listen /var/run/cups/cups.sock
    66# Enable printer sharing and shared printers.
    7 Browsing Off
     7Browsing On
    88BrowseOrder allow,deny
    9 BrowseAllow all
    109BrowseAddress @LOCAL
    1110DefaultAuthType Basic
  • trunk/puppet/modules/cups/manifests/init.pp

    r477 r478  
    44class cups {
    55}
     6
     7define cups::saned::client ($remotescanner)
     8  {
     9   package { "xsane": ensure => "installed" }
     10
     11   file { "/etc/sane.d/net.conf":
     12      ensure => present,
     13      require => Package["xsane"],
     14      owner => "root", group => "root", mode => "644",
     15   }
     16    line { saned_remotescanner:
     17      file => "/etc/sane.d/net.conf",
     18      line => $remotescanner,
     19      ensure => present,
     20      require => Package["xsane"],
     21    }
     22  }
    623
    724class cups::saned {
     
    2542
    2643   file { "/etc/default/saned":
     44      ensure => present,
     45      require => Package["sane-utils"],
     46      owner => "root", group => "root", mode => "644",
     47   }
     48
     49    line { saned_allow:
     50      file => "/etc/sane.d/saned.conf",
     51      line => $sanedallow,
     52      ensure => present,
     53      require => Package["sane-utils"],
     54      notify  => Service["saned"],
     55    }
     56
     57   file { "/etc/sane.d/saned.conf":
    2758      ensure => present,
    2859      require => Package["sane-utils"],
Note: See TracChangeset for help on using the changeset viewer.