fixing up loose ends with exim4 configuration

This commit is contained in:
Kohsuke Kawaguchi 2013-11-17 08:00:05 -08:00
parent e9477c1320
commit 4ba85c9477
5 changed files with 21 additions and 6 deletions

View File

@ -3,14 +3,15 @@
#
# 'name' must match the domain key selector and the portion of the key file
define exim4_config::dkim {
include exim4_config::functions;
define exim4-config::dkim {
include exim4-config::functions
file { "/etc/exim4/conf.d/main/000-dkim":
owner => root,
group => root,
mode => '0644',
content => template("exim4-config/dkim.erb"),
require => Package['exim4'],
notify => Exec['reload-exim4']
}
}

View File

@ -1,8 +1,9 @@
class exim4_config::functions {
class exim4-config::functions {
include exim4-config
exec {
"reload-exim4" :
refreshonly => true,
command => "update-exim4.conf; /etc/init.d/exim4 reload",
command => "/bin/sh -c 'update-exim4.conf && /etc/init.d/exim4 reload'",
require => Package["exim4"];
}
}

View File

@ -0,0 +1,6 @@
class exim4-config {
package {
"exim4" :
ensure => installed;
}
}

View File

@ -3,8 +3,8 @@
#
#
class exim4_config::selfrouting {
include exim4_config::functions;
class exim4-config::selfrouting {
include exim4-config::functions
file { "/etc/exim4/update-exim4.conf.conf":
owner => root,

View File

@ -9,6 +9,13 @@ node /^lucid32$/ {
# - add 'wiki2.jenkins-ci.org' to /etc/hosts as 127.0.0.1
# include confluence
include exim4-config::selfrouting
exim4-config::dkim {
'cucumber':
;
}
firewall {
'100 accept inbound HTTP requests' :
proto => 'tcp',