Skip to content

Commit f7eb19f

Browse files
committed
Move sssd service definition to avoid duplication
The ipa_manage_sssd block already existed and now the service lives together with the config file management.
1 parent 25262ba commit f7eb19f

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

manifests/config.pp

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -191,14 +191,6 @@
191191
}
192192
}
193193

194-
if $foreman::ipa_manage_sssd {
195-
service { 'sssd':
196-
ensure => running,
197-
enable => true,
198-
require => Package['sssd-dbus'],
199-
}
200-
}
201-
202194
file { "/etc/pam.d/${foreman::pam_service}":
203195
ensure => file,
204196
owner => root,
@@ -246,6 +238,12 @@
246238
changes => $sssd_changes,
247239
notify => Service['sssd'],
248240
}
241+
242+
service { 'sssd':
243+
ensure => running,
244+
enable => true,
245+
require => Package['sssd-dbus'],
246+
}
249247
}
250248

251249
foreman::settings_fragment { 'authorize_login_delegation.yaml':

templates/apache_ipa_authentication.epp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Stdlib::Absolutepath $keytab,
44
Boolean $gssapi_local_name,
55
Boolean $ipa_authentication_api,
6-
-%>
6+
|-%>
77

88
<Location /users/login>
99
InterceptFormPAMService <%= $pam_service %>
@@ -42,7 +42,7 @@
4242

4343
<LocationMatch ^/api(/v2)?/users/extlogin/?$>
4444
SSLRequireSSL
45-
<% if $ipa_authentication_api -%>
45+
<% if $ipa_authentication_api { -%>
4646
<If "%{HTTP:Authorization} =~ /^Basic/">
4747
AuthType Basic
4848
AuthName "PAM Authentication"
@@ -56,12 +56,12 @@
5656
GssapiSSLonly On
5757
GssapiLocalName <%= apache::bool2httpd($gssapi_local_name) %>
5858
</Else>
59-
<% else -%>
59+
<% } else { -%>
6060
AuthType Basic
6161
AuthName "PAM Authentication"
6262
AuthBasicProvider PAM
6363
AuthPAMService <%= $pam_service %>
64-
<% end -%>
64+
<% } -%>
6565
require pam-account <%= $pam_service %>
6666
ErrorDocument 401 '{ "error": "External authentication did not pass." }'
6767
# The following is needed as a workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1020087

0 commit comments

Comments
 (0)