Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

adding git roles for elasticsearch

  • Loading branch information...
commit c5e56fae81e16a001af1c3cfaaae02d519d7a987 1 parent 252cf09
@joshbronson joshbronson authored
View
12 roles/elasticsearch_client_from_git.rb
@@ -0,0 +1,12 @@
+name "elasticsearch_client_from_git"
+description "Client for an elasticsearch cluster: doesn't run daemons, just installs and configures."
+
+# List of recipes and roles to apply
+run_list(*%w[
+ elasticsearch::default
+ elasticsearch::install_from_git
+ elasticsearch::plugins
+
+ elasticsearch::client
+ elasticsearch::config_files
+])
View
20 roles/elasticsearch_datanode_from_git.rb
@@ -0,0 +1,20 @@
+name "elasticsearch_datanode_from_git"
+description "Elasticsearch Datanode (holds and indexes data) for elasticsearch cluster."
+
+# List of recipes and roles to apply
+run_list(*%w[
+ elasticsearch::default
+ elasticsearch::install_from_git
+ elasticsearch::plugins
+
+ elasticsearch::server
+ elasticsearch::config_files
+])
+
+override_attributes({
+ :elasticsearch => { :is_datanode => true },
+ :zabbix => {
+ :templates => { :elasticsearch => ["Template_Elasticsearch_Node"] },
+ :host_groups => { :elasticsearch => ["Elasticsearch nodes"] }
+ }
+ })
View
14 roles/elasticsearch_server_with_auth_from_git.rb
@@ -0,0 +1,14 @@
+name "elasticsearch_server_with_auth_from_git"
+description "Elasticsearch server: holds and indexes data, and replies to http requests. plug nginx reverse proxy for basic auth"
+
+# FIXME: Apparently this will not ensure order. not sure how to do
+# this, but nginx must be run after
+# elasticsearch::basic_auth. (Actually, they are codependents.)
+
+# List of recipes and roles to apply
+run_list(*%w[
+ role[elasticsearch_datanode_from_git]
+ elasticsearch::basic_auth
+ nginx
+ role[elasticsearch_httpnode]
+])
Please sign in to comment.
Something went wrong with that request. Please try again.