if ($proxy_host != undef and $proxy_port != undef) {
$proxy = " -DproxyPort=${proxy_port} -DproxyHost=${proxy_host}"
} else {
if ($proxy_host != undef and $proxy_port != undef) {
$proxy = " -DproxyPort=${proxy_port} -DproxyHost=${proxy_host}"
} else {
creates => "${elasticsearch::plugindir}/${module_dir}",
returns => $exec_rets,
notify => $notify_service,
creates => "${elasticsearch::plugindir}/${module_dir}",
returns => $exec_rets,
notify => $notify_service,