mbox series

[0/3,V2] Enable config.d directory to be processed.

Message ID 20201105145634.98281-1-steved@redhat.com (mailing list archive)
Headers show
Series Enable config.d directory to be processed. | expand

Message

Steve Dickson Nov. 5, 2020, 2:56 p.m. UTC
Here is the second attempt to use conf.d directories
to set configuration variables. 

When a conf.d directory exists and files with the
".conf" extension exist they will be used to set
configuration variables. 

Files not using that extension or files beginning 
with a "." (ex .nfs.conf) will be ignored. 

The conf.d files will take priority over the main 
config files. Meaning a variable set in both the
main config and the conf.d file, the conf.d file
will have priority over the variable in the main config.

The ordering of when the conf.d are processed
can be set by alphabetical naming convention.
Prefixing file name with a 001-nfs.conf, 
002-nfs.conf will control when the config is 
process. Note the last config file process
with have the highest priority.

Steve Dickson (3):
  conffile: process config.d directory config files.
  conffile: Only process files in the config.d dirs that end with ".conf"
  manpage: Update nfs.conf and nfsmount.conf manpages

 support/nfs/conffile.c        | 139 +++++++++++++++++++++++++++++++++-
 systemd/nfs.conf.man          |   8 ++
 utils/mount/nfsmount.conf.man |   7 ++
 3 files changed, 151 insertions(+), 3 deletions(-)

Comments

Steve Dickson Nov. 10, 2020, 7:41 p.m. UTC | #1
On 11/5/20 9:56 AM, Steve Dickson wrote:
> Here is the second attempt to use conf.d directories
> to set configuration variables. 
> 
> When a conf.d directory exists and files with the
> ".conf" extension exist they will be used to set
> configuration variables. 
> 
> Files not using that extension or files beginning 
> with a "." (ex .nfs.conf) will be ignored. 
> 
> The conf.d files will take priority over the main 
> config files. Meaning a variable set in both the
> main config and the conf.d file, the conf.d file
> will have priority over the variable in the main config.
> 
> The ordering of when the conf.d are processed
> can be set by alphabetical naming convention.
> Prefixing file name with a 001-nfs.conf, 
> 002-nfs.conf will control when the config is 
> process. Note the last config file process
> with have the highest priority.
> 
> Steve Dickson (3):
>   conffile: process config.d directory config files.
>   conffile: Only process files in the config.d dirs that end with ".conf"
>   manpage: Update nfs.conf and nfsmount.conf manpages
Committed... (tag: nfs-utils-2-5-3-rc1)

steved.
> 
>  support/nfs/conffile.c        | 139 +++++++++++++++++++++++++++++++++-
>  systemd/nfs.conf.man          |   8 ++
>  utils/mount/nfsmount.conf.man |   7 ++
>  3 files changed, 151 insertions(+), 3 deletions(-)
>