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
Merged
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ AllCops:

Metrics/LineLength:
# Ruduce this... Max: 80
Max: 84
Max: 105

# Cop supports --auto-correct.
# Configuration parameters: SupportedStyles.
Expand Down
2 changes: 1 addition & 1 deletion manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
command => $authconfig_update_cmd,
unless => $authconfig_check_cmd,
}

Exec[ 'authconfig-mkhomedir' ] -> File[ 'sssd.conf' ]
}

'Debian': {
Expand Down
3 changes: 3 additions & 0 deletions spec/classes/init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
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 { is_expected.to contain_exec('authconfig-mkhomedir').that_comes_before('File[sssd.conf]') }

it { is_expected.to contain_service('sssd').with_ensure('running') }
end
Expand All @@ -31,6 +32,7 @@
it { is_expected.to contain_package('authconfig').with_ensure('present') }
it { is_expected.to contain_package('oddjob-mkhomedir') }
it { is_expected.to contain_service('oddjobd') }
it { is_expected.to contain_exec('authconfig-mkhomedir').that_comes_before('File[sssd.conf]') }

it { is_expected.to contain_service('sssd').with_ensure('running') }
it { is_expected.to contain_service('oddjobd').with_ensure('running') }
Expand All @@ -53,6 +55,7 @@
it { is_expected.to contain_package('authconfig').with_ensure('present') }
it { is_expected.to contain_package('oddjob-mkhomedir') }
it { is_expected.to contain_service('oddjobd') }
it { is_expected.to contain_exec('authconfig-mkhomedir').that_comes_before('File[sssd.conf]') }

it { is_expected.to contain_service('sssd').with_ensure('running') }
it { is_expected.to contain_service('oddjobd').with_ensure('running') }
Expand Down