I pulled this from the New Relic docs. I'm looking for a way to replace YourNewRelicLicense
and NameOfYourServer
with environment variables set up on the ec2 instance.
packages:
yum:
newrelic-sysmond: []
rpm:
newrelic: http://yum.newrelic.com/pub/newrelic/el5/x86_64/newrelic-repo-5-3.noarch.rpm
commands:
"01":
command: nrsysmond-config --set license_key=YourNewRelicLicense
"02":
command: echo hostname=NameOfYourServer >> /etc/newrelic/nrsysmond.cfg
"03":
command: /etc/init.d/newrelic-sysmond start
Is this possible?