]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/samhain/templates/samhainrc.erb
Merge branch 'master' of git+ssh://zobel@puppet.debian.org/srv/puppet.debian.org...
[dsa-puppet.git] / modules / samhain / templates / samhainrc.erb
1 ##
2 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
3 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
4 ##
5
6 #####################################################################
7 #
8 # Configuration file template for samhain.
9 #
10 #####################################################################
11
12 # -- empty lines and lines starting with '#', ';' or '//' are ignored
13 # -- boolean options can be Yes/No or True/False or 1/0 
14 # -- you can PGP clearsign this file -- samhain will check (if compiled
15 #    with support) or otherwise ignore the signature
16 # -- CHECK mail address
17 #
18 # To each log facility, you can assign a threshold severity. Only
19 # reports with at least the threshold severity will be logged
20 # to the respective facility (even further below).
21 #
22 #####################################################################
23 #
24 # SETUP for file system checking:
25
26 # (i)   There are several policies, each has its own section. Put files
27 #       into the section for the appropriate policy (see below).
28 # (ii)  Section [EventSeverity]: 
29 #       To each policy, you can assign a severity (further below).
30 # (iii) Section [Log]: 
31 #       To each log facility, you can assign a threshold severity. Only
32 #       reports with at least the threshold severity will be logged
33 #       to the respective facility (even further below).
34 #
35 #####################################################################
36
37 #####################################################################
38 #
39 # Files are defined with: file = /absolute/path
40 #
41 # Directories are defined with:                  dir = /absolute/path
42 # or with an optional recursion depth (N <= 99): dir = N/absolute/path
43 #
44 # Directory inodes are checked. If you only want to check files
45 # in a directory, but not the directory inode itself, use (e.g.):
46 #
47 # [ReadOnly]
48 # dir = /some/directory
49 # [IgnoreAll]
50 # file = /some/directory
51 #
52 # You can use shell-style globbing patterns, like: file = /path/foo*
53
54 ######################################################################
55
56 [Misc]
57 ##
58 ## Add or subtract tests from the policies
59 ## - if you want to change their definitions,
60 ##   you need to do that before using the policies
61 ##
62 # RedefReadOnly = (no default)
63 # RedefAttributes=(no default)
64 # RedefLogFiles=(no default)
65 # RedefGrowingLogFiles=(no default)
66 # RedefIgnoreAll=(no default)
67 # RedefIgnoreNone=(no default)
68 # RedefUser0=(no default)
69 # RedefUser1=(no default)
70
71 [Attributes]
72 ##
73 ## for these files, only changes in permissions and ownership are checked
74 ##
75 file=/etc/mtab
76 file=/etc/ssh_random_seed
77 file=/etc/asound.conf
78 file=/etc/resolv.conf
79 file=/etc/localtime
80 file=/etc/ioctl.save
81 file=/etc/passwd.backup
82 file=/etc/shadow.backup
83 file=/etc/postfix/prng_exch
84 file=/etc/adjtime
85 file=/etc/lvm/.cache
86 file=/etc/lvm/cache
87 file=/etc/lvm/cache/.cache
88 file=/etc/network/run/ifstate
89 file=/var/state/samhain/samhain_file
90 file=/etc/bind/zones/db.debian.net
91 file=/etc/exim4/bsmtp
92 <% if hostname == "geo1" || hostname == "geo2" || hostname == "geo3" -%>
93 file=/etc/bind/named.conf.acl
94 file=/etc/bind/named.conf.options
95 file=/etc/bind/named.conf.local
96 file=/etc/bind/geodns/named.conf.geo
97 file=/etc/bind/geodns/recvconf.files
98 file=/etc/bind/geodns/db.www.debian.org.SA
99 file=/etc/bind/geodns/db.www.debian.org.OC
100 file=/etc/bind/geodns/db.www.debian.org.NA
101 file=/etc/bind/geodns/db.www.debian.org.EU
102 file=/etc/bind/geodns/db.www.debian.org.AS
103 file=/etc/bind/geodns/db.www.debian.org.AN
104 file=/etc/bind/geodns/db.www.debian.org.AF
105 file=/etc/bind/geodns/db.www.debian.org
106 file=/etc/bind/geodns/db.security.debian.org.SA
107 file=/etc/bind/geodns/db.security.debian.org.OC
108 file=/etc/bind/geodns/db.security.debian.org.NA
109 file=/etc/bind/geodns/db.security.debian.org.EU
110 file=/etc/bind/geodns/db.security.debian.org.AS
111 file=/etc/bind/geodns/db.security.debian.org.AN
112 file=/etc/bind/geodns/db.security.debian.org.AF
113 file=/etc/bind/geodns/db.security.debian.org
114 <% end -%>
115
116
117 #
118 # There are files in /etc that might change, thus changing the directory
119 # timestamps. Put it here as 'file', and in the ReadOnly section as 'dir'.
120 #
121 file=/etc
122 file=/etc/ssh
123 file=/etc/network/run
124 file=/etc/bind/zones
125
126 # These are the directories for the files we handle with puppet
127 file=/etc/samhain
128 file=/etc/munin
129 file=/etc/exim4
130 file=/etc/exim4/ssl
131 file=/etc/apt
132 file=/etc/apt/apt.conf.d
133 file=/etc/apt/sources.list.d
134 file=/etc/default
135 file=/etc/logrotate.d
136 file=/etc/nagios
137 file=/etc/nagios/nrpe.d
138 file=/etc/nagios/obsolete-packages-ignore.d
139 file=/etc/bind/geodns
140 <%= extradir=""
141 case fqdn 
142 when "spohr.debian.org": extradir="file=/etc/nagios3/puppetconf.d
143 file=/etc/puppet"
144 else extradir="file=/etc/puppet"
145 end
146 extradir
147 %>
148 file=/etc/cron.d
149 file=/usr/lib/nagios/plugins
150 file=/usr/sbin
151 file=/etc/monit
152 file=/etc/monit/monit.d
153 file=/etc/pam.d
154 file=/etc/syslog-ng
155
156
157 [LogFiles]
158 ##
159 ## for these files, changes in signature, timestamps, and size are ignored 
160 ##
161 file=/var/run/utmp
162 file=/etc/motd
163
164
165
166 #####################################################################
167 #
168 # This would be the proper syntax for parts that should only be
169 #    included for certain hosts.
170 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
171 #    result still has the proper syntax for the config file.
172 # You may have any number of @HOSTNAME/@end brackets.
173 # HOSTNAME should be the fully qualified 'official' name 
174 #    (e.g. 'nixon.watergate.com', not 'nixon'), no aliases. 
175 #    No IP number - except if samhain cannot determine the 
176 #    fully qualified hostname.
177 #
178 # @HOSTNAME
179 # file=/foo/bar
180 # @end
181 #
182 # These are two examples for conditional inclusion/exclusion
183 # of a machine based on the output from 'uname -srm'
184 #
185 # $Linux:2.*.7:i666
186 # file=/foo/bar3
187 # $end
188 #
189 # !$Linux:2.*.7:i686
190 # file=/foo/bar2
191 # $end
192 #
193 #####################################################################
194
195 [GrowingLogFiles]
196 ##
197 ## for these files, changes in signature, timestamps, and increase in size
198 ##                  are ignored 
199 ##
200 file=/var/log/warn
201 file=/var/log/messages
202 file=/var/log/wtmp
203 file=/var/log/faillog
204 file=/var/log/auth.log
205 file=/var/log/daemon.log
206 file=/var/log/user.log
207 file=/var/log/kern.log
208 file=/var/log/syslog
209
210
211 [IgnoreAll]
212 ##
213 ## for these files, no modifications are reported
214 ##
215 ## This file might be created or removed by the system sometimes.
216 ##
217 file=/etc/resolv.conf.pcmcia.save
218 file=/etc/nologin
219 file=/etc/postfix/debian.db
220 file=/etc/postfix/debian
221 file=/etc/ssh/ssh_known_hosts
222 file=/etc/ssh/ssh-rsa-shadow
223 file=/var/lib/misc/ssh-rsa-shadow
224 file=/etc/.da-backup.trace
225 file=/etc/postfix/debianhosts
226 file=/etc/postfix/debianhosts.db
227 file=/etc/blkid.tab
228 file=/etc/blkid.tab.old
229 file=/etc/resolv.conf.dhclient-new
230
231 # We handle these files with puppet - please to not be bothering us
232 file=/etc/timezone
233 file=/etc/motd.tail
234 file=/etc/samhain/samhainrc
235 file=/etc/munin/munin-node.conf
236 file=/etc/userdir-ldap.confc
237 file=/etc/exim4/blacklist
238 file=/etc/exim4/callout_users
239 file=/etc/exim4/exim4.conf
240 file=/etc/exim4/grey_users
241 file=/etc/exim4/helo-check
242 file=/etc/exim4/locals
243 file=/etc/exim4/localusers
244 file=/etc/exim4/manualroute
245 file=/etc/exim4/rbllist
246 file=/etc/exim4/rcpthosts
247 file=/etc/exim4/rhsbllist
248 file=/etc/exim4/virtualdomains
249 file=/etc/exim4/whitelist
250 file=/etc/exim4/local-auto.conf
251 file=/etc/exim4/local-settings.conf
252 file=/etc/exim4/ssl/ca.crt
253 file=/etc/exim4/ssl/ca.crl
254 file=/etc/exim4/ssl/thishost.crt
255 file=/etc/exim4/ssl/thishost.key
256 <%=
257 out=""
258 if not nodeinfo['heavy_exim'].empty?
259   out = '
260 file=/etc/exim4/surbl_whitelist.txt
261 file=/etc/exim4/exim_surbl.pl
262 file=/etc/exim4/ccTLD.txt
263 '
264 end
265 out
266 %>
267 file=/etc/apt/preferences
268 file=/etc/apt/sources.list.d/volatile.list
269 file=/etc/apt/sources.list.d/security.list
270 file=/etc/apt/sources.list.d/buildd.list
271 file=/etc/apt/sources.list.d/debian.org.list
272 file=/etc/apt/sources.list.d/debian.restricted.list
273 file=/etc/apt/sources.list.d/debian.list
274 file=/etc/apt/sources.list.d/backports.org.list
275 file=/etc/apt/apt.conf.d/local-recommends
276 file=/etc/apt/apt.conf.d/local-pdiffs
277 file=/etc/puppet/puppet.conf
278 file=/etc/default/puppet
279 file=/etc/default/postgrey
280 file=/etc/logrotate.d/exim4-paniclog
281 file=/etc/logrotate.d/exim4-base
282 file=/etc/logrotate.d/syslog-ng
283 file=/etc/syslog-ng/syslog-ng.conf
284 file=/usr/sbin/dsa-update-apt-status
285 file=/usr/sbin/dsa-update-samhain-status
286 file=/etc/nagios/nrpe.d/nrpe_dsa.cfg
287 file=/etc/nagios/nrpe.d/debianorg.cfg
288 file=/etc/nagios/obsolete-packages-ignore
289 file=/etc/nagios/obsolete-packages-ignore.d/hostspecific
290 file=/usr/lib/nagios/plugins/dsa-check-packages
291 file=/usr/lib/nagios/plugins/dsa-check-soas
292 file=/usr/lib/nagios/plugins/dsa-check-mirrorsync
293 file=/usr/lib/nagios/plugins/dsa-check-samhain
294 file=/usr/lib/nagios/plugins/dsa-check-statusfile
295 file=/usr/lib/nagios/plugins/dsa-check-dabackup-server
296 file=/usr/lib/nagios/plugins/dsa-check-config
297 file=/usr/lib/nagios/plugins/dsa-check-hpacucli
298 file=/usr/lib/nagios/plugins/dsa-check-raid-mpt
299 file=/usr/lib/nagios/plugins/dsa-check-puppet
300 file=/usr/lib/nagios/plugins/dsa-check-running-kernel
301 file=/usr/lib/nagios/plugins/dsa-check-raid-3ware
302 file=/usr/lib/nagios/plugins/dsa-check-dabackup
303 file=/usr/lib/nagios/plugins/dsa-check-raid-dac960
304 file=/usr/lib/nagios/plugins/dsa-check-udldap-freshness
305 file=/usr/lib/nagios/plugins/dsa-check-raid-areca
306 file=/usr/lib/nagios/plugins/dsa-check-raid-sw
307 file=/usr/lib/nagios/plugins/dsa-update-samhain-status
308 file=/etc/sudoers
309 file=/etc/pam.d/sudo
310 file=/etc/monit/monitrc
311 file=/etc/monit/monit.d/01puppet
312 file=/etc/monit/monit.d/00debian.org
313 file=/etc/cron.d/dsa-puppet-stuff
314 <%= extrafiles=""
315 case fqdn 
316 when "spohr.debian.org": extrafiles="file=/etc/nagios3/puppetconf.d/auto-hostgroups.cfg
317 file=/etc/nagios3/puppetconf.d/auto-hosts.cfg
318 file=/etc/nagios3/puppetconf.d/auto-services.cfg
319 file=/etc/nagios3/puppetconf.d/auto-dependencies.cfg
320 file=/etc/nagios3/puppetconf.d/auto-hostextinfo.cfg
321 file=/etc/nagios3/puppetconf.d/auto-serviceextinfo.cfg"
322 when "handel.debian.org": extrafiles="dir=8/etc/puppet"
323 end
324 extrafiles
325 %>
326
327 [IgnoreNone]
328 ##
329 ## for these files, all modifications (even access time) are reported
330 ##    - you may create some interesting-looking file (like /etc/safe_passwd),
331 ##      just to watch whether someone will access it ...
332 ##
333
334 [Prelink]
335 ##
336 ## Use for prelinked files or directories holding them
337 ##
338
339
340 [ReadOnly]
341 ##
342 ## for these files, only access time is ignored
343 ##
344 dir=/usr/bin
345 dir=/bin
346 dir=/boot
347 #
348 # SuSE (old) has the boot init scripts in /sbin/init.d/*, 
349 # so we go 3 levels deep
350 #
351 dir=3/sbin
352 dir=/usr/sbin
353 dir=/lib
354 dir=3/usr/lib
355 #
356 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*, 
357 #        so we go 3 levels deep there too
358 #
359 dir=3/etc
360
361 # Various directories / files that may include / be SUID/SGID binaries
362 #
363 #
364 file=/usr/lib/pt_chown
365 # X11, in Debian X7 this is now a symlink
366 #dir=/usr/X11R6/bin
367 #dir=/usr/X11R6/lib/X11/xmcd/bin
368 # Apache:
369 #file=/usr/lib/apache/suexec
370 #file=/usr/lib/apache/suexec.disabled
371 # Extra directories:
372 #dir=/opt/gnome/bin
373 #dir=/opt/kde/bin
374
375 [User0]
376 [User1]
377 ## User0 and User1 are sections for files/dirs with user-definable checking
378 ## (see the manual) 
379
380
381 [EventSeverity]
382 ##
383 ## Here you can assign severities to policy violations.
384 ## If this severity exceeds the treshold of a log facility (see below),
385 ## a policy violation will be logged to that facility.
386 ##
387 ## Severity for verification failures.
388 ##
389 # SeverityReadOnly=crit
390 # SeverityLogFiles=crit
391 # SeverityGrowingLogs=crit
392 # SeverityIgnoreNone=crit
393 # SeverityAttributes=crit
394 # SeverityUser0=crit
395 # SeverityUser1=crit
396
397 # Default behaviour
398 SeverityReadOnly=crit
399 SeverityLogFiles=crit
400 SeverityGrowingLogs=warn
401 SeverityIgnoreNone=crit
402 SeverityAttributes=crit
403
404
405 ##
406 ## We have a file in IgnoreAll that might or might not be present.
407 ## Setting the severity to 'info' prevents messages about deleted/new file.
408 ##
409 # SeverityIgnoreAll=crit
410 SeverityIgnoreAll=info
411
412 ## Files : file access problems
413 # SeverityFiles=crit
414
415 ## Dirs  : directory access problems
416 # SeverityDirs=crit
417
418 ## Names : suspect (non-printable) characters in a pathname
419 # SeverityNames=crit
420
421 # Default behaviour
422 SeverityFiles=crit
423 SeverityDirs=crit
424 SeverityNames=warn
425
426
427 [Log]
428 ##
429 ## Switch on/OFF log facilities and set their threshold severity
430 ##
431 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
432 ## 'mark' is used for timestamps.
433 ##
434 ##
435 ## Use 'none' to SWITCH OFF a log facility
436 ## 
437 ## By default, everything equal to and above the threshold is logged.
438 ## The specifiers '*', '!', and '=' are interpreted as  
439 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does, 
440 ## at least on Linux). Examples:
441 ## MailSeverity=*
442 ## MailSeverity=!warn
443 ## MailSeverity==crit
444
445 ## E-mail
446 ##
447 # MailSeverity=none
448
449 ## Console
450 ##
451 # PrintSeverity=info
452
453 ## Logfile
454 ##
455 # LogSeverity=mark
456
457 ## Syslog
458 ##
459 # SyslogSeverity=none
460
461 ## Remote server (yule)
462 ##
463 # ExportSeverity=none
464
465 ## External script or program
466 ##
467 # ExternalSeverity = none
468
469 ## Logging to a database
470 ##
471 # DatabaseSeverity = none
472
473 # Default behaviour
474 MailSeverity=crit
475 PrintSeverity=none
476 LogSeverity=info
477 SyslogSeverity=alert
478 ExportSeverity=none
479
480
481
482
483
484 #####################################################
485 #
486 # Optional modules
487 #
488 #####################################################
489
490 # [SuidCheck]
491 ##
492 ## --- Check the filesystem for SUID/SGID binaries
493 ## 
494
495 ## Switch on
496 #
497 # SuidCheckActive = yes
498
499 ## Interval for check (seconds)
500 #
501 # SuidCheckInterval = 7200
502
503 ## Alternative: crontab-like schedule
504 #
505 # SuidCheckSchedule = NULL
506  
507 ## Directory to exclude 
508 #
509 # SuidCheckExclude = NULL
510
511 ## Limit on files per second (0 == no limit)
512 #
513 # SuidCheckFps = 0
514
515 ## Alternative: yield after every file
516 #
517 # SuidCheckYield = no
518
519 ## Severity of a detection
520 #
521 # SeveritySuidCheck = crit
522
523 ## Quarantine SUID/SGID files if found
524 #
525 # SuidCheckQuarantineFiles = yes
526
527 ## Method for Quarantining files:
528 #  0 - Delete or truncate the file.
529 #  1 - Remove SUID/SGID permissions from file.
530 #  2 - Move SUID/SGID file to quarantine dir.
531 #
532 # SuidCheckQuarantineMethod = 0
533
534 ## For method 1 and 3, really delete instead of truncating
535
536 # SuidCheckQuarantineDelete = yes
537
538 # [Kernel]
539 ##
540 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only) 
541 ##
542
543 ## Switch on/off
544 #
545 KernelCheckActive = True
546
547 ## Check interval (seconds); btw., the check is VERY fast
548 #
549 # KernelCheckInterval = 300
550
551 ## Severity
552 #
553 # SeverityKernel = crit
554
555
556 # [Utmp]
557 ##
558 ## --- Logging of login/logout events
559 ##
560
561 ## Switch on/off
562 #
563 LoginCheckActive = True
564
565 ## Severity for logins, multiple logins, logouts
566
567 # SeverityLogin=info
568 # SeverityLoginMulti=warn
569 # SeverityLogout=info
570
571 ## Interval for login/logout checks
572 #
573 # LoginCheckInterval = 300
574
575
576 # [Database]
577 ##
578 ## --- Logging to a relational database
579 ##
580
581 ## Database name
582 #
583 # SetDBName = samhain
584
585 ## Database table
586 #
587 # SetDBTable = log
588
589 ## Database user
590 #
591 # SetDBUser = samhain
592
593 ## Database password
594 #
595 # SetDBPassword = (default: none)
596
597 ## Database host
598 #
599 # SetDBHost = localhost
600
601 ## Log the server timestamp for received messages
602 #
603 # SetDBServerTstamp = True
604
605 ## Use a persistent connection
606 #
607 # UsePersistent = True
608
609 # [External]
610 ##
611 ## Interface to call external scripts/programs for logging
612 ##
613
614 ## The absolute path to the command
615 ## - Each invocation of this directive will end the definition of the
616 ##   preceding command, and start the definition of 
617 ##   an additional, new command
618 #
619 # OpenCommand = (no default)
620
621 ## Type (log or rv)
622 ## - log for log messages, srv for messages received by the server
623 #
624 # SetType = log
625
626 ## The command (full command line) to execute
627 #
628 # SetCommandLine = (no default)
629
630 ## The environment (KEY=value; repeat for more)
631 #
632 # SetEnviron = TZ=(your timezone)
633
634 ## The TIGER192 checksum (optional)
635 #
636 # SetChecksum = (no default)
637
638 ## User who runs the command
639 #
640 # SetCredentials = (default: samhain process uid)
641
642 ## Words not allowed in message
643 #
644 # SetFilterNot = (none)
645
646 ## Words required (ALL of them)
647 #
648 # SetFilterAnd = (none)
649
650 ## Words required (at least one)
651 #
652 # SetFilterOr = (none)
653
654 ## Deadtime between consecutive calls
655 #
656 # SetDeadtime = 0
657
658 ## Add default environment (HOME, PATH, SHELL)
659 #
660 # SetDefault = no
661
662
663 #####################################################
664 #
665 # Miscellaneous configuration options
666 #
667 #####################################################
668
669 [Misc]
670
671 ## whether to become a daemon process
672 ## (this is not honoured on database initialisation)
673 #
674 # Daemon = no
675 Daemon = yes
676
677 ## whether to test signature of files (init/check/none)
678 ## - if 'none', then we have to decide this on the command line -
679 #
680 # ChecksumTest = none
681 ChecksumTest=check
682
683 ## whether to drop linux capabilities that are not required
684 ## - will make a root process a 'mere mortal' in many respects
685 #
686 # UseCaps = yes
687
688 ## Set nice level (-19 to 19, see 'man nice'),
689 ## and I/O limit (kilobytes per second; 0 == off)
690 ## to reduce load on host.
691 #
692 # SetNiceLevel = 0
693 # SetIOLimit = 0
694
695 ## The version string to embed in file signature databases
696 #
697 # VersionString = NULL
698
699 ## Interval between time stamp messages
700 #
701 # SetLoopTime = 60
702 SetLoopTime = 600
703
704 ## Interval between file checks 
705 #
706 # SetFileCheckTime = 600
707 SetFileCheckTime = 7200
708
709 ## Alternative: crontab-like schedule
710 #
711 # FileCheckScheduleOne = NULL
712
713 ## Alternative: crontab-like schedule(2)
714 #
715 # FileCheckScheduleTwo = NULL
716
717 ## Report only once on modified fles 
718 ## Setting this to 'FALSE' will generate a report for any policy 
719 ## violation (old and new ones) each time the daemon checks the file system.
720 #
721 # ReportOnlyOnce = True
722
723 ## Report in full detail
724 #
725 # ReportFullDetail = False
726
727 ## Report file timestamps in local time rather than GMT
728 #
729 # UseLocalTime = No
730
731 ## The console device (can also be a file or named pipe)
732 ## - There are two console devices. Accordingly, you can use
733 ##   this directive a second time to set the second console device.
734 ##   If you have not defined the second device at compile time,
735 ##   and you don't want to use it, then:
736 ##   setting it to /dev/null is less effective than just leaving
737 ##   it alone (setting to /dev/null will waste time by opening
738 ##   /dev/null and writing to it)
739 #
740 # SetConsole = /dev/console
741
742 ## Activate the SysV IPC message queue
743 #
744 # MessageQueueActive = False
745
746
747 ## If false, skip reverse lookup when connecting to a host known 
748 ## by name rather than IP address (i.e. trust the DNS)
749 #
750 # SetReverseLookup = True
751
752 ## --- E-Mail ---
753
754 # Only highest-level (alert) reports will be mailed immediately,
755 # others will be queued. Here you can define, when the queue will
756 # be flushed (Note: the queue is automatically flushed after
757 # completing a file check).
758 #
759 SetMailTime = 86400
760
761 ## Maximum number of mails to queue
762 #
763 SetMailNum = 10
764
765 ## Recipient (max. 8)
766 #
767 SetMailAddress=samhain-reports@debian.org
768
769 ## Mail relay (IP address)
770 <%=
771 out=""
772 if not nodeinfo['smarthost'].empty?
773   out = '
774 SetMailRelay = localhost
775 '
776 else
777 out = '
778 SetMailRelay = master.debian.org
779 '
780 end
781 out
782 %>
783 ## Custom subject format
784 #
785 MailSubject = [Samhain at %H] %T: %S
786
787 ## --- end E-Mail ---
788
789 ## Path to the prelink executable
790 #
791 # SetPrelinkPath = /usr/sbin/prelink
792
793 ## TIGER192 checksum of the prelink executable
794 #
795 # SetPrelinkChecksum = (no default)
796
797
798 ## Path to the executable. If set, will be checksummed after startup
799 ## and before exit.
800 #
801 # SamhainPath = (no default)
802
803
804 ## The IP address of the log server
805 #
806 # SetLogServer = (default: compiled-in)
807
808 ## The IP address of the time server
809 #
810 # SetTimeServer = (default: compiled-in)
811
812 ## Trusted Users (comma delimited list of user names) 
813 #
814 # TrustedUser = (no default; this adds to the compiled-in list)
815
816 ## Path to the file signature database
817 #
818 # SetDatabasePath = (default: compiled-in)
819
820 ## Path to the log file
821 #
822 # SetLogfilePath = (default: compiled-in)
823
824 ## Path to the PID file
825 #
826 # SetLockPath = (default: compiled-in)
827
828
829 ## The digest/checksum/hash algorithm
830 #
831 # DigestAlgo = TIGER192
832
833
834 ## Custom format for message header. 
835 ## CAREFUL if you use XML logfile format.
836 ##
837 ## %S severity
838 ## %T timestamp
839 ## %C class
840 ##
841 ## %F source file
842 ## %L source line
843 #
844 # MessageHeader="%S %T "
845
846
847 ## Don't log path to config/database file on startup
848 #
849 # HideSetup = False
850
851 ## The syslog facility, if you log to syslog
852 #
853 # SyslogFacility = LOG_AUTHPRIV
854 SyslogFacility=LOG_LOCAL2
855
856 ## The message authentication method
857 ## - If you change this, you *must* change it
858 ##   on client *and* server
859 #
860 # MACType = HMAC-TIGER
861
862
863 ## everything below is ignored
864 [EOF]
865
866 #####################################################################
867 # This would be the proper syntax for parts that should only be
868 #    included for certain hosts.
869 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
870 #    result still has the proper syntax for the config file.
871 # You may have any number of @HOSTNAME/@end brackets.
872 # HOSTNAME should be the fully qualified 'official' name 
873 #    (e.g. 'nixon.watergate.com', not 'nixon'), no aliases. 
874 #    No IP number - except if samhain cannot determine the 
875 #    fully qualified hostname.
876 #
877 # @HOSTNAME
878 # file=/foo/bar
879 # @end
880 #
881 # These are two examples for conditional inclusion/exclusion
882 # of a machine based on the output from 'uname -srm'
883 # $Linux:2.*.7:i666
884 # file=/foo/bar3
885 # $end
886 #
887 # !$Linux:2.*.7:i686
888 # file=/foo/bar2
889 # $end
890 #
891 #####################################################################