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
44b4a00b
Commit
44b4a00b
authored
Aug 15, 2019
by
zeromind
Committed by
Raphaël Pinson
Aug 15, 2019
Browse files
Add RedHat 8 support (#257)
parent
6e6c6c96
Changes
3
Hide whitespace changes
Inline
Side-by-side
manifests/params.pp
View file @
44b4a00b
...
...
@@ -4,18 +4,18 @@ class postfix::params {
$aliasesseltype
=
$::operatingsystemmajrelease
?
{
'4'
=>
'etc_t'
,
/5/
=>
'postfix_etc_t'
,
/6|7/
=>
'etc_aliases_t'
,
/6|7
|8
/
=>
'etc_aliases_t'
,
default
=>
undef
,
}
$seltype
=
$::operatingsystemmajrelease
?
{
'4'
=>
'etc_t'
,
/5|6|7/
=>
'postfix_etc_t'
,
/5|6|7
|8
/
=>
'postfix_etc_t'
,
default
=>
undef
,
}
$restart_cmd
=
$::operatingsystemmajrelease
?
{
'7'
=>
'/bin/systemctl reload postfix'
,
/7|8/
=>
'/bin/systemctl reload postfix'
,
default
=>
'/etc/init.d/postfix reload'
,
}
...
...
metadata.json
View file @
44b4a00b
...
...
@@ -50,7 +50,8 @@
"operatingsystem"
:
"RedHat"
,
"operatingsystemrelease"
:
[
"6"
,
"7"
"7"
,
"8"
]
},
{
...
...
spec/classes/postfix_spec.rb
View file @
44b4a00b
...
...
@@ -45,6 +45,15 @@ describe 'postfix' do
it
{
is_expected
.
to
contain_postfix__config
(
'mailq_path'
)
}
case
facts
[
:operatingsystemmajrelease
]
when
'8'
it
{
is_expected
.
to
contain_file
(
'/etc/aliases'
).
with_seltype
(
'etc_aliases_t'
).
with_content
(
"# file managed by puppet
\n
"
)
}
it
{
is_expected
.
to
contain_service
(
'postfix'
).
with
(
:ensure
=>
'running'
,
:enable
=>
'true'
,
:hasstatus
=>
'true'
,
:restart
=>
'/bin/systemctl reload postfix'
)
}
when
'7'
it
{
is_expected
.
to
contain_file
(
'/etc/aliases'
).
with_seltype
(
'etc_aliases_t'
).
with_content
(
"# file managed by puppet
\n
"
)
}
it
{
...
...
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