Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

enix/ansible-elastic-repo

Repository files navigation

enix.elastic_repo for Ansible

A role for deploying softare repository from elastic.co. It provide Elastic Search, Logstash and Kibana software suite.

Supports

Supported targets:

  • Debian 8 "Jessie"
  • Debian 9 "Stretch"
  • Debian 10 "Buster"
  • Ubuntu 16.04 "Xenial"
  • Ubuntu 18.04 "Bionic"
  • RedHat EL / CentOS 6
  • RedHat EL / CentOS 7

Role Variables

This roles comes preloaded with almost every available default. You can override each one in your hosts/group vars, in your inventory, or in your play. See the annotated defaults in defaults/main.yml for help in configuration. All provided variables start with elastic_repo__.

  • elastic_repo__branch: 7.x - Branch of repository to setup on the host. curently supported: 5.x, 6.x, 7.x.
  • elastic_repo__local_gpgkey: false - Use local copy of elastic.co repository GPG key, shipped with the role. Can be usefull for hosts that don't have direct access to internet (using apt-proxy).

Usage

Clone this repo into your roles directory:

$ git clone ssh://gitlab.enix.org/ansible/ansible-elastic-repo.git roles/elastic_repo

Or use Ansible galaxy requirements.yml

# enix.elastic_repo galaxy role

And add it to your play's roles:

- hosts: ...
  roles:
    - enix.elastic_repo

You can also use the role as a playbook. You will be asked which hosts to provision, and you can further configure the play by using --extra-vars.

$ ansible-playbook -i inventory --extra-vars='{...}' main.yml

Still to do

Changelog

2.3.0

Add Debian Buster support Update to 7.x branch by default

2.2.1

Add support for more distribution

2.2.0

Change rolename to enix/elastic_repo

2.1.0

Add support for local GPG key delivery

2.0.0

Debian 9 Stretch support Ubuntu Xenial and Bionic support Allow 5.x and 6.x repository branches

1.0.0

Initial version.