mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Added elastic search to ansible script
This commit is contained in:
committed by
Dan Christian Bogos
parent
f7460a6aa6
commit
db81cd69a2
37
data/ansible/integration_tests/elasic.yaml
Normal file
37
data/ansible/integration_tests/elasic.yaml
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
- name: Add an apt key for elastic
|
||||
become: yes
|
||||
apt_key:
|
||||
url: https://artifacts.elastic.co/GPG-KEY-elasticsearch
|
||||
state: present
|
||||
|
||||
- name: Add apt repository for elastic
|
||||
become: yes
|
||||
apt_repository:
|
||||
repo: "deb https://artifacts.elastic.co/packages/7.x/apt stable main"
|
||||
filename: elastic-7.x
|
||||
update_cache: yes
|
||||
|
||||
- name: Install elastic
|
||||
become: yes
|
||||
apt:
|
||||
name: "elasticsearch"
|
||||
state: present
|
||||
|
||||
- name: Enable elasticsearch service and ensure it is not masked
|
||||
become: yes
|
||||
systemd:
|
||||
name: elasticsearch
|
||||
state: started
|
||||
enabled: yes
|
||||
masked: no
|
||||
|
||||
- name: Install the git
|
||||
become: yes
|
||||
apt:
|
||||
name: curl
|
||||
|
||||
|
||||
- name: create index
|
||||
command: 'curl -X PUT "localhost:9200/cdrs?pretty"'
|
||||
ignore_errors: yes
|
||||
@@ -85,6 +85,9 @@
|
||||
|
||||
- name: Install rabbitmq
|
||||
include: rabbitmq.yaml
|
||||
|
||||
- name: Install elastic
|
||||
include: elasic.yaml
|
||||
###########################################################################################################################
|
||||
|
||||
###########################################################################################################################
|
||||
|
||||
Reference in New Issue
Block a user