Skip to content
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

Merged
merged 11 commits into from
Jan 13, 2016

Conversation

ndelic0
Copy link
Contributor

@ndelic0 ndelic0 commented Jan 13, 2016

No description provided.

@edestecd
Copy link
Collaborator

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...

@ndelic0
Copy link
Contributor Author

ndelic0 commented Jan 13, 2016

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]')
Copy link
Collaborator

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

@edestecd
Copy link
Collaborator

If you want to bump the line length requirement just a bit, I wouldn't be opposed:
Its set here:
https://github.com/sgnl05/sgnl05-sssd/blob/master/.rubocop.yml#L26

I often bump it to 100

@edestecd
Copy link
Collaborator

@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.
@ndelic0
Copy link
Contributor Author

ndelic0 commented Jan 13, 2016

Done. Had to bump the Line Length to 105. Please review.

@edestecd
Copy link
Collaborator

Looks good

edestecd added a commit that referenced this pull request Jan 13, 2016
ensuring sssd.conf consistency during first Puppet run
@edestecd edestecd merged commit b4facca into sgnl05:master Jan 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants