Coder Social home page Coder Social logo

Comments (6)

robynbergeron avatar robynbergeron commented on September 23, 2024

You should be able to use the apt_repository and apt_key modules for debian. (See http://docs.ansible.com/list_of_packaging_modules.html for more info).

Here's how I have it for elasticsearch / debian in my own:

from ansible-elasticsearch.

robynbergeron avatar robynbergeron commented on September 23, 2024

For RHEL/CentOS/Fedora/etc --

The redhat.yml task file looks like this (this is logstash, but I assume es can plug in here easily) -

  • name: Add Logstash repos
    template: src=logstash.repo dest=/etc/yum.repos.d/logstash-{{ logstash.version }}.repo
  • name: Install Logstash
    yum: name={{ item }} state=present
    with_items:
    • logstash

And the template in the line above (src=logstash.repo) is in the templates directory -- and looks like this:

[logstash-{{ logstash.version }}]
name=logstash repository for {{ logstash.version }}.x packages
baseurl=http://packages.elasticsearch.org/logstash/{{ logstash.version }}/centos
gpgcheck=1
gpgkey=http://packages.elasticsearch.org/GPG-KEY-elasticsearch
enabled=1

The yum module has an enablerepo parameter but I'm pretty sure we wouldn't want to use it (it doesn't persist beyond the transaction).

from ansible-elasticsearch.

robynbergeron avatar robynbergeron commented on September 23, 2024

(also, happy to make a PR instead if that makes your life easier ;D)

from ansible-elasticsearch.

robin13 avatar robin13 commented on September 23, 2024

@robynbergeron Thanks, and hold back for a moment - I'm already working on that and just not yet fully tested and committed. :)

from ansible-elasticsearch.

robynbergeron avatar robynbergeron commented on September 23, 2024

Sweet! Just thought I'd throw in my $.02 :)

from ansible-elasticsearch.

robin13 avatar robin13 commented on September 23, 2024

Implemented yum/repo usage.

from ansible-elasticsearch.

Related Issues (20)

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.