summaryrefslogtreecommitdiff
path: root/cfengine/cf.services.file
diff options
context:
space:
mode:
authorJuri Jensen <juri@xenux.dk>2002-03-14 11:47:28 +0000
committerJuri Jensen <juri@xenux.dk>2002-03-14 11:47:28 +0000
commit9b22b6766056b88ead68b61bfaf08751887c78b7 (patch)
tree85188afa04e8001db20258e03ada3332ef76db18 /cfengine/cf.services.file
parent76de7766b12f3ca73b825faf6a37e77b229ae6ff (diff)
samba: Modified shares for the radio-raatstof and xenuxlocal sites.
Removed smb-shares-printers.conf and split it up in to files - one for cups and one for lprng. The settings should work fully with cups and lprng.
Diffstat (limited to 'cfengine/cf.services.file')
-rw-r--r--cfengine/cf.services.file25
1 files changed, 6 insertions, 19 deletions
diff --git a/cfengine/cf.services.file b/cfengine/cf.services.file
index a5abd28..3c15e8d 100644
--- a/cfengine/cf.services.file
+++ b/cfengine/cf.services.file
@@ -30,9 +30,13 @@ import:
/etc/local-COMMON/samba/smb-printers.conf
editfiles:
- samba.lprng|samba.cups::
+ samba.lprng::
{ /etc/samba/smb.conf
- AppendIfNoSuchLine "include = /etc/samba/smb-printers.conf"
+ AppendIfNoSuchLine "include = /etc/samba/smb-printers-lprng.conf"
+ }
+ samba.cups::
+ { /etc/samba/smb.conf
+ AppendIfNoSuchLine "include = /etc/samba/smb-printers-cups.conf"
}
samba::
@@ -44,7 +48,6 @@ editfiles:
# up in the following files:
# - smb.conf
# - smb-shares-$(site).conf
- # - smb-printers.conf
#
# DeleteLinesAfterThisMatching "^\[homes\]$(n)*.*"
# ResetSearch "1"
@@ -210,22 +213,6 @@ editfiles:
}
lprng::
- { /etc/samba/smb.conf
- #
- # printing = lprng
- #
- ResetSearch "1"
- LocateLineMatching "^[;[:blank:]]*printing[[:blank:]]*=.*"
- BeginGroupIfNoLineMatching '^[[:blank:]]*printing[[:blank:]]*=[[:blank:]]*lprng[[:blank:]]*'
- ReplaceLineWith ' printing = lprng'
- EndGroup
- CatchAbort
- BeginGroupIfNoMatch '^[[:blank:]]*printing[[:blank:]]*=[[:blank:]]*lprng[[:blank:]]*'
- InsertLine ' printing = lprng'
- EndGroup
- DefineClasses "samba_reload"
- }
-
#
# Printer configuration stuff
#