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