Skip to content
Browse files

Started migration of messages to templates (<80char rule)

  • Loading branch information...
1 parent 739ca93 commit 4a9f1b56dbcd3d83ad11ce612d17f1e56061a34b @vStone vStone committed Mar 28, 2012
View
5 manifests/listen.pp
@@ -40,15 +40,16 @@
if defined(Apache::Listen[$listen_port]) {
$do_file = false
notify {"apache-listen-allinterfaces-warning-${name}":
- message => "Already listening on all interfaces for port ${listen_port}!",
+ message => template('apache/msg/listen-allinterfaces-warning.erb'),
}
} else {
$do_file = true
}
}
default : {
- fail ("Could not determine ip and port from ${name}")
+ $failmsg = template('apache/msg/listen-fail-ip-port-fromname.erb')
+ fail ($failmsg)
}
}
View
1 templates/msg/listen-allinterfaces-warning.erb
@@ -0,0 +1 @@
+Already listening on all interfaces for port <%= listen_port %>!
View
1 templates/msg/listen-fail-ip-port-fromname.erb
@@ -0,0 +1 @@
+Could not determine ip and port from <%= name %>

0 comments on commit 4a9f1b5

Please sign in to comment.
Something went wrong with that request. Please try again.