summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Skøtt <martin@xenux.dk>2002-08-27 10:00:01 +0000
committerMartin Skøtt <martin@xenux.dk>2002-08-27 10:00:01 +0000
commit95d7f7b1b766aa1551d0289a8c1bc97c58f9ffa8 (patch)
tree5969a12cdb189f95c14b2549a9129074507f107a
parent4da8bc5b6a6af66bac457642dfdd3baf17198def (diff)
Moved almost everything in the links section into a copy section since
newer versions of logcheck does not appear to like links. This change will provoke some messages in the log about replacing links with files.
-rw-r--r--cfengine/cf.services.harden39
1 files changed, 21 insertions, 18 deletions
diff --git a/cfengine/cf.services.harden b/cfengine/cf.services.harden
index db94b15..4421a96 100644
--- a/cfengine/cf.services.harden
+++ b/cfengine/cf.services.harden
@@ -101,40 +101,43 @@ editfiles:
UnCommentLinesMatching " # ! fi"
}
-links:
+copy:
+ #The linktype is necesarry for links to be replaced with files.
NameServer::
- $(logcheck)/ignore.d/local-bind -> $(LocalCommon)/logcheck/ignore.d.$(type)/bind
- $(logcheck)/violations.ignore.d/local-bind -> $(LocalCommon)/logcheck/violations.ignore.d/bind
+ $(LocalCommon)/logcheck/ignore.d.$(type)/bind dest=$(logcheck)/ignore.d/local-bind linktype=copy
+ $(LocalCommon)/logcheck/violations.ignore.d/bind dest=$(logcheck)/violations.ignore.d/local-bind linktype=copy
FileServer::
- $(logcheck)/ignore.d/local-samba -> $(LocalCommon)/logcheck/ignore.d.$(type)/samba
- $(logcheck)/ignore.d/local-netatalk -> $(LocalCommon)/logcheck/ignore.d.$(type)/netatalk
- $(logcheck)/violations.ignore.d/local-samba -> $(LocalCommon)/logcheck/violations.ignore.d/samba
+ $(LocalCommon)/logcheck/ignore.d.$(type)/samba dest=$(logcheck)/ignore.d/local-samba linktype=copy
+ $(LocalCommon)/logcheck/ignore.d.$(type)/netatalk dest=$(logcheck)/ignore.d/local-netatalk linktype=copy
+ $(LocalCommon)/logcheck/violations.ignore.d/samba dest=$(logcheck)/violations.ignore.d/local-samba linktype=copy
DHCPServer::
- $(logcheck)/ignore.d/local-dhcp -> $(LocalCommon)/logcheck/ignore.d.$(type)/dhcp
- $(logcheck)/ignore.d/local-dhcp3-common -> $(LocalCommon)/logcheck/ignore.d.$(type)/dhcp3-common
+ $(LocalCommon)/logcheck/ignore.d.$(type)/dhcp dest=$(logcheck)/ignore.d/local-dhcp linktype=copy
+ $(LocalCommon)/logcheck/ignore.d.$(type)/dhcp3-common dest=$(logcheck)/ignore.d/local-dhcp3-common linktype=copy
WWWServer::
FTPServer::
- $(logcheck)/ignore.d/local-proftpd -> $(LocalCommon)/logcheck/ignore.d.$(type)/proftpd
- $(logcheck)/violations.ignore.d/local-proftpd -> $(LocalCommon)/logcheck/violations.ignore.d/proftpd
+ $(LocalCommon)/logcheck/ignore.d.$(type)/proftpd dest=$(logcheck)/ignore.d/local-proftpd linktype=copy
+ $(LocalCommon)/logcheck/violations.ignore.d/proftpd dest=$(logcheck)/violations.ignore.d/local-proftpd linktype=copy
IMAPServer::
- $(logcheck)/ignore.d/local-uw-imap -> $(LocalCommon)/logcheck/ignore.d.$(type)/uw-imap
+ $(LocalCommon)/logcheck/ignore.d.$(type)/uw-imap dest=$(logcheck)/ignore.d/local-uw-imap linktype=copy
+
+ any::
+ $(LocalCommon)/logcheck/ignore.d.$(type)/ssh dest=$(logcheck)/ignore.d/local-ssh linktype=copy
+ $(LocalCommon)/logcheck/ignore.d.$(type)/postfix dest=$(logcheck)/ignore.d/local-postfix linktype=copy
+
+ $(LocalCommon)/logcheck/violations.ignore.d/ssh dest=$(logcheck)/violations.ignore.d/local-ssh linktype=copy
+ $(LocalCommon)/logcheck/violations.ignore.d/postfix dest=$(logcheck)/violations.ignore.d/local-postfix linktype=copy
+links:
any::
# Sættes alt efter om det er server eller workstation. Pakken peger på workstation
$(logcheck)/ignore.d ->! $(logcheck)/ignore.d.$(type)
$(logcheck)/logcheck.ignore ->! $(logcheck)/logcheck.ignore.$(type)
-
- $(logcheck)/ignore.d/local-ssh -> $(LocalCommon)/logcheck/ignore.d.$(type)/ssh
- $(logcheck)/ignore.d/local-postfix -> $(LocalCommon)/logcheck/ignore.d.$(type)/postfix
-
- $(logcheck)/violations.ignore.d/local-ssh -> $(LocalCommon)/logcheck/violations.ignore.d/ssh
- $(logcheck)/violations.ignore.d/local-postfix -> $(LocalCommon)/logcheck/violations.ignore.d/postfix
-
+
shellcommands:
install_logcheck::
#Installerer logcheck hvis ikke allerede er