File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 2727 mkdir cookbooks
2828 tar -xzf newrelic-install.tar.gz -C cookbooks/.
2929
30+ - name : Edit and install Chef recipe
31+ run : |
32+ # Edit Chef newrelic-install default recipe file
33+ cat <<EOF > cookbooks/newrelic-install/recipes/default.rb
34+ default['newrelic_install']['NEW_RELIC_API_KEY'] = '${{ secrets.AC_PROD_E2E_API_KEY }}'
35+ default['newrelic_install']['NEW_RELIC_ACCOUNT_ID'] = '${{ secrets.AC_PROD_E2E_ACCOUNT_ID }}'
36+ default['newrelic_install']['NEW_RELIC_REGION'] = 'US'
37+ default['newrelic_install']['targets'] = [
38+ 'logs-integration-agent-control',
39+ 'agent-control'
40+ ]
41+ default['newrelic_install']['env']['NEW_RELIC_CLI_SKIP_CORE'] = '1'
42+ default['newrelic_install']['env']['NEW_RELIC_AUTH_CLIENT_ID']='${{ secrets.AC_PROD_E2E_NR_SYSTEM_IDENTITY_CLIENT_ID }}'
43+ default['newrelic_install']['env']['NEW_RELIC_AUTH_CLIENT_PRIVATE_KEY']='${{ secrets.AC_PROD_E2E_NR_SYSTEM_IDENTITY_PRIVATE_KEY }}'
44+ default['newrelic_install']['env']['NR_CLI_FLEET_ID']='MTIyMTMwNjh8TkdFUHxGTEVFVHwwMTk1ZDE1NC1iNTI0LTdhMTYtYWExYS0wYzQ2Y2VhOGFiMzg'
45+ default['newrelic_install']['env']['NEW_RELIC_AGENT_CONTROL_HOST_MONITORING_SOURCE']='infra-agent'
46+ default['newrelic_install']['env']['NEW_RELIC_AGENT_CONTROL_PROXY_URL']=''
47+ default['newrelic_install']['env']['NEW_RELIC_AGENT_CONTROL_PROXY_CA_BUNDLE_DIR']=''
48+ default['newrelic_install']['env']['NEW_RELIC_AGENT_CONTROL_PROXY_CA_BUNDLE_FILE']=''
49+ default['newrelic_install']['env']['NEW_RELIC_AGENT_CONTROL_PROXY_IGNORE_SYSTEM']='false'
50+ EOF
51+
3052 # Execute newrelic install
3153 sudo chef-client --local-mode --runlist 'recipe[newrelic-install::default]'
3254
You can’t perform that action at this time.
0 commit comments