Puppet Class: dynatrace::params

Inherited by:
dynatrace
Defined in:
manifests/params.pp

Overview

Class: dynatrace::params

This class configures parameters for the dynatrace-dynatrace module.

Parameters:

$dynatrace_owner => The system user that owns a Dynatrace installation.
$dynatrace_group => The system user's group that owns a Dynatrace installation.
$installer_cache_dir => The path where the installation script and downloaded jar-file will be temporarily placed

$agents_package_server_installer_bitsize => '32' or '64'.
$agents_package_installer_prefix_dir => The Dynatrace Agents package will be installed into the directory $agents_package_installer_prefix_dir/dynatrace-$major-$minor-$rev, where $major, $minor and $rev are given by the installer. A symbolic link to the actual installation directory will be created in $agents_package_installer_prefix_dir/dynatrace.
$agents_package_installer_file_name  => The file name of the Dynatrace Agents installer in the module's files directory.
$agents_package_installer_file_url   => A HTTP, HTTPS or FTP URL to the Dynatrace Agents installer in the form (http|https|ftp)://[user[:pass]]@host.domain[:port]/path.

$apache_wsagent_apache_config_file_path     => The path to the Apache HTTP Server's config file.
$apache_wsagent_linux_agent_path            => The path to the Dynatrace Agent library.

$collector_installer_bitsize    => '32' or '64'.
$collector_installer_prefix_dir => The Dynatrace Collector will be installed into the directory $collector_installer_prefix_dir/dynatrace-$major-$minor-$rev, where $major, $minor and $rev are given by the installer. A symbolic link to the actual installation directory will be created in $collector_installer_prefix_dir/dynatrace.
$collector_installer_file_name  => The file name of the Dynatrace Collector installer in the module's files directory.
$collector_installer_file_url   => A HTTP, HTTPS or FTP URL to the Dynatrace Collector installer in the form (http|https|ftp)://[user[:pass]]@host.domain[:port]/path.
$collector_agent_port           => The port where the Dynatrace Collector shall listen for Agents.
$collector_server_hostname      => The location of the Dynatrace Server the Collector shall connect to.
$collector_server_port          => The port on the Dynatrace Server the Collector shall connect to. Use either 6698 (non-SSL) or 6699 (SSL).
$collector_jvm_xms              => The Dynatrace Collector's JVM setting: -Xms.
$collector_jvm_xmx              => The Dynatrace Collector's JVM setting: -Xmx.
$collector_jvm_perm_size        => The Dynatrace Collector's JVM setting: -XX:PermSize.
$collector_jvm_max_perm_size    => The Dynatrace Collector's JVM setting: -XX:MaxPermSize.

$java_agent_env_var_name       => The name of the environment variable to be used for Dynatrace Agent injection.
$java_agent_env_var_file_name  => The name of the file to be modified.
$java_agent_name               => The name of the Dynatrace Agent as it appears in the Dynatrace Server.
$java_agent_collector_hostname => The location of the collector the Dynatrace Agent shall connect to.
$java_agent_collector_port     => The port on the collector the Dynatrace Agent shall connect to.
$java_agent_linux_agent_path   => The path to the Dynatrace Agent libary.

$memory_analysis_server_installer_bitsize    => '32' or '64'.
$memory_analysis_server_installer_prefix_dir => The Dynatrace Memory Analysis Server will be installed into the directory $memory_analysis_server_installer_prefix_dir/dynatrace-$major-$minor-$rev, where $major, $minor and $rev are given by the installer. A symbolic link to the actual installation directory will be created in $memory_analysis_server_installer_prefix_dir/dynatrace.
$memory_analysis_server_installer_file_name  => The file name of the Dynatrace Memory Analysis Server installer in the module's files directory.
$memory_analysis_server_installer_file_url   => A HTTP, HTTPS or FTP URL to the Dynatrace Memory Analysis Server installer in the form (http|https|ftp)://[user[:pass]]@host.domain[:port]/path.
$memory_analysis_server_server_port          => The port where the Dynatrace Memory Analysis Server shall listen for the Dynatrace Server.
$memory_analysis_server_jvm_xms              => The Dynatrace Memory Analysis Server's JVM setting: -Xms.
$memory_analysis_server_jvm_xmx              => The Dynatrace Memory Analysis Server's JVM setting: -Xmx.
$memory_analysis_server_jvm_perm_size        => The Dynatrace Memory Analysis Server's JVM setting: -XX:PermSize.
$memory_analysis_server_jvm_max_perm_size    => The Dynatrace Memory Analysis Server's JVM setting: -XX:MaxPermSize.

$server_installer_bitsize       => '32' or '64'.
$server_installer_prefix_dir    => The Dynatrace Server will be installed into the directory $server_installer_prefix_dir/dynatrace-$major-$minor-$rev, where $major, $minor and $rev are given by the installer. A symbolic link to the actual installation directory will be created in $server_installer_prefix_dir/dynatrace.
$server_installer_file_name     => The file name of the Dynatrace installer in the cookbook's files directory.
$server_installer_file_url      => A HTTP, HTTPS or FTP URL to the Dynatrace installer in the form (http|https|ftp)://[user[:pass]]@host.domain[:port]/path.
$server_license_file_name       => The file name of the Dynatrace License in the cookbook's files directory.
$server_license_file_url        => A HTTP, HTTPS or FTP URL to the Dynatrace License in the form (http|https|ftp)://[user[:pass]]@host.domain[:port]/path.
$server_collector_port          => The port where the Dynatrace Server shall listen for Collectors. Use either 6698 (non-SSL) or 6699 (SSL).
$server_embedded_collector_port => The port for embedded collector.
$server_pwh_connection_hostname =>
$server_pwh_connection_port     =>
$server_pwh_connection_dbms     => The DBMS type of the Performance Warehouse. Possible values are 'embedded' (not suitable for production systems), 'db2', 'oracle', 'postgresql', 'sqlazure', 'sqlserver'.
$server_pwh_connection_database =>
$server_pwh_connection_username =>
$server_pwh_connection_password =>

$wsagent_package_agent_name           => The name the Dynatrace WebServer Agent as it appears in the Dynatrace Server.
$wsagent_package_collector_hostname   => The location of the Dynatrace Collector the Web Server Agent shall connect to.
$wsagent_package_collector_port       => The port on the Dynatrace Collector the Web Server Agent shall connect to.
$wsagent_package_installer_prefix_dir => The Dynatrace WebServer Agent will be installed into the directory $wsagent_package_installer_prefix_dir/dynatrace-$major-$minor-$rev, where $major, $minor and $rev are given by the installer. A symbolic link to the actual installation directory will be created in $wsagent_package_installer_prefix_dir/dynatrace.
$wsagent_package_installer_file_name  => The file name of the Dynatrace WebServer Agent installer in the module's files directory.
$wsagent_package_installer_file_url   => A HTTP, HTTPS or FTP URL to the Dynatrace Web Server Agent installer in the form (http|https|ftp)://[user[:pass]]@host.domain[:port]/path.

$host_agent_installer_prefix_dir => The Dynatrace Host Agent will be installed into the directory $host_agent_installer_prefix_dir/dynatrace-$major-$minor-$rev, where $major, $minor and $rev are given by the installer. A symbolic link to the actual installation directory will be created in $host_agent_installer_prefix_dir/dynatrace.
$host_agent_installer_file_name  => The file name of the Dynatrace Host Agent installer in the module's files directory.
$host_agent_installer_file_url   => A HTTP, HTTPS or FTP URL to the Dynatrace Web Host Agent installer in the form (http|https|ftp)://[user[:pass]]@host.domain[:port]/path.
$host_agent_name                 => Dynatrace Host Agent name
$host_agent_collector            => Dynatrace Host Agent Collector identifier (collector IP address or host name)

$update_file_url                 => URL to the update zip file with tds inside e.g. 'https://files.dynatrace.com/downloads/fixpacks/dynaTrace-6.5.1.1003.zip'
$update_rest_url                 => the REST URL to perform update
$update_user                     => user name
$update_passwd                   => user password


80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
# File 'manifests/params.pp', line 80

class dynatrace::params {
  $dynatrace_version = '7.0.0.2469'
  $dynatrace_version_link = "7.0/${dynatrace_version}"
  case $::kernel {
    'Linux': {
      $dynatrace_owner = 'dynatrace'
      $dynatrace_group = 'dynatrace'
      $installer_cache_dir = $settings::vardir

      $agents_package_installer_bitsize    = '64'
      $agents_package_installer_prefix_dir = '/opt'
      $agents_package_installer_file_name  = 'dynatrace-agent.jar'
      $agents_package_installer_file_url   = "https://files.dynatrace.com/downloads/OnPrem/dynaTrace/${dynatrace_version_link}/dynatrace-agent-${dynatrace_version}-unix.jar"

      $apache_wsagent_apache_config_file_path     = '/etc/httpd/conf/httpd.conf'
      $apache_wsagent_apache_init_script_path     = '/etc/init.d/httpd'
      $apache_wsagent_apache_do_patch_init_script = false
      $apache_wsagent_linux_agent_path            = '/opt/dynatrace/agent/lib64/libdtagent.so'

      $collector_installer_bitsize    = '64'
      $collector_installer_prefix_dir = '/opt'
      $collector_installer_file_name  = 'dynatrace-collector.jar'
      $collector_installer_file_url   = "https://files.dynatrace.com/downloads/OnPrem/dynaTrace/${dynatrace_version_link}/dynatrace-collector-${dynatrace_version}-linux-x86.jar"
      $collector_agent_port           = '9998'
      $collector_server_hostname      = 'localhost'
      $collector_server_port          = '6699'     #6698 port is for version 6.3 and below; 6699 is for version 6.5 and upper
      $collector_jvm_xms              = undef
      $collector_jvm_xmx              = undef
      $collector_jvm_perm_size        = undef
      $collector_jvm_max_perm_size    = undef

      $java_agent_env_var_name       = 'JAVA_OPTS'
      $java_agent_env_var_file_name  = undef
      $java_agent_name               = 'java-agent'
      $java_agent_collector_hostname = 'localhost'
      $java_agent_collector_port     = '9998'
      $java_agent_linux_agent_path   = '/opt/dynatrace/agent/lib64/libdtagent.so'

      $php_one_agent_installer_bitsize    = '64'
      $php_one_agent_installer_prefix_dir = '/opt'
      $php_one_agent_php_config_file_name = 'php.ini'
      $php_one_agent_php_config_file_path = '/etc/php/7.0/apache2'
      $php_one_agent_name                 = 'phpOneAgent'
      $php_one_agent_version              = '7.0'
      $php_one_agent_server_hostname      = 'localhost'
      $php_one_agent_port                 = '8043'
      $php_one_agent_installer_file_name  = 'dynatrace-one-agent-php.tar'
      $php_one_agent_installer_file_url   = "https://files.dynatrace.com/downloads/OnPrem/dynaTrace/${dynatrace_version_link}/dynatrace-one-agent-php-${dynatrace_version}-linux-x86.tgz"
      $php_one_agent_apache_service_name  = 'apache2'

      $memory_analysis_server_installer_bitsize    = '64'
      $memory_analysis_server_installer_prefix_dir = '/opt'
      $memory_analysis_server_installer_file_name  = 'dynatrace-analysisserver.jar'
      $memory_analysis_server_installer_file_url   = "https://files.dynatrace.com/downloads/OnPrem/dynaTrace/${dynatrace_version_link}/dynatrace-analysisserver-${dynatrace_version}-linux-x86.jar"
      $memory_analysis_server_server_port          = '7788'
      $memory_analysis_server_jvm_xms              = undef
      $memory_analysis_server_jvm_xmx              = undef
      $memory_analysis_server_jvm_perm_size        = undef
      $memory_analysis_server_jvm_max_perm_size    = undef

      $server_installer_bitsize       = '64'
      $server_installer_prefix_dir    = '/opt'
      $server_installer_file_name     = 'dynatrace.jar'
      $server_installer_file_url      = "http://files.dynatrace.com/downloads/OnPrem/dynaTrace/${dynatrace_version_link}/dynatrace-server-${dynatrace_version}-linux-x86.jar"
      $server_license_file_name       = 'dynatrace-license.key'
      $server_license_file_url        =  undef
      $server_collector_port          = '6699'     #6698 port is for version 6.3 and below; 6699 is for version 6.5 and upper
      $server_embedded_collector_port = '9998'

      $server_pwh_connection_hostname = 'localhost'
      $server_pwh_connection_port     = '5432'
      $server_pwh_connection_dbms     = 'postgresql'
      $server_pwh_connection_database = 'dynatrace-pwh'
      $server_pwh_connection_username = 'dynatrace'
      $server_pwh_connection_password = 'dynatrace'

      $wsagent_package_agent_name           = 'dtwsagent'
      $wsagent_package_collector_hostname   = 'localhost'
      $wsagent_package_collector_port       = '9998'
      $wsagent_package_installer_prefix_dir = '/opt'
      $wsagent_package_installer_file_name  = 'dynatrace-wsagent.tar'
      $wsagent_package_installer_file_url   = "https://files.dynatrace.com/downloads/OnPrem/dynaTrace/${dynatrace_version_link}/dynatrace-wsagent-${dynatrace_version}-linux-x86-64.tar"

      $host_agent_installer_prefix_dir = '/opt'
      $host_agent_installer_file_name  = 'dynatrace-hostagent.tar'
      $host_agent_installer_file_url   = "http://files.dynatrace.com/downloads/OnPrem/dynaTrace/${dynatrace_version_link}/dynatrace-hostagent-${dynatrace_version}-linux-x86-64.tar"
      $host_agent_name                 = 'hostagent'
      $host_agent_collector_name       = 'localhost'

      $update_file_url             = undef
      $update_rest_url             = 'https://localhost:8021/rest/management/'
      $update_user                 = 'admin'
      $update_passwd               = 'admin'

      $dynaTraceCollector      = 'dynaTraceCollector'
      $dynaTraceHostagent      = 'dynaTraceHostagent'
      $dynaTraceAnalysis       = 'dynaTraceAnalysis'
      $dynaTraceServer         = 'dynaTraceServer'
      $dynaTraceWebServerAgent = 'dynaTraceWebServerAgent'
      $dynaTraceFrontendServer = 'dynaTraceFrontendServer'
      $dynaTraceBackendServer  = 'dynaTraceBackendServer'

      $services_to_manage_array = [
        $dynaTraceServer,
        $dynaTraceCollector,
        $dynaTraceAnalysis,
        $dynaTraceWebServerAgent,
        $dynaTraceHostagent,

        $dynaTraceBackendServer,
        $dynaTraceFrontendServer
        ]

    }
    default: {
      fail("The kernel '${::kernel}' is currently not supported.")
    }
  }
}