Giter VIP home page Giter VIP logo

ansible_aws_elasticsearch_domain's Introduction

Ansible AWS ElasticSearch Domain

Ansible role for Elasticsearch (ES) Amazon Web Services (AWS). Creates/updates/deletes an AWS ES domain.

Role Variables

parameter required default choices comments
domain_name yes
es_version yes 6.4
es_instance_type yes
es_instance_count yes 1
dedicated_master_enabled no False
zone_awareness_enabled no False
zone_awareness_az_count no 2
ebs_enabled yes
ebs_volume_type yes gp2
ebs_volume_size yes 10Gb
ebs_iops no
access_policies yes
automated_snapshot_hour no 0
vpc_deployment no
vpc_subnet_ids no
vpc_security_group_ids no false
encryption_at_rest_enabled no False
encryption_at_rest_kms_key_id no
advanced_options no {}
node_to_node_encryption_enabled no False Node to node encryption
advanced_options no {}
tags no {}
wait no False

Dependencies

n/a

Example Playbook

Example invocation playbook

- hosts: localhost
  gather_facts: no
  roles:
    - role: aws_elasticsearch_domain
  vars:
    state: present
    domain_name: example-domain
    access_policy:
      Version: 2012-10-17
      Statement:
        - Effect: Allow
          Principal:
            AWS:
              - '{{ aws_account_id }}'
          Action:
            - 'es:*'
          Resource: "arn:aws:es:{{ aws_region }}:{{ aws_account_id }}:domain/{{ domain_name }}/*"
  tasks:
    - name: invoke the elasticsearch lib
      elasticsearch_domain:
        state: present
        domain_name: '{{ domain_name }}'
        access_policies: '{{ access_policy | to_nice_json }}'
        es_instance_type: m4.large.elasticsearch
        es_instance_count: 2
        encryption_at_rest_enabled: true
        encryption_at_rest_kms_key_id: '{{ some_key }}'
        automated_snapshot_hour: 2
        node_to_node_encryption_enabled: true
        zone_awareness_enabled: true
        zone_awareness_az_count: 2
        dedicated_master_enabled: true
        dedicated_master_instance_type: m4.large.elasticsearch
        dedicated_master_count: 3
        tags:
          Name: '{{ domain_name }}'
      register: es_domain
    - debug: msg="{{ es_domain.domain }}"

TODO

  • Add support for deeper nesting in the update sequences
  • Add support for logging

Author Info

David Heward

ansible_aws_elasticsearch_domain's People

Contributors

davehewy avatar

Watchers

 avatar James Cloos avatar

Forkers

rakhithjk

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.