modules: cups: Fixup obvious missing bits
I didn't merge these parts because I have some other WIP code I was working on. Might as well put this in now.
This commit is contained in:
@@ -37,6 +37,12 @@ import "strings"
|
|||||||
class base() {
|
class base() {
|
||||||
$vardir = local.vardir("cups/")
|
$vardir = local.vardir("cups/")
|
||||||
|
|
||||||
|
pkg "cups" {
|
||||||
|
state => "installed",
|
||||||
|
|
||||||
|
Before => File["/etc/cups/"],
|
||||||
|
}
|
||||||
|
|
||||||
file "/etc/cups/" {
|
file "/etc/cups/" {
|
||||||
state => $const.res.file.state.exists,
|
state => $const.res.file.state.exists,
|
||||||
recurse => false, # not completely managed!
|
recurse => false, # not completely managed!
|
||||||
@@ -64,12 +70,13 @@ class base() {
|
|||||||
cmd => "/usr/sbin/restorecon -rv /etc/cups/",
|
cmd => "/usr/sbin/restorecon -rv /etc/cups/",
|
||||||
# XXX: make some magic snippets which turn into ./mgmt snippet <type> /etc/cups/ (for example) and get substituted in here!
|
# XXX: make some magic snippets which turn into ./mgmt snippet <type> /etc/cups/ (for example) and get substituted in here!
|
||||||
# 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/",
|
#ifcmd => "mgmt:changed /etc/cups/", # XXX: implement this
|
||||||
watchcmd => "mgmt:dir /etc/cups/",
|
#watchcmd => "mgmt:dir /etc/cups/", # XXX: implement this
|
||||||
}
|
}
|
||||||
|
|
||||||
svc "cups" {
|
svc "cups" {
|
||||||
# TODO: manage this
|
state => "running",
|
||||||
|
startup => "enabled",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user