jcam / authconfig

Chef Authconfig Cookbook
1 stars 16 forks source link

sssd service reload not supported on Centos 7 #43

Open carguel opened 7 years ago

carguel commented 7 years ago

The following error occurs with release 2.0.1:


           - execute /bin/cat /etc/authconfig/arguments | /usr/bin/xargs /usr/sbin/authconfig --updateall
       [2017-03-25T17:52:22+00:00] INFO: template[/etc/authconfig/arguments] sending reload action to service[sssd] (immediate)
         * service[sssd] action reload[2017-03-25T17:52:22+00:00] INFO: Processing service[sssd] action reload (authconfig::default line 170)

           ================================================================================
           Error executing action `reload` on resource 'service[sssd]'
           ================================================================================

           Mixlib::ShellOut::ShellCommandFailed
           ------------------------------------
           Expected process to exit with [0], but received '3'
           ---- Begin output of /bin/systemctl --system reload sssd ----
           STDOUT:
           STDERR: Failed to reload sssd.service: Job type reload is not applicable for unit sssd.service.
           ---- End output of /bin/systemctl --system reload sssd ----
           Ran /bin/systemctl --system reload sssd returned 3

           Resource Declaration:
           ---------------------
           # In /tmp/kitchen/cache/cookbooks/authconfig/recipes/default.rb

           170: service "sssd" do
           171:   supports :status => true, :restart => true, :reload => true
           172:   # Avoid starting or restarting sssd if disabled,
           173:   # especially when kerberos is enabled, and ldap not
           174:   restart_command "/sbin/chkconfig sssd --list | grep -v :on || /sbin/service sssd restart"
           175:   start_command "/sbin/chkconfig sssd --list | grep -v :on || /sbin/service sssd start"
           176:   action :nothing
           177: end
           178:
tmanda commented 6 years ago

Hi @carguel Did you get this issue resolved?