Skip to content
GitLab
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
8bc88588
Commit
8bc88588
authored
May 22, 2017
by
Jeff Adams
Committed by
Raphaël Pinson
May 22, 2017
Browse files
Add inet_protocol param. (#172)
parent
788d8764
Changes
3
Hide whitespace changes
Inline
Side-by-side
manifests/files.pp
View file @
8bc88588
...
...
@@ -3,6 +3,7 @@ class postfix::files {
$alias_maps
=
$postfix::all_alias_maps
$inet_interfaces
=
$postfix::inet_interfaces
$inet_protocols
=
$postfix::inet_protocols
$mail_user
=
$postfix::mail_user
$manage_conffiles
=
$postfix::manage_conffiles
$maincf_source
=
$postfix::maincf_source
...
...
@@ -84,6 +85,7 @@ class postfix::files {
::
postfix::config
{
'alias_maps'
:
value
=>
$alias_maps
;
'inet_interfaces'
:
value
=>
$inet_interfaces
;
'inet_protocols'
:
value
=>
$inet_protocols
;
'myorigin'
:
value
=>
$myorigin
;
}
...
...
manifests/init.pp
View file @
8bc88588
...
...
@@ -10,6 +10,8 @@
#
#
[*
inet_interfaces
*]
-
(
string
)
#
#
[*
inet_protocols
*]
-
(
string
)
#
#
[*
ldap
*]
-
(
boolean
)
Whether
to
use
LDAP
#
#
[*
ldap_base
*]
-
(
string
)
...
...
@@ -74,6 +76,7 @@
class
postfix
(
String
$a
lias_maps
=
'hash:/etc/aliases'
,
String
$
inet_interfaces
=
'all'
,
String
$
inet_protocols
=
'all'
,
Boolean
$
ldap
=
false
,
Optional
[
String
]
$
ldap_base
=
undef
,
Optional
[
String
]
$
ldap_host
=
undef
,
...
...
spec/classes/postfix_spec.rb
View file @
8bc88588
...
...
@@ -18,6 +18,7 @@ describe 'postfix' do
it
{
is_expected
.
to
contain_postfix__config
(
'myorigin'
).
with_value
(
'foo.example.com'
)
}
it
{
is_expected
.
to
contain_postfix__config
(
'alias_maps'
).
with_value
(
'hash:/etc/aliases'
)
}
it
{
is_expected
.
to
contain_postfix__config
(
'inet_interfaces'
).
with_value
(
'all'
)
}
it
{
is_expected
.
to
contain_postfix__config
(
'inet_protocols'
).
with_value
(
'all'
)
}
it
{
is_expected
.
to
contain_mailalias
(
'root'
).
with_recipient
(
'nobody'
)
}
case
facts
[
:osfamily
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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