-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add support placeholder for include directive #360
Comments
This feature seems to be realized by DSL configuration. P.S. |
I agree to your opinion. I have tried with this dsl. but it won't work because include method does not defined in lib/fluent/config/dsl.rb
|
I'm not sure. @tagomoris Do you hit a problem to support |
It's just because lack of idea/time. External dsl configuration file can be included by |
Thank you for your comment, @repeatedly, @tagomoris . |
@tagomoris |
It seems better to emulate There may be 2 options:
@include.("/path/to/configuration")
@sys.include "/path/to/configuration" Latter one is better for the case which configuration files needs more @ keywords. Do you have any ideas about the number of keywords? @repeatedly |
Another idea, source { |s|
s.include "/path/to/configuration"
} How about this? It reduces reserved variable. |
@repeatedly How is it implemented on ROOT element? |
@tagomoris Ah, I forgot this case. Hmm... |
mod instance_eval 2nd args
[#360] Add include support for Ruby DSL
Configuration DSL now supports |
[#360] Add include support for Ruby DSL
Hi @repeatedly
How about to support hostname or short hostname placeholder in include directive?
This feature would bring us more flexible configuration management!
specification
use case
It is a way to switch behavior even though these are same configuration.
sample configuration of use case 1
OR
sample configuration of use case 2
OR
Thanks.
The text was updated successfully, but these errors were encountered: