What’s the Best Way to Manage Config Files in .d Directories for Linux?

0
11
Asked By TechGuru87 On

As a Windows admin moving into Linux, I'm trying to streamline my configuration process for servers, particularly with Ansible. I often wonder whether I should delete any existing configuration files in directories like /etc/ssh/sshd_conf.d/ or if I should simply create my own files with a higher precedence, like naming them zz-filename.conf. What's the best practice here?

1 Answer

Answered By ConfigWhisperer On

It's generally a good idea to lower precedence files and let the default settings sit. This way, you preserve the distro's default configurations unless you really need to customize something from scratch, which isn't usually necessary. Plus, it simplifies automated configuration management!

ScriptMaster101 -

Exactly! Keeping your main config file cleaner and using separate files for each host in a conf.d directory is a breeze. It really makes management easier.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.