Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of #include and #includedir directives #1

Open
actionjack opened this issue Apr 6, 2013 · 0 comments
Open

Use of #include and #includedir directives #1

actionjack opened this issue Apr 6, 2013 · 0 comments

Comments

@actionjack
Copy link
Member

The following feature request was made for ngIRCd:

https://arthur.barton.de/bugzilla/show_bug.cgi?id=157

Feature Request: 
Add include directory of configuration fragments for ngIRCd configuration.

As an ngIRCd administrator
I would like to be able to use an option like "IncludeDir /etc/ngircd/conf.d"
To include fragments of the ngIRCd configuration (e.g. Channels) 
That are all automatically read into the running configuration by the ngIRCd
daemon at init or reload.

e.g.
====/etc/ngircd.conf====
[Options]
        IncludeDir /etc/ngircd/conf.d

====endOfFile====

====/etc/ngircd/conf.d/channel-#chatroom.conf====
[Channel]
    Name = #chatroom
  Topic = a chatroom
  Modes = tnk
    Key = letschat
    MaxUsers = 23

====endOfFile====

====/etc/ngircd/conf.d/channel-#chatops.conf====
[Channel]
    Name = #chatops
  Topic = a room for chatops
  Modes = tnk
    Key = chatops
    MaxUsers = 10

====endOfFile====    

This will autoload in the following files and create the persistent channels
defined in them:
/etc/ngircd/conf.d/channel-#chatroom.conf
/etc/ngircd/conf.d/channel-#chatops.conf

Reason:
I am working on a puppet module for ngircd
(https://github.com/uncommonsense/puppet-ngircd) and it is easier for
configuration management tools (like puppet, chef or cfengine) to handle
configuration snippets/fragment as separate files than as part of one
monolithic file.
At the moment the original code just clobbers a set of file snippets together
but I feel it would be more elegant to use #include and #includedir directives
like the newer versions of sudo.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant