You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Cleanup additional examples of elasticsearch_plugin
- Add more elasticsearch_configure examples / cleanup
- Modify default attributes to link instead of horizontal scrolling in README
|`default['elasticsearch']['download_urls']['debian']`|`'https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-%s.deb'`|`%s` will be replaced with the version attribute above|
32
-
|`default['elasticsearch']['download_urls']['rhel']`|`'https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-%s.noarch.rpm'`|`%s` will be replaced with the version attribute above|
33
-
|`default['elasticsearch']['download_urls']['tar']`|`'https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-%s.tar.gz'`|`%s` will be replaced with the version attribute above|
31
+
|`default['elasticsearch']['download_urls']['debian']`|[See values](attributes/default.rb).|`%s` will be replaced with the version attribute above|
32
+
|`default['elasticsearch']['download_urls']['rhel']`|[See values](attributes/default.rb).|`%s` will be replaced with the version attribute above|
33
+
|`default['elasticsearch']['download_urls']['tar']`|[See values](attributes/default.rb).|`%s` will be replaced with the version attribute above|
34
34
35
35
## Recipes
36
36
@@ -86,7 +86,9 @@ elasticsearch_install 'default'
86
86
elasticsearch_configure 'default'
87
87
elasticsearch_service 'default'
88
88
89
-
elasticsearch_plugin 'mobz/elasticsearch-head'
89
+
elasticsearch_plugin 'head'do
90
+
url 'mobz/elasticsearch-head'
91
+
end
90
92
```
91
93
92
94
### elasticsearch_user
@@ -120,9 +122,8 @@ Downloads the elasticsearch software, and unpacks it on the system. There are
120
122
currently two ways to install -- `:package`, which downloads the appropriate
121
123
package from elasticsearch.org and uses the package manager to install it, and
122
124
`:tarball` which downloads a tarball from elasticsearch.org and unpacks it in
123
-
/usr/local on the system. The resource name is not used for anything in
124
-
particular. This resource also comes with a `:remove` action which will remove
125
-
the package or directory elasticsearch was unpacked into.
125
+
/usr/local on the system. This resource also comes with a `:remove` action
126
+
which will remove the package or directory elasticsearch was unpacked into.
126
127
127
128
You may always specify a download_url and/or download_checksum, and you may
128
129
include `%s` which will be replaced by the version parameter you supply.
@@ -177,14 +178,12 @@ elasticsearch_install 'my_es_installation' do
177
178
end
178
179
```
179
180
180
-
181
-
182
181
### elasticsearch_configure
183
182
Actions: `:manage`, `:remove`
184
183
185
184
Configures an elasticsearch instance; creates directories for configuration,
186
-
logs, and data. Writes files logging.yml, elasticsearch.in.sh and
187
-
elasticsearch.yml.
185
+
logs, and data. Writes files `logging.yml`, `elasticsearch.in.sh` and
186
+
`elasticsearch.yml`.
188
187
189
188
The main attribute for this resource is `configuration`,
190
189
which is a hash of any elasticsearch configuration directives. The
@@ -205,7 +204,19 @@ With all defaults -
205
204
elasticsearch_configure 'elasticsearch'
206
205
```
207
206
208
-
More complicated -
207
+
With mostly defaults -
208
+
```ruby
209
+
elasticsearch_configure 'elasticsearch'do
210
+
allocated_memory '512m'
211
+
configuration ({
212
+
'cluster.name' => 'escluster',
213
+
'node.name' => 'node01',
214
+
'http.port' => 9201
215
+
})
216
+
end
217
+
```
218
+
219
+
Very complicated -
209
220
```ruby
210
221
elasticsearch_configure 'my_elasticsearch'do
211
222
# if you override one of these, you probably want to override all
@@ -315,7 +326,8 @@ To run multiple instances per machine, an explicit `plugin_dir` location
0 commit comments