Changeset 476


Ignore:
Timestamp:
Dec 8, 2009, 10:57:16 PM (13 years ago)
Author:
sebas
Message:

levantar cups antes de la creacion de las imprisoras + reorganisacion de saned

File:
1 edited

Legend:

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

    r475 r476  
    99   package { "sane-utils": ensure => "installed" }
    1010
     11    line { saned_activate_off:
     12      file => "/etc/default/saned",
     13      line => 'RUN=no',
     14      ensure => absent,
     15      require => Package["sane-utils"],
     16      notify  => Service["saned"],
     17    }
     18    line { saned_activate_on:
     19      file => "/etc/default/saned",
     20      line => 'RUN=yes',
     21      ensure => present,
     22      require => Package["sane-utils"],
     23      notify  => Service["saned"],
     24    }
     25
    1126   file { "/etc/default/saned":
    1227      ensure => present,
     
    1833      enable => true,
    1934      ensure => running,
     35      provider => "debian",
    2036      subscribe => [ Package["sane-utils"], File["/etc/default/saned"] ],
    2137   }
     
    5470      enable => true,
    5571      ensure => running,
     72      provider => "debian",
    5673      subscribe => [ Package["cupsys"], File["/etc/cups/cupsd.conf"] ],
    5774   }
     
    6784      path => "/bin:/sbin:/usr/sbin:/usr/bin",
    6885      unless => "/bin/grep $printer /etc/cups/printers.conf",
    69       require => [Package["cupsys"], Package["hplip"], Package["hpijs-ppds"]],
     86      require => [Package["cupsys"], Package["hplip"], Package["hpijs-ppds"], Service["cups"]],
    7087    }
    7188  } else {
     
    121138  if $p_scan {
    122139    include cups::saned
    123     line { saned_activate_off:
    124       file => "/etc/default/saned",
    125       line => 'RUN=no',
    126       ensure => absent,
    127       require => Package["sane-utils"],
    128       notify  => Service["saned"],
    129     }
    130     line { saned_activate_on:
    131       file => "/etc/default/saned",
    132       line => 'RUN=yes',
    133       ensure => present,
    134       require => Package["sane-utils"],
    135       notify  => Service["saned"],
    136     }
    137140  } else {
    138141    debug ("'$printer' cannot scan on the network")
Note: See TracChangeset for help on using the changeset viewer.