-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Fix application of augeas changes on a Centos7/RHEL7 machine. #46
Conversation
…ssue voxpupuli#11 against parent
manifests/pam/redhat.pp
Outdated
], | ||
require => File["/etc/pam.d/${rule}"], | ||
notify => Service['sshd'], | ||
if ($::facts['os']['release']['major'] >= 7) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove ::
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should now be done.
Thanks for the PR! Please take a look at the failing travis tests. |
there are still some travis tests failing, please have a look. Also please check the email address used in the commits, it is not associated with your github account. |
Work vs Home email. Added work email, so should be there now. |
Thanks! |
], | ||
require => File["/etc/pam.d/${rule}"], | ||
notify => Service['sshd'], | ||
if ($facts['os']['release']['major'] >= 7) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this should be restricted to RedHat?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch. @bekarau what do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The restriction to redhat is done in pam.pp; where this module is called from:
case $::operatingsystem {
/Debian|Ubuntu/ : {
googleauthenticator::pam::debian {$name:
ensure => $ensure,
mode => $mode,
}
}
/RedHat|CentOS/ : {
googleauthenticator::pam::redhat {$name:
ensure => $ensure,
mode => $mode,
}
}
default : { fail("not supported on ${::operatingsystem}") }
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, my bad, I didn't see this was in redhat.pp
!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:) no problem
Pull Request (PR) description
Fixes the application of augeas changes on a Centos7/RHEL7 installation.
This Pull Request (PR) fixes the following issues
Fixes #11
Further comments
As I've not tested the newer augeas changes against older releases, I've put an explicit test for major release 7 or greater (assuming it won't change in the future either).