File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
cookbooks/fb_sssd/recipes Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 7272service 'sssd' do
7373 only_if { node [ 'fb_sssd' ] [ 'enable' ] }
7474 action [ :enable , :start ]
75- subscribes :restart , 'template[/etc/nsswitch.conf]' , :immediately
75+ # nsswitch is before sssd (for good reasons), but that means on first
76+ # boot, we'll trigger on the nsswitch notification and try to restart
77+ # even when we can't. This could of course happen outside of firstboot
78+ # so if the binary isn't there at compile time, don't bother setting up
79+ # the notification. This is safe: if the binary isn't there, it can't
80+ # be running and therefore can't have an old config... it will then be
81+ # started by this resource
82+ if File . exist? ( '/usr/sbin/sssd' )
83+ subscribes :restart , 'template[/etc/nsswitch.conf]' , :immediately
84+ end
7685end
7786
7887service 'disable sssd' do
You can’t perform that action at this time.
0 commit comments