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
96d165db
Commit
96d165db
authored
May 20, 2013
by
Raphaël Pinson
Browse files
Fix quotes in /etc/aliases
parent
cd0090f0
Changes
2
Hide whitespace changes
Inline
Side-by-side
manifests/files.pp
View file @
96d165db
...
...
@@ -10,7 +10,7 @@ class postfix::files {
# Aliases
file
{
'/etc/aliases'
:
ensure
=>
present
,
content
=>
'
# file managed by puppet\n
'
,
content
=>
"
# file managed by puppet
\n
"
,
replace
=>
false
,
seltype
=>
$postfix::params::seltype
,
notify
=>
Exec
[
'newaliases'
],
...
...
spec/classes/postfix_spec.rb
View file @
96d165db
...
...
@@ -5,17 +5,25 @@ describe 'postfix' do
let
(
:facts
)
{
{
:operatingsystem
=>
'Debian'
,
:osfamily
=>
'Debian'
,
:fqdn
=>
'fqdn.example.com'
,
}
}
it
{
should
contain_package
(
'postfix'
)
}
it
{
should
contain_package
(
'mailx'
)
}
it
{
should
contain_file
(
'/etc/mailname'
).
with_content
(
"fqdn.example.com
\n
"
)
}
it
{
should
contain_file
(
'/etc/aliases'
).
with_content
(
"# file managed by puppet
\n
"
)
}
end
context
'when on RedHat'
do
let
(
:facts
)
{
{
:operatingsystem
=>
'RedHat'
,
:osfamily
=>
'RedHat'
,
:fqdn
=>
'fqdn.example.com'
,
}
}
it
{
should
contain_package
(
'postfix'
)
}
it
{
should
contain_package
(
'mailx'
)
}
it
{
should
contain_file
(
'/etc/mailname'
).
with_content
(
"fqdn.example.com
\n
"
)
}
it
{
should
contain_file
(
'/etc/aliases'
).
with_content
(
"# file managed by puppet
\n
"
)
}
end
end
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