I am trying to do some custom modifications to the config of the dynatrace and restart it .
But when i am trying to copy the template file which contains the values of the ports to the watchdoguserconfig.conf .
It is saying that location is not present on the server . Even though the windows package installation resource is executed successfully . I am able to see the location after logging into the server and check it manually . I also tried notifies option but no luck.
Is there any way like we can put wait in the windows_package resource or is there any other way to fix it.
Thank you in advance.
Please let me know if you need more details or logs on this.
I'm encountering the error below in the sh installer on a linux openstack VM.
This is using version 1.157.210 of the linux installer and cookbook version 0.1.0
/tmp/dynatrace-oneagent-Linux.sh: 172: /tmp/dynatrace-oneagent-Linux.sh: Syntax error: "fi" unexpected (expecting "then")
[15:14:34][deploy] ---- End output of "sh" "/tmp/chef-script20190115-1781-5lljan" ----
[15:14:34][deploy] Ran "sh" "/tmp/chef-script20190115-1781-5lljan" returned 2
It is successful when I attempt the install manually.
The cookbook is not checking if the oneagent is already installed and every time the chef-client converges it installs again. It is easy to fix it, just include something like this in each recipe resource.
not_if 'test -d /opt/dynatrace/oneagent'
Example:
script "dynatrace-oneagent-Linux" do
interpreter "sh"
user "root"
code <<-EOH
/bin/sh #{tmp_dir}/#{filename}
EOH
not_if 'test -d /opt/dynatrace/oneagent'
end
Current installation method from dynatrace is supposedly to install via the sh script extracted from the downloaded exe. The current version of this cookbook attempts to run the MSI installer directly in interactive mode.