Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
81860e71
Commit
81860e71
authored
Sep 23, 2014
by
John Jarvis
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1571 from edx/jarv/use-ami-and-inst
use ami id and using copy for config template
parents
ce25386f
374d4c53
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
playbooks/roles/newrelic/tasks/newrelic-logwatcher.yml
+1
-1
playbooks/roles/newrelic/templates/etc/init/newrelic-logwatch-agent.conf.j2
+3
-1
No files found.
playbooks/roles/newrelic/tasks/newrelic-logwatcher.yml
View file @
81860e71
...
...
@@ -24,7 +24,7 @@
-
name
:
create agent configuration
template
:
>
src=opt/newrelic_platform_plugins/newrelic_logwatcher_agent/config/newrelic_plugin.yml.j2
dest={{ newrelic_logwatch_dir }}/config/newrelic_plugin.yml
dest={{ newrelic_logwatch_dir }}/config/newrelic_plugin.yml
.copy
notify
:
restart newrelic-logwatch-agent
-
template
:
...
...
playbooks/roles/newrelic/templates/etc/init/newrelic-logwatch-agent.conf.j2
View file @
81860e71
...
...
@@ -4,6 +4,8 @@ stop on runlevel [016]
respawn
chdir {{ newrelic_logwatch_dir }}
pre-start script
sed -i "s/HOSTNAME/$(hostname)/" {{ newrelic_logwatch_dir }}/config/newrelic_plugin.yml
ami_id=$(ec2metadata --ami-id)
hostname=$(hostname)
sed "s/HOSTNAME/${ami_id}-${hostname}/" {{ newrelic_logwatch_dir }}/config/newrelic_plugin.yml.copy > {{ newrelic_logwatch_dir }}/config/newrelic_plugin.yml
end script
exec ruby newrelic_logwatcher_agent.rb
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment