Rev | Line | |
---|
[417] | 1 | # copyright koumbit.org |
---|
| 2 | # Licence: GPL |
---|
| 3 | |
---|
| 4 | class cups_server { |
---|
| 5 | |
---|
| 6 | package { "cupsys": ensure => "installed" } |
---|
| 7 | |
---|
[443] | 8 | file { "/etc/cups/cupsd.conf": |
---|
[419] | 9 | source => "puppet:///cups_server/cupsd.conf", |
---|
| 10 | ensure => present, |
---|
| 11 | require => Package["cupsys"], |
---|
| 12 | owner => "root", group => "root", mode => "644", |
---|
| 13 | } |
---|
| 14 | |
---|
| 15 | service { "cupsys": |
---|
| 16 | enable => true, |
---|
| 17 | ensure => running, |
---|
| 18 | subscribe => [ Package["cupsys"], File["/etc/cups/cupsd.conf"] ], |
---|
| 19 | } |
---|
[417] | 20 | } |
---|
[419] | 21 | |
---|
Note: See
TracBrowser
for help on using the repository browser.