Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Puppet Camptocamp Postfix
Commits
5d2a8d50
Commit
5d2a8d50
authored
Mar 25, 2015
by
Raphaël Pinson
Browse files
Quality the postmap command in postfix::hash
Fix #75 and #85
parent
a0958dcf
Changes
3
Hide whitespace changes
Inline
Side-by-side
manifests/hash.pp
View file @
5d2a8d50
...
...
@@ -66,6 +66,7 @@ define postfix::hash (
exec
{
"generate
${name}
.db"
:
command
=>
"postmap
${name}
"
,
path
=>
$::path
,
#creates => "${name}.db", # this prevents postmap from being run !
subscribe
=>
File
[
$name
],
refreshonly
=>
true
,
...
...
spec/classes/postfix_mta_spec.rb
View file @
5d2a8d50
...
...
@@ -4,6 +4,7 @@ describe 'postfix::mta' do
let
(
:facts
)
{
{
:lsbdistcodename
=>
'wheezy'
,
:osfamily
=>
'Debian'
,
:path
=>
'/foo/bar'
,
}
}
let
:pre_condition
do
"class { 'postfix':
...
...
spec/defines/postfix_hash_spec.rb
View file @
5d2a8d50
...
...
@@ -5,6 +5,7 @@ describe 'postfix::hash' do
let
(
:facts
)
{
{
:lsbdistcodename
=>
'wheezy'
,
:osfamily
=>
'Debian'
,
:path
=>
'/foo/bar'
,
}
}
let
:pre_condition
do
"class { '::postfix': }"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment