Code Monkey home page Code Monkey logo

dynatrace-oneagent-chef's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dynatrace-oneagent-chef's Issues

force_default oneagent_download_dir does not correctly set oneagent_installer_path

force_default['dynatraceoneagent']['oneagent_download_dir'] = 'C:\\install\\Dynatrace-OneAgent-Windows-latest'

this correctly sets oneagent_download_dir, but the dynamic creation of oneagent_installer_path still uses temp as defined in the source code:

default['dynatraceoneagent']['oneagent_download_dir'] = "#{ENV['TEMP']}"
default['dynatraceoneagent']['oneagent_installer_filename'] = "Dynatrace-OneAgent-Windows-#{node['dynatraceoneagent']['oneagent_version']}.exe"
default['dynatraceoneagent']['oneagent_installer_path'] = "#{node['dynatraceoneagent']['oneagent_download_dir']}\\#{node['dynatraceoneagent']['oneagent_installer_filename']}"

so instead of getting

oneagent_installer_path = "C:\install\Dynatrace-OneAgent-Windows-latest\Dynatrace-OneAgent-Windows-latest.exe"

we get

oneagent_installer_path = "%TEMP%\Dynatrace-OneAgent-Windows-latest.exe"

the workaround is to also define the override for oneagent_installer_path:

force_default['dynatraceoneagent']['oneagent_download_dir'] = 'C:\\install\\Dynatrace-OneAgent-Windows-latest'
force_default['dynatraceoneagent']['oneagent_installer_path'] = "#{node['dynatraceoneagent']['oneagent_download_dir']}\\#{node['dynatraceoneagent']['oneagent_installer_filename']}"

facing issues while changing the port numbers in the watchdogconfig of oneagent

Hi ,

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.

Syntax error in linux installer

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.

top level attributes

not preferred:
node[‘download_link’]

preferred:
node['dynatraceoneagent’][‘download_link’]

This helps prevent another cookbook using the same generic default['download_link'], or worse override['download_link']

Missing Idempotency for one agent installation

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

Windows installer not up to date

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.