Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Support For Elastic Cloud #65

Closed
khawarhere opened this issue Dec 24, 2019 · 6 comments
Closed

Support For Elastic Cloud #65

khawarhere opened this issue Dec 24, 2019 · 6 comments
Assignees
Labels

Comments

@khawarhere
Copy link

Feature request

Provide support for Elastic Cloud, We could provide cloud.id and cloud.auth values ideally in Playbook.yml.

@jmlrt jmlrt added the question label Dec 27, 2019
@jmlrt jmlrt self-assigned this Dec 27, 2019
@jmlrt
Copy link
Member

jmlrt commented Dec 27, 2019

Hi @khawarhere,
You should already be able to use this ansible role with Elastic Cloud.
You can provide cloud.id and cloud.auth values in beat_conf Ansible variable.

@khawarhere
Copy link
Author

Dear @jmlrt,

Thanks for the response, I got your point, Also it would be a great help, if you please describe some example, e.g in filebeat, how will we set cloud.id and cloud.auth

- role: ansible-beats
      beat: filebeat
      beat_conf:
        filebeat:
          inputs:
            - paths:
                - /var/log/*.log
              type: log

Thank you.

@jmlrt
Copy link
Member

jmlrt commented Jan 6, 2020

cloud.id and cloud.auth can be set in filebeat.yml config file so you can use a playbook like that:

- hosts: localhost
  roles:
    - role: ansible-beats
      beat: filebeat
      beat_conf:
        filebeat:
          inputs:
            - paths:
                - /var/log/*.log
              type: log
        cloud.id: "XXX"
        cloud.auth: "elastic:XXX"

@jmlrt
Copy link
Member

jmlrt commented Jan 6, 2020

I'm closing the issue, don't hesitate to reopen it if you have any question.

@jmlrt jmlrt closed this as completed Jan 6, 2020
@adrwh
Copy link

adrwh commented Jan 30, 2020

Thanks for this. How do we use keystore? Ie what's the best way to copy the .keystore files to the remote host, then reference the values from it.

cloud.id: "${ecid}"
cloud.auth: "${ecpass}"

@jmlrt
Copy link
Member

jmlrt commented Jan 31, 2020

Hi @adrwh, Beats keystore integration isn't implemented yet in this Ansible role.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants