modules: cups: Add more edges
Useful for performance reasons until we make autoedges blazing fast.
This commit is contained in:
@@ -50,6 +50,8 @@ class base() {
|
|||||||
owner => "root",
|
owner => "root",
|
||||||
group => "lp", # TODO: debian?
|
group => "lp", # TODO: debian?
|
||||||
mode => "u=rwx,go=rx", # dir
|
mode => "u=rwx,go=rx", # dir
|
||||||
|
|
||||||
|
Before => Svc["cups"],
|
||||||
}
|
}
|
||||||
|
|
||||||
file "/etc/cups/printers.conf" {
|
file "/etc/cups/printers.conf" {
|
||||||
@@ -64,6 +66,9 @@ class base() {
|
|||||||
|
|
||||||
Before => Exec["restorecon"],
|
Before => Exec["restorecon"],
|
||||||
Notify => Svc["cups"],
|
Notify => Svc["cups"],
|
||||||
|
Before => Svc["cups"],
|
||||||
|
Depend => File["${vardir}printers.conf.header"],
|
||||||
|
Depend => File["${vardir}printers.d/"],
|
||||||
}
|
}
|
||||||
|
|
||||||
exec "restorecon" {
|
exec "restorecon" {
|
||||||
@@ -72,6 +77,7 @@ class base() {
|
|||||||
# XXX: or even better, instead of snippets which exec mgmt stuff, they turn into pure golang equivalents...
|
# XXX: or even better, instead of snippets which exec mgmt stuff, they turn into pure golang equivalents...
|
||||||
#ifcmd => "mgmt:changed /etc/cups/", # XXX: implement this
|
#ifcmd => "mgmt:changed /etc/cups/", # XXX: implement this
|
||||||
#watchcmd => "mgmt:dir /etc/cups/", # XXX: implement this
|
#watchcmd => "mgmt:dir /etc/cups/", # XXX: implement this
|
||||||
|
Depend => File["/etc/cups/printers.conf"],
|
||||||
}
|
}
|
||||||
|
|
||||||
svc "cups" {
|
svc "cups" {
|
||||||
@@ -145,6 +151,8 @@ class base:printer($name, $st) {
|
|||||||
owner => "root",
|
owner => "root",
|
||||||
group => "root",
|
group => "root",
|
||||||
mode => "u=rw,go=",
|
mode => "u=rw,go=",
|
||||||
|
|
||||||
|
Depend => File["${vardir}printers.d/"],
|
||||||
}
|
}
|
||||||
|
|
||||||
file "/etc/cups/ppd/${name}.ppd" {
|
file "/etc/cups/ppd/${name}.ppd" {
|
||||||
@@ -158,6 +166,7 @@ class base:printer($name, $st) {
|
|||||||
|
|
||||||
Before => Exec["restorecon"],
|
Before => Exec["restorecon"],
|
||||||
Notify => Svc["cups"],
|
Notify => Svc["cups"],
|
||||||
|
Depend => File["/etc/cups/"], # ppd folder comes from package
|
||||||
}
|
}
|
||||||
|
|
||||||
if $default {
|
if $default {
|
||||||
|
|||||||
Reference in New Issue
Block a user