Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for Debian #131

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
}
}
'Debian': {
$default_su_user = versioncmp($facts['operatingsystemmajrelease'], '14.00') ? {
1 => 'root',
$default_su_user = $facts['operatingsystem'] ? {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just as a note in case somebody checks this in the future: This change is fine because we do not support Ubuntu older than 14.04 (versioncmp() used 14.00, not 14.04)

'Ubuntu' => 'root',
default => undef,
}
$default_su_group = versioncmp($facts['operatingsystemmajrelease'], '14.00') ? {
1 => 'syslog',
$default_su_group = $facts['operatingsystem'] ? {
'Ubuntu' => 'syslog',
default => undef
}
$conf_params = {
Expand Down
12 changes: 11 additions & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@
"7"
]
},
{
"operatingsystem": "Debian",
"operatingsystemrelease": [
"7",
"8",
"9",
"buster/sid"
]
},
{
"operatingsystem": "Gentoo",
"operatingsystemrelease": [
Expand Down Expand Up @@ -61,7 +70,8 @@
"operatingsystem": "Ubuntu",
"operatingsystemrelease": [
"14.04",
"16.04"
"16.04",
"18.04"
]
}
]
Expand Down