sasl: Added Ubuntu support to sasl::saslauthd.
This commit is contained in:
parent
11cd7e0d56
commit
012f12ef80
1 changed files with 25 additions and 0 deletions
|
@ -59,6 +59,13 @@ class sasl::saslauthd {
|
||||||
start => "/usr/local/sbin/saslauthd -a ldap",
|
start => "/usr/local/sbin/saslauthd -a ldap",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
"ubuntu": {
|
||||||
|
augeas { "set-saslauthd-mech":
|
||||||
|
context => "/files/etc/default/saslauthd",
|
||||||
|
changes => "set MECHANISMS ldap",
|
||||||
|
notify => Service["saslauthd"],
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
file { "/etc/saslauthd.conf":
|
file { "/etc/saslauthd.conf":
|
||||||
|
@ -87,6 +94,13 @@ class sasl::saslauthd {
|
||||||
start => "/usr/local/sbin/saslauthd -a kerberos5",
|
start => "/usr/local/sbin/saslauthd -a kerberos5",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
"ubuntu": {
|
||||||
|
augeas { "set-saslauthd-mech":
|
||||||
|
context => "/files/etc/default/saslauthd",
|
||||||
|
changes => "set MECHANISMS kerberos5",
|
||||||
|
notify => Service["saslauthd"],
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
|
@ -94,6 +108,14 @@ class sasl::saslauthd {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if $::operatingsystem == "Ubuntu" {
|
||||||
|
augeas { "enable-saslaudh":
|
||||||
|
context => "/files/etc/default/saslauthd",
|
||||||
|
changes => "set START yes",
|
||||||
|
before => Service["saslauthd"],
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
service { "saslauthd":
|
service { "saslauthd":
|
||||||
ensure => running,
|
ensure => running,
|
||||||
enable => true,
|
enable => true,
|
||||||
|
@ -149,6 +171,9 @@ define sasl::saslauthd::service($content=undef) {
|
||||||
"openbsd": {
|
"openbsd": {
|
||||||
$libdir = "/usr/local/lib/sasl2"
|
$libdir = "/usr/local/lib/sasl2"
|
||||||
}
|
}
|
||||||
|
"ubuntu": {
|
||||||
|
$libdir = "/usr/lib/sasl2"
|
||||||
|
}
|
||||||
default: {
|
default: {
|
||||||
fail("sasl not supported on ${::operatingsystem}")
|
fail("sasl not supported on ${::operatingsystem}")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue