Merge pull request #60 from barryib/add-proxy-for-plugins-installation
Define a proxy for plugin installation
This commit is contained in:
commit
3c5adf9961
3 changed files with 34 additions and 3 deletions
24
README.md
24
README.md
|
|
@ -122,6 +122,8 @@ A more complex example:
|
|||
- plugin: marvel-agent
|
||||
- plugin: lmenezes/elasticsearch-kopf
|
||||
version: master
|
||||
proxy_host: proxy.example.com
|
||||
proxy_port: 8080
|
||||
```
|
||||
|
||||
### Multi Node Server Installations
|
||||
|
|
@ -208,8 +210,7 @@ Following variables affect the versions installed:
|
|||
- plugin: elasticsearch-cloud-aws
|
||||
version: 2.5.0
|
||||
```
|
||||
|
||||
|
||||
|
||||
Earlier examples illustrate the installation of plugins for 2.x. The correct use of this parameter varies depending on the version of Elasticsearch being installed:
|
||||
|
||||
- 2.x. - For officially supported plugins no version or source delimiter is required. The plugin script will determine the appropriate plugin version based on the target Elasticsearch version.
|
||||
|
|
@ -236,6 +237,25 @@ This role ships with sample scripts and templates located in the [files/scripts/
|
|||
* ```es_scripts_fileglob``` - defaults to `<role>/files/scripts/`.
|
||||
* ```es_templates_fileglob``` - defaults to `<role>/files/templates/`.
|
||||
|
||||
### Proxy
|
||||
|
||||
To define proxy globaly, set the following variables:
|
||||
|
||||
* ```es_proxy_host``` - global proxy host
|
||||
* ```es_proxy_port``` - global proxy port
|
||||
|
||||
To define proxy only for a particular plugin during its installation:
|
||||
|
||||
```
|
||||
es_plugins:
|
||||
- plugin: elasticsearch-cloud-aws
|
||||
version: 2.5.0
|
||||
proxy_host: proxy.example.com
|
||||
proxy_port: 8080
|
||||
```
|
||||
|
||||
> For plugins installation, proxy_host and proxy_port are used first if they are defined and fallback to the global proxy settings if not.
|
||||
|
||||
## Notes
|
||||
|
||||
* The role assumes the user/group exists on the server. The elasticsearch packages create the default elasticsearch user. If this needs to be changed, ensure the user exists.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue