Changeset 464


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

2 nuevas actions + corectiones

File:
1 edited

Legend:

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

    r463 r464  
    77
    88   file { "/etc/cups/cupsd.conf":
    9       source => "puppet:///cups_server/cupsd.conf",
     9      source => "puppet:///cups/cupsd.conf",
    1010      ensure => present,
    1111      require => Package["cupsys"],
     
    1313   }
    1414
    15    service { "cupsys":
    16       enable => true,
    17       ensure => running,
    18       subscribe => [ Package["cupsys"], File["/etc/cups/cupsd.conf"] ],
    19    }
     15#   service { "cups":
     16#      enable => true,
     17#      ensure => running,
     18#      subscribe => [ Package["cupsys"], File["/etc/cups/cupsd.conf"] ],
     19#   }
    2020}
    2121
     
    2525
    2626  exec { "cups_create_printer_$name":
    27     command => "lpadmin -p $printer -D 'p_description' -v $p_deviceuri -P $p_pathppd",
     27    command => "lpadmin -p $printer -D '$p_description' -v $p_deviceuri -P $p_pathppd",
    2828    path => "/bin:/sbin:/usr/sbin:/usr/bin",
    2929    unless => "/bin/grep $printer /etc/cups/printers.conf",
    3030    require => Package["cupsys"],
     31  }
     32
     33  exec { "cupsaccept_$name":
     34    command => "cupsaccept $printer",
     35    path => "/bin:/sbin:/usr/sbin:/usr/bin",
     36#    unless => "/bin/grep -v $printer /etc/cups/printers.conf",
     37    require => exec["cups_create_printer_$name"],
     38  }
     39
     40  exec { "cupsenable_$name":
     41    command => "cupsenable $printer",
     42    path => "/bin:/sbin:/usr/sbin:/usr/bin",
     43#    unless => "/bin/grep -v $printer /etc/cups/printers.conf",
     44    require => exec["cups_create_printer_$name"],
    3145  }
    3246
     
    3751   }
    3852
    39    service { "cupsys":
     53   service { "cups":
    4054      enable => true,
    4155      ensure => running,
Note: See TracChangeset for help on using the changeset viewer.