Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
suitpuppet
su_apache
Commits
118164d7
Commit
118164d7
authored
Dec 02, 2021
by
Adam Lewenberg
Browse files
handle Ubuntu better
parent
f07d6117
Changes
1
Hide whitespace changes
Inline
Side-by-side
manifests/debian.pp
View file @
118164d7
...
...
@@ -51,8 +51,14 @@ class su_apache::debian (
$debian_major_version
=
$facts
[
'os'
][
'distro'
][
'release'
][
'major'
]
if
(
Integer
(
$debian_major_version
)
<
9
)
{
fail
(
"This class only works with Debian stretch and later"
)
if
(
$facts
[
'os'
][
'name'
]
==
'Debian'
)
{
if
(
Integer
(
$debian_major_version
)
<
9
)
{
fail
(
"This class only works with Debian stretch and later"
)
}
}
elsif
(
$facts
[
'os'
][
'name'
]
==
'Ubuntu'
)
{
if
(
Float
(
$debian_major_version
)
<
16.0
)
{
fail
(
"This class only works with Ubuntu xenial and later"
)
}
}
# Set the SSL/TLS protocols and ciphers.
...
...
Write
Preview
Markdown
is supported
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