Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
612e9b0c
Commit
612e9b0c
authored
Feb 04, 2014
by
e0d
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reasonable working version.
parent
ff2bf7fd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
18 deletions
+44
-18
playbooks/roles/elasticsearch/defaults/main.yml
+12
-3
playbooks/roles/elasticsearch/tasks/main.yml
+32
-15
No files found.
playbooks/roles/elasticsearch/defaults/main.yml
View file @
612e9b0c
---
elasticsearch_version
:
"
0.90.2"
elasticsearch_sha
:
"
397227ce37f616734f39f6e93539c9eaa82bec9"
elasticsearch_app_dir
:
"
{{
COMMON_APP_DIR
}}/elasticsearch"
elasticsearch_data_dir
:
"
{{
COMMON_DATA_DIR
}}/elasticsearch"
elasticsearch_log_dir
:
"
{{
COMMON_LOG_DIR
}}/elasticsearch"
elasticsearch_version
:
"
0.90.11"
elasticsearch_sha
:
"
8e81388d0ba7e427b42514d96e25ba6499024c24"
elasticsearch_file
:
"
elasticsearch-{{
elasticsearch_version
}}.deb"
elasticsearch_url
:
"
https://download.elasticsearch.org/elasticsearch/elasticsearch/{{
elasticsearch_file
}}"
elasticsearch_aws_stack_name
:
"
stage-edx"
#
# Defaults for a single server installation.
ELASTICSEARCH_CLUSTERED
:
false
ELASTICSEARCH_HEAP_SIZE
:
"
512m"
\ No newline at end of file
playbooks/roles/elasticsearch/tasks/main.yml
View file @
612e9b0c
...
...
@@ -8,12 +8,25 @@
# * oraclejdk
#
# Example play:
#
# roles:
# - common
# - oraclejdk
# - elasticsearch
# This play can be used to do a single server or clustered
# installation of the elasticsearch service. When a cluster
# is being installed, there are two important things that
# you must know.
# The ELASTICSEARCH_CLUSTERED var must by true.
# All hosts targeted by your play will be cluster peers.
# Elasticsearch will determine who that master should be.
# Ansible provides handy set operators for use in the
# plays host declaration, as seen in the following example.
#
# - hosts: tag_role_elasticsearch:&tag_environment_stage
# roles:
# - common
# - oraclejdk
# - elasticsearch
#
-
name
:
download elasticsearch
get_url
:
>
url={{ elasticsearch_url }}
...
...
@@ -22,15 +35,18 @@
-
name
:
install elasticsearch from local package
shell
:
>
dpkg -i /var/tmp/elasticsearch-{{ elasticsearch_version }}.deb
dpkg -i
--force-confold
/var/tmp/elasticsearch-{{ elasticsearch_version }}.deb
executable=/bin/bash
creates=/usr/share/elasticsearch/bin/elasticsearch
tags
:
-
elasticsearch
-
install
-
name
:
update elasticsearch defaults
template
:
>
src=etc/default/elasticsearch.j2 dest=/etc/default/elasticsearch
when
:
ELASTICSEARCH_CLUSTERED
-
name
:
drop the elasticsearch config
template
:
>
src=etc/elasticsearch/elasticsearch.yml.j2 dest=/etc/elasticsearch/elasticsearch.yml
when
:
ELASTICSEARCH_CLUSTERED
-
name
:
Ensure elasticsearch is enabled and started
service
:
name=elasticsearch state=started enabled=yes
tags
:
-
elasticsearch
-
install
service
:
name=elasticsearch state=started enabled=yes
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment