Graylog2 / graylog-ansible-role

Ansible role which installs and configures Graylog
Apache License 2.0
212 stars 127 forks source link

Error graylog2 with elasticsearch #100

Closed Tomelin closed 4 years ago

Tomelin commented 5 years ago

Hi,

I installed graylog2 from playbook example, but is error:

TASK [elastic.elasticsearch : Install templates with auth] ***********************************************************************************************************************
skipping: [localhost] => (item=/etc/ansible/roles/elastic.elasticsearch/files/templates/basic.json)
ERROR! No file was found when using with_first_found. Use the 'skip: true' option to allow this task to be skipped if no files are found
my playbook:
- hosts: server
  become: True
  vars:
    es_major_version: "5.x"
    es_instance_name: 'graylog'
    es_scripts: False
    es_templates: False
    es_version_lock: False
    es_heap_size: 1g
    es_config: {
      node.name: "graylog",
      cluster.name: "graylog",
      http.port: 9200,
      transport.tcp.port: 9300,
      network.host: 0.0.0.0,
      node.data: true,
      node.master: true,
    }

    graylog_java_install: False

    graylog_install_mongodb: True

    graylog_web_endpoint_uri: 'http://localhost:9000/api/'

    nginx_sites:
      graylog:
        - listen 80
        - server_name "{{ansible_host}}"
        - location / {
          proxy_pass http://localhost:9000/;
          proxy_set_header Host $host;
          proxy_set_header X-Real-IP $remote_addr;
          proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
          proxy_pass_request_headers on;
          proxy_connect_timeout 150;
          proxy_send_timeout 100;
          proxy_read_timeout 100;
          proxy_buffers 4 32k;
          client_max_body_size 8m;
          client_body_buffer_size 128k; }
malcyon commented 4 years ago

This error is in the Elasticsearch module. I think you'd have to open an issue on their repo for this.

https://github.com/elastic/ansible-elasticsearch