From aaa34b03c11d2b53e6a7dfe209423b9da312d250 Mon Sep 17 00:00:00 2001 From: "Thierno IB. BARRY" Date: Fri, 29 Jan 2016 11:50:55 +0100 Subject: [PATCH] Add ES 2.x support Add compatibility between ES 1.x and ES 2.x. bin/plugin install | remove [plugin_name] works on ES 1.x and ES 2.x --- packaging/elasticsearch_plugin.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packaging/elasticsearch_plugin.py b/packaging/elasticsearch_plugin.py index 7b092a13667..d2f5e0aa9a2 100644 --- a/packaging/elasticsearch_plugin.py +++ b/packaging/elasticsearch_plugin.py @@ -33,7 +33,7 @@ author: Mathew Davies (@ThePixelDeveloper) options: name: description: - - Name of the plugin to install + - Name of the plugin to install. In ES 2.x, the name can be an url or file location required: True state: description: @@ -43,7 +43,7 @@ options: default: present url: description: - - Set exact URL to download the plugin from + - Set exact URL to download the plugin from (Only works for ES 1.x) required: False default: None timeout: @@ -112,8 +112,8 @@ def parse_error(string): def main(): package_state_map = dict( - present="--install", - absent="--remove" + present="install", + absent="remove" ) module = AnsibleModule(