| It's a long shot, but perhaps PuppetLabs could use a bit of their commercial power/popularity and get the above RedHat ticket reopened, or create a replacement one that petitions for this to be properly fixed at the glibc level? That original bug report was closed with the answer:
That file will never be automatically reloaded. The file is not supposed to be changed after the initial configuration and if it does, better reboot and restart all relevant programs. I will not add any code which penalizes normal operations.
All this can in general be avoided by using nscd. If nscd is used only this one program needs to be restarted for the new setting to be used. If you need to use change the nsswitch.conf setting for services other than passwd, group, and hosts then this is something else. The solution then might be to add support for these other services to nscd.
So in summary, us nscd and never let programs directly use NSS services.
which may have been true/applicable/satisfactory 14 years ago in 2004, but it's now 2018. Tools of the like of puppet were barely conceived back then. Hardware is an order of magnitude more powerful now, so what sort of penalty would normal operations really under go now-a-days? As for the suggested NSCd, well, it has been pretty much entirely replaced by SSSd, but neither of these solve that the ticket was originally for. Clearly, this isn't something that just affects puppet, so for the benefit of all OSes that use glibc, it would surely be better that this is fixed properly, once and for all. I appreciate that, even if this was ever implemented by the overlords of glibc, it would take a long time to make it into released distros, but at least we'd be on the right path to a real fix, even if it means we'd still need and be relying on a hacky workaround in the meantime. |