Skip to content

Commit

Permalink
Ubuntu 12.04 has 'sssd' not 'sssd-common'
Browse files Browse the repository at this point in the history
  • Loading branch information
vir-dis committed Jun 23, 2016
1 parent e37421a commit b5dea2c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
4 changes: 3 additions & 1 deletion manifests/client.pp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@

if $ipa::client::sssd {
Ipa::Clientinstall<||> -> Service['sssd']
realize Package['sssd-common']
if ($::operatingsystem == 'Ubuntu' and $::lsbmajdistrelease != '12.04') {
realize Package['sssd-common']
}
realize Service['sssd']
}

Expand Down
11 changes: 8 additions & 3 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,19 @@
}

if $ipa::sssd {
@package { 'sssd-common':
ensure => installed
if ($::operatingsystem == 'Ubuntu' and $::lsbmajdistrelease == '12.04') {
$sssd_package='sssd'
} else {
$sssd_package='sssd-common'
}

@package { $sssd_package:
ensure => present
}
@service { 'sssd':
ensure => 'running',
enable => true,
require => Package['sssd-common']
require => Package[$sssd_package],
}
}

Expand Down

0 comments on commit b5dea2c

Please sign in to comment.