adding new manifests

This commit is contained in:
root 2016-11-07 13:02:16 +01:00
parent c32ce1d570
commit 02249cd824
2 changed files with 56 additions and 0 deletions

View File

@ -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
}

View File

@ -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
}