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
f57be8bc
Commit
f57be8bc
authored
May 27, 2013
by
Raphaël Pinson
Browse files
Add spec for postfix::satellite
parent
01994b91
Changes
3
Hide whitespace changes
Inline
Side-by-side
manifests/satellite.pp
View file @
f57be8bc
...
...
@@ -23,15 +23,11 @@
#
class
postfix::satellite
{
# If $valid_fqdn exists, use it to override $fqdn
case
$valid_fqdn
{
''
:
{
$valid_fqdn
=
$::fqdn
}
default
:
{
$fqdn
=
$valid_fqdn
}
}
validate_re
(
$postfix::myorigin
,
'^\S+$'
)
include
postfix::mta
include
::
postfix::mta
postfix::virtual
{
"@
${
valid_fqd
n}
"
:
postfix::virtual
{
"@
${
postfix::myorigi
n}
"
:
ensure
=>
present
,
destination
=>
'root'
,
}
...
...
spec/classes/postfix_satellite_spec.rb
0 → 100644
View file @
f57be8bc
require
'spec_helper'
describe
'postfix::satellite'
do
let
(
:facts
)
{
{
:osfamily
=>
'Debian'
,
:needs_postfix_class
=>
true
,
}
}
it
{
should
include_class
(
'postfix::mta'
)
}
it
{
should
contain_postfix__virtual
(
'@foo.example.com'
).
with
(
:ensure
=>
'present'
,
:destination
=>
'root'
)
}
end
spec/fixtures/manifests/site.pp
View file @
f57be8bc
node
default
{
include
::augeas
include
::augeas
if
$::needs_postfix_class
{
include
::postfix
}
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