]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - 3rdparty/modules/elasticsearch/manifests/plugin.pp
Revert "upgrade to elasticsearch/elasticsearch 0.9.6"
[dsa-puppet.git] / 3rdparty / modules / elasticsearch / manifests / plugin.pp
index 9cd04484e874abfe29c69c5230f408aa9c5417ae..f0166a371801666ceaf439465e106a969e997c90 100644 (file)
@@ -77,7 +77,6 @@ define elasticsearch::plugin(
     user      => $elasticsearch::elasticsearch_user,
     tries     => 6,
     try_sleep => 10,
-    timeout   => 600,
   }
 
   $notify_service = $elasticsearch::restart_on_change ? {
@@ -108,12 +107,6 @@ define elasticsearch::plugin(
 
   case $ensure {
     'installed', 'present': {
-      $name_file_path = "${elasticsearch::plugindir}/${module_dir}/.name"
-      exec {"purge_plugin_${module_dir}_old":
-        command => "${elasticsearch::plugintool} --remove ${module_dir}",
-        onlyif  => "test -e ${elasticsearch::plugindir}/${module_dir} && test \"$(cat ${name_file_path})\" != '${name}'",
-        before  => Exec["install_plugin_${name}"],
-      }
       exec {"install_plugin_${name}":
         command => $install_cmd,
         creates => "${elasticsearch::plugindir}/${module_dir}",
@@ -121,11 +114,6 @@ define elasticsearch::plugin(
         notify  => $notify_service,
         require => File[$elasticsearch::plugindir],
       }
-      file {$name_file_path:
-        ensure  => file,
-        content => $name,
-        require => Exec["install_plugin_${name}"],
-      }
     }
     default: {
       exec {"remove_plugin_${name}":