]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/ferm/templates/me.conf.erb
nagios also wants to talk smtp
[dsa-puppet.git] / modules / ferm / templates / me.conf.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 @def $SSH_SOURCES = (<%=
8
9 sshallowed = []
10
11 case hostname
12   when 'logtest01', 'geo1', 'geo2', 'geo3', 'bartok', 'beethoven' then sshallowed << [ '$DSA_IPS', '$HOST_NAGIOS_V4', '$HOST_DB_V4' ]
13 end
14
15 case hostname
16   when 'bartok', 'beethoven' then sshallowed << '$HOST_DEBIAN_V4'
17 end
18
19 if sshallowed.length == 0
20   sshallowed = [ '0.0.0.0/0' ]
21 end
22
23 sshallowed.join(' ')
24 %>);
25
26 @def $SSH_V6_SOURCES = (<%=
27
28 sshallowed = []
29
30 case hostname
31   when 'logtest01', 'geo1', 'geo2', 'geo3', 'bartok', 'beethoven' then sshallowed << [ '$DSA_V6_IPS', '$HOST_NAGIOS_V6', '$HOST_DB_V6' ]
32 end
33
34 case hostname
35   when 'bartok', 'beethoven' then sshallowed << '$HOST_DEBIAN_V6'
36 end
37
38 if sshallowed.length == 0
39   sshallowed = [ '::' ]
40 end
41
42 sshallowed.join(' ')
43 %>);
44
45 def $SMTP_SOURCES =(<%=
46
47 smtpallowed = []
48
49 if not nodeinfo['smarthost'].empty?
50   smtpallowed = [ '$HOST_MAILRELAY_V4', '$HOST_NAGIOS_V4' ]
51 end
52
53 if smtpallowed.length == 0
54   smtpallowed = [ '0.0.0.0/0' ]
55 end
56
57 smtpallowed.join(' ')
58 %>);
59
60 def $SMTP_V6_SOURCES =(<%=
61
62 smtpallowed = []
63
64 if not nodeinfo['smarthost'].empty?
65   smtpallowed = [ '$HOST_MAILRELAY_V6', '$HOST_NAGIOS_V6' ]
66 end
67
68 if smtpallowed.length == 0
69   smtpallowed = [ '::' ]
70 end
71
72 smtpallowed.join(' ')
73 %>);