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

Separate system config object from supervisor #794

Merged
merged 1 commit into from
Feb 9, 2016

Conversation

tagomoris
Copy link
Member

to pass system configuration to plugins

  • v0.14 feature: new Plugin API expects these configuration parameters to system config
    • plugin storage path
    • default file/directory permissions
    • many others

@@ -585,8 +576,9 @@ def change_privilege
end

def init_engine
init_opts = {:suppress_interval => @suppress_interval, :suppress_config_dump => @suppress_config_dump, :without_source => @without_source}
Fluent::Engine.init(init_opts)
# init_opts = {:suppress_interval => @suppress_interval, :suppress_config_dump => @suppress_config_dump, :without_source => @without_source}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment is needed?

…ration to plugins

* v0.14 feature: new Plugin API expects these configuration parameters to system config
  * plugin storage path
  * default file/directory permissions
  * many others
@tagomoris tagomoris force-pushed the separate-system-config branch from 467c6c6 to bd4b5f2 Compare February 9, 2016 06:52
module Fluent
require 'fluent/configurable'

module SystemConfigMixin
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Who use this module?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Plugins (or PluginSupport modules to be introduced) which need to refer system configurations.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see

@repeatedly
Copy link
Member

Looks good

tagomoris added a commit that referenced this pull request Feb 9, 2016
Separate system config object from supervisor
@tagomoris tagomoris merged commit b0bf039 into master Feb 9, 2016
@tagomoris
Copy link
Member Author

Merged.

@sonots sonots deleted the separate-system-config branch February 9, 2016 09:13
cosmo0920 pushed a commit to cosmo0920/fluentd that referenced this pull request Feb 16, 2016
Separate system config object from supervisor
repeatedly added a commit that referenced this pull request Feb 16, 2016
Back port separate system config object from supervisor(#794)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants