Line | |
---|
1 | # copyright koumbit.org |
---|
2 | # Licence: GPL |
---|
3 | |
---|
4 | class cups_server { |
---|
5 | |
---|
6 | package { "cupsys": ensure => "installed" } |
---|
7 | |
---|
8 | file { "/etc/cups/cupsd.conf": |
---|
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 | } |
---|
20 | } |
---|
21 | |
---|
Note: See
TracBrowser
for help on using the repository browser.