Disable New Relic agent in Vagrant build
This disables installing {{nrsysmond}} when creating the Vagrant build, because the Vagrant build is for development only and we don't want reporting. There's no license key either.
Testing instructions in your Ocim:
- create a virtualenv and install Ocim's
deploy/requirements.txt
- download the roles (
ansible-galaxy install -r requirements.yml -f
) - replace the
common-server
role folder with the branch from this PR -
vagrant provision
, this will run the ansible script - the script should run correctly instead of crashing
- check that the New Relic tasks were skipped, and the agent wasn't installed. You should see this
TASK [common-server : Copy security update check script] ***********************
changed: [default]
TASK [common-server : Schedule cron job to track security updates of held packages] ***
changed: [default]
TASK [common-server : Add apt key for New Relic] *******************************
skipping: [default]
TASK [common-server : Install apt repository for New Relic] ********************
skipping: [default]
TASK [common-server : Install newrelic related system packages for Ubuntu] *****
skipping: [default]
TASK [common-server : Configure the agent] *************************************
skipping: [default]
TASK [common-server : Ensure started and enabled] ******************************
skipping: [default]
TASK [forward-server-mail : install deps] **************************************
skipping: [default] => (item=[])
TASK [forward-server-mail : template postfix] **********************************
skipping: [default]
TASK [forward-server-mail : template aliases] **********************************
skipping: [default]
This list can be simplified by just running vagrant up
for the first time when you didn't have an Ocim VM yet.