@@ -80,7 +80,7 @@ Elasticsearch setup:
80
80
Examples of more complicated resource names are left to the reader, but here we
81
81
present a typical example that should work in most cases:
82
82
83
- ```
83
+ ``` ruby
84
84
elasticsearch_user ' default'
85
85
elasticsearch_install ' default'
86
86
elasticsearch_configure ' default'
@@ -98,11 +98,11 @@ a resource name may be omitted).
98
98
99
99
Examples:
100
100
101
- ```
101
+ ``` ruby
102
102
elasticsearch_user ' elasticsearch'
103
103
```
104
104
105
- ```
105
+ ``` ruby
106
106
elasticsearch_user ' elasticsearch' do
107
107
username ' elasticsearch'
108
108
groupname ' elasticsearch'
@@ -133,19 +133,19 @@ them.
133
133
134
134
Examples:
135
135
136
- ```
136
+ ``` ruby
137
137
elasticsearch_install ' elasticsearch'
138
138
```
139
139
140
- ```
140
+ ``` ruby
141
141
elasticsearch_install ' my_es_installation' do
142
142
type :package # type of install
143
143
version " 1.7.2"
144
144
action :install # could be :remove as well
145
145
end
146
146
```
147
147
148
- ```
148
+ ``` ruby
149
149
elasticsearch_install ' my_es_installation' do
150
150
type :tarball # type of install
151
151
dir ' /usr/local' # where to install
@@ -158,15 +158,15 @@ elasticsearch_install 'my_es_installation' do
158
158
end
159
159
```
160
160
161
- ```
161
+ ``` ruby
162
162
elasticsearch_install ' my_es_installation' do
163
163
type :tarball # type of install
164
164
version ' 1.7.2'
165
165
action :install # could be :remove as well
166
166
end
167
167
```
168
168
169
- ```
169
+ ``` ruby
170
170
elasticsearch_install ' my_es_installation' do
171
171
type :package # type of install
172
172
download_url " https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.7.2.deb"
@@ -201,12 +201,12 @@ for more.
201
201
Examples:
202
202
203
203
With all defaults -
204
- ```
204
+ ``` ruby
205
205
elasticsearch_configure ' elasticsearch'
206
206
```
207
207
208
208
More complicated -
209
- ```
209
+ ``` ruby
210
210
elasticsearch_configure ' my_elasticsearch' do
211
211
# if you override one of these, you probably want to override all
212
212
dir ' /usr/local/awesome'
@@ -248,7 +248,7 @@ it to start on boot. You can override almost all of the relevant settings in
248
248
such a way that you may run multiple instances. Most settings will be taken from
249
249
a matching ` elasticsearch_config ` resource in the collection.
250
250
251
- ```
251
+ ``` ruby
252
252
elasticsearch_service ' elasticsearch'
253
253
```
254
254
@@ -267,7 +267,7 @@ NB: You [may encounter issues on certain distros](http://blog.backslasher.net/ja
267
267
268
268
Officially supported or commercial plugins require just the plugin name:
269
269
270
- ```
270
+ ``` ruby
271
271
elasticsearch_plugin ' analysis-icu' do
272
272
action :install
273
273
end
278
278
279
279
Plugins from GitHub require a URL of 'username/repository' or 'username/repository/version':
280
280
281
- ```
281
+ ``` ruby
282
282
elasticsearch_plugin ' kopf' do
283
283
url ' lmenezes/elasticsearch-kopf'
284
284
action :install
@@ -291,15 +291,15 @@ end
291
291
```
292
292
293
293
Plugins from Maven Central or Sonatype require 'groupId/artifactId/version':
294
- ```
294
+ ``` ruby
295
295
elasticsearch_plugin ' mapper-attachments' do
296
296
url ' org.elasticsearch/elasticsearch-mapper-attachments/2.6.0'
297
297
action :install
298
298
end
299
299
```
300
300
301
301
Plugins can be installed from a custom URL or file location as follows:
302
- ```
302
+ ``` ruby
303
303
elasticsearch_plugin ' mapper-attachments' do
304
304
url ' http://some.domain.name//my-plugin-1.0.0.zip'
305
305
action :install
314
314
To run multiple instances per machine, an explicit ` plugin_dir ` location
315
315
has to be provided:
316
316
317
- ```
317
+ ``` ruby
318
318
elasticsearch_plugin ' mobz/elasticsearch-head' do
319
319
plugin_dir ' /usr/share/elasticsearch_foo/plugins'
320
320
end
323
323
If for some reason, you want to name the resource something else, you may
324
324
provide the plugin name using the ` name ` parameter:
325
325
326
- ```
326
+ ``` ruby
327
327
elasticsearch_plugin ' xyzzy' do
328
328
name ' kopf'
329
329
url ' lmenezes/elasticsearch-kopf'
0 commit comments