Commit 5dc5dc78 by John Jarvis

adds hostname to the logwatch for edp machines

parent 9ed225f3
......@@ -3,4 +3,7 @@ start on runlevel [2345]
stop on runlevel [016]
respawn
chdir {{ newrelic_logwatch_dir }}
pre-start script
sed -i "s/HOSTNAME/$(hostname)/" {{ newrelic_logwatch_dir }}/config/newrelic_plugin.yml
end script
exec ruby newrelic_logwatcher_agent.rb
{% if SANDBOX_USERNAME is defined %}
{% set server_name = SANDBOX_USERNAME %}
{% else %}
{% set server_name = COMMON_ENVIRONMENT|default('unknown-env') + '-' + COMMON_DEPLOYMENT|default('unknown-deployment') %}
{% set server_name = COMMON_ENVIRONMENT|default('unknown-env') + '-' + COMMON_DEPLOYMENT|default('unknown-deployment') + '-HOSTNAME'%}
{% endif %}
{{ server_name }}-certs-errors:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment