-
Notifications
You must be signed in to change notification settings - Fork 82
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
ensuring sssd.conf consistency during first Puppet run #11
Conversation
Interesting, I didn't think of authconfig modifying the config file. That makes sense though. Can you add a line to the spec test that makes sure this order happens in the RedHat blocks... |
All check finally passed! |
@@ -11,6 +11,9 @@ | |||
it { is_expected.to contain_package('authconfig').with_ensure('latest') } | |||
it { is_expected.not_to contain_package('oddjob-mkhomedir') } | |||
it { is_expected.not_to contain_service('oddjobd') } | |||
it 'should pass' do | |||
contain_exec('authconfig-mkhomedir').that_comes_before('File[sssd.conf]') |
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.
I think you need a is_expected.to
here:
it 'should pass' do
is_expected.to contain_exec('authconfig-mkhomedir').that_comes_before('File[sssd.conf]')
end
If you want to bump the line length requirement just a bit, I wouldn't be opposed: I often bump it to 100 |
@curly8 can you add the same line to the RedHat 7 block also? |
Apparently - there is a limit on the length of the line that's why all this mess.
Done. Had to bump the Line Length to 105. Please review. |
Looks good |
ensuring sssd.conf consistency during first Puppet run
No description provided.