Your data. Anywhere you go.

New Relic for iOS or Android


Download on the App Store    Android App on Google play


New Relic Insights App for iOS


Download on the App Store


Learn more

Close icon

Dummy License Key for testing install process

license-key

#1

Hello,

We’re using Chef to install infrastructure agent version 1.3.18 on Windows Server 2012 R2 (Pro Infra Acct). The installer fails if the license key provided is invalid, which for a production situation is a good thing. However we use Chef Kitchen to test our config management and the dummy license key we use in testing will not produce a successful install. We don’t want to put our real license key in source control to make the tests pass.

What is the recommended solution? Should we create a separate subaccount or is there a universal dummy key we can plug in?

Thanks,

Ray


#2

Hi, @ray.myers: You can set the license key as an environment variable called NRIA_LICENSE_KEY. Then put a placeholder in the config file, like ${NRIA_LICENSE_KEY} or 0000000000000000. The agent will pick up the license key from the environment variable without your having to put the actual key in the file.