Skip to content
Snippets Groups Projects
Verified Commit 0abb52cf authored by Adam Lewenberg's avatar Adam Lewenberg
Browse files

fix typo in lsbmajdistrelease fact name

parent 5023e139
No related branches found
No related tags found
No related merge requests found
...@@ -51,10 +51,10 @@ class base::ipmi ( ...@@ -51,10 +51,10 @@ class base::ipmi (
# default. But, if we are re-enabling we need to recover a file that # default. But, if we are re-enabling we need to recover a file that
# we deleted. We then have to trigger systemd to load modules. # we deleted. We then have to trigger systemd to load modules.
# #
# Note: we add 0 to $::lsdbmajdistrelease to make the numerical # Note: we add 0 to $::lsbmajdistrelease to make the numerical
# comparison work (this way, the code works in both Puppet 3 and # comparison work (this way, the code works in both Puppet 3 and
# Puppet 4). # Puppet 4).
if (($::operatingsystem == 'Debian') and (0 + $::lsdbmajdistrelease >= 8)) { if (($::operatingsystem == 'Debian') and (0 + $::lsbmajdistrelease >= 8)) {
exec { 'Re-create /usr/lib/modules-load.d/ipmievd.conf': exec { 'Re-create /usr/lib/modules-load.d/ipmievd.conf':
command => '/usr/bin/apt-get install --reinstall ipmitool', command => '/usr/bin/apt-get install --reinstall ipmitool',
creates => '/usr/lib/modules-load.d/ipmievd.conf', creates => '/usr/lib/modules-load.d/ipmievd.conf',
......
...@@ -7,7 +7,7 @@ class base::pam::debian { ...@@ -7,7 +7,7 @@ class base::pam::debian {
package { 'libpam-afs-session': ensure => present } package { 'libpam-afs-session': ensure => present }
# Starting with Debian jessie, pam-auth-update manages the common PAM files. # Starting with Debian jessie, pam-auth-update manages the common PAM files.
if ($::lsdbmajdistrelease < 8) { if ($::lsbmajdistrelease < 8) {
file { file {
'/etc/pam.d/common-auth': '/etc/pam.d/common-auth':
source => 'puppet:///modules/base/pam/etc/pam.d/common-auth', source => 'puppet:///modules/base/pam/etc/pam.d/common-auth',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment