Skip to content
Snippets Groups Projects
Commit 6774b721 authored by jurgenhaas's avatar jurgenhaas
Browse files

Introduce a new env variable FLUENTD_COMPANY

parent 63bd69e4
Branches
Tags
No related merge requests found
......@@ -38,6 +38,7 @@ class CallbackModule(CallbackBase):
fluent-logger
This plugin makes use of the following environment variables:
FLUENTD_COMPANY (optional): any string to separate multiple inventories
FLUENTD_SERVER (optional): defaults to localhost
FLUENTD_PORT (optional): defaults to 24224
FLUENTD_TYPE (optional): defaults to ansible
......@@ -70,7 +71,7 @@ class CallbackModule(CallbackBase):
self.logger.addHandler(self.handler)
self.hostname = socket.gethostname()
self.session = str(uuid.uuid1())
self.company = os.getenv('ANSIBLE_COMPANY', '')
self.company = os.getenv('FLUENTD_COMPANY', '')
self.errors = 0
self.index = 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment