Changeset 473


Ignore:
Timestamp:
Dec 8, 2009, 3:46:48 PM (13 years ago)
Author:
sebas
Message:

el servicio se reinicia como se debe

File:
1 edited

Legend:

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

    r472 r473  
    44class cups {
    55   service { "cups":
    6          enable => true,
    7          ensure => running,
    8          subscribe => [ Package["cupsys"], File["/etc/cups/cupsd.conf"] ],
     6      enable => true,
     7      ensure => running,
     8      subscribe => [ Package["cupsys"], File["/etc/cups/cupsd.conf"] ],
     9   }
     10}
     11
     12class cups::saned {
     13
     14   package { "sane-utils": ensure => "installed" }
     15
     16   file { "/etc/default/saned":
     17      ensure => present,
     18      require => Package["sane-utils"],
     19      owner => "root", group => "root", mode => "644",
    920   }
    1021
    1122   service { "saned":
    12          enable => true,
    13          ensure => running,
    14          subscribe => [ Package["sane-utils"], File["/etc/default/saned"] ],
     23      enable => true,
     24      ensure => running,
     25      subscribe => [ Package["sane-utils"], File["/etc/default/saned"] ],
    1526   }
    1627}
     
    3849 {
    3950   include cups::server
     51   include cups
    4052
    4153  if $p_pathppd {
     
    97109
    98110  if $p_scan {
    99    package { "sane-utils": ensure => "installed" }
    100 
     111    include cups::saned
    101112    line { saned_activate_off:
    102113      file => "/etc/default/saned",
     
    106117      notify  => Service["saned"],
    107118    }
    108 
    109119    line { saned_activate_on:
    110120      file => "/etc/default/saned",
Note: See TracChangeset for help on using the changeset viewer.