adding new manifests
This commit is contained in:
parent
c32ce1d570
commit
02249cd824
|
@ -0,0 +1,28 @@
|
|||
$dynatrace = hiera('fuel-plugin-dynatrace')
|
||||
|
||||
$tenant = $dynatrace['dynatrace_tenant']
|
||||
$token = $dynatrace['dynatrace_token']
|
||||
$managed = $dynatrace['dynatrace_managed']
|
||||
$server = $dynatrace['dynatrace_server']
|
||||
|
||||
$file = "/tmp/Dynatrace-OneAgent.sh"
|
||||
|
||||
if ($dynatrace['dynatrace_managed']) {
|
||||
$url = "https://${server}/e/${tenant}/installer/agent/unix/latest/${token}/${tenant}"
|
||||
}
|
||||
else {
|
||||
$url = "https://${tenant}.live.dynatrace.com/installer/agent/unix/latest/${token}"
|
||||
}
|
||||
|
||||
notify {$url:} ->
|
||||
notify {$file:} ->
|
||||
|
||||
download {'Download Dynatrace OneAgent':
|
||||
uri => $url,
|
||||
dest => $file
|
||||
} ->
|
||||
|
||||
exec { 'install_oneagent':
|
||||
command => "/bin/sh ${file} APP_LOG_CONTENT_ACCESS=1",
|
||||
path => $::path
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
$dynatrace = hiera('fuel-plugin-dynatrace')
|
||||
|
||||
$tenant = $dynatrace['dynatrace_tenant']
|
||||
$token = $dynatrace['dynatrace_token']
|
||||
$managed = $dynatrace['dynatrace_managed']
|
||||
$server = $dynatrace['dynatrace_server']
|
||||
|
||||
$file = "/tmp/Dynatrace-Security-Gateway.sh"
|
||||
|
||||
if ($dynatrace['dynatrace_managed']) {
|
||||
$url = "https://${server}/e/${tenant}/installer/sg/unix/latest/${token}/${tenant}"
|
||||
}
|
||||
else {
|
||||
$url = "https://${tenant}.live.dynatrace.com/installer/sg/unix/latest/${token}"
|
||||
}
|
||||
|
||||
notify {$url:} ->
|
||||
notify {$file:} ->
|
||||
|
||||
download {'Download Dynatrace Security Gateway':
|
||||
uri => $url,
|
||||
dest => $file
|
||||
} ->
|
||||
|
||||
exec { 'install_security_gateway':
|
||||
command => "/bin/sh ${file}",
|
||||
path => $::path
|
||||
}
|
Loading…
Reference in New Issue