Add logentries reporting to the ephemeral builders.
This commit is contained in:
parent
384d6083c4
commit
6eead7c860
2 changed files with 11 additions and 0 deletions
|
@ -69,6 +69,7 @@ class BuilderExecutor(object):
|
|||
manager_hostname=manager_hostname,
|
||||
coreos_channel=coreos_channel,
|
||||
worker_tag=self.executor_config['WORKER_TAG'],
|
||||
logentries_token=self.executor_config.get('LOGENTRIES_TOKEN', None),
|
||||
)
|
||||
|
||||
|
||||
|
|
|
@ -12,6 +12,9 @@ write_files:
|
|||
REALM={{ realm }}
|
||||
TOKEN={{ token }}
|
||||
SERVER=wss://{{ manager_hostname }}
|
||||
{% if logentries_token -%}
|
||||
LOGENTRIES_TOKEN={{ logentries_token }}
|
||||
{%- endif %}
|
||||
|
||||
coreos:
|
||||
update:
|
||||
|
@ -29,3 +32,10 @@ coreos:
|
|||
flattened=True,
|
||||
restart_policy='no'
|
||||
) | indent(4) }}
|
||||
{% if logentries_token -%}
|
||||
{{ dockersystemd('builder-logs',
|
||||
'quay.io/kelseyhightower/journal-2-logentries',
|
||||
extra_args='--env-file /root/overrides.list -v /run/journald.sock:/run/journald.sock',
|
||||
after_units=['quay-builder']
|
||||
) | indent(4) }}
|
||||
{%- endif %}
|
||||
|
|
Reference in a new issue