From 89e3c35f0a8e2908402a4703bb7c4435c2ec79d5 Mon Sep 17 00:00:00 2001 From: aloismayr Date: Thu, 2 Mar 2017 12:58:58 +0100 Subject: [PATCH] Run installer only at start Run addon for ubuntu stemcells only --- jobs/dynatrace-oneagent/templates/dynatrace-oneagent.sh.erb | 2 +- runtime-config-dynatrace.yml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/jobs/dynatrace-oneagent/templates/dynatrace-oneagent.sh.erb b/jobs/dynatrace-oneagent/templates/dynatrace-oneagent.sh.erb index c2b24ee..e90d115 100644 --- a/jobs/dynatrace-oneagent/templates/dynatrace-oneagent.sh.erb +++ b/jobs/dynatrace-oneagent/templates/dynatrace-oneagent.sh.erb @@ -56,6 +56,7 @@ case $1 in curl -L -k -o $TMPDIR/Dynatrace-OneAgent-Linux.sh $DOWNLOADURL chmod 755 $TMPDIR/Dynatrace-OneAgent-Linux.sh install_path=$(getInstallDir) + sh $TMPDIR/Dynatrace-OneAgent-Linux.sh $ARGS INSTALL_PATH=$install_path >> $LOG_DIR/dynatrace-install.log 2>> $LOG_DIR/dynatrace-install.log if pgrep -x "guardian" > /dev/null @@ -77,6 +78,5 @@ case $1 in fi rm -rf /opt/dynatrace/oneagent -# unlink /opt/dynatrace/oneagent ;; esac diff --git a/runtime-config-dynatrace.yml b/runtime-config-dynatrace.yml index 54f69ec..61fb762 100644 --- a/runtime-config-dynatrace.yml +++ b/runtime-config-dynatrace.yml @@ -7,7 +7,9 @@ addons: jobs: - name: dynatrace-oneagent release: dynatrace-oneagent - + include: + stemcell: + - os: ubuntu-trusty properties: dynatrace: downloadurl: https://.live.dynatrace.com/installer/agent/unix/latest/