Code Monkey home page Code Monkey logo

Comments (6)

runtman avatar runtman commented on May 30, 2024

I believe I was confused over this.

I thought it wanted the filepath of an existing certificate on a server not one via the ansible setup.

I have hashed this out and it's now stuck elsewhere but not related to this bug report so I will close this.

from ansible-role-logstash.

lunarthegrey avatar lunarthegrey commented on May 30, 2024

What did you change @runtman ? I can't seem to get this working. I have my .crt and .key locally in the same directory I'm running the my playbook from. Maybe @geerlingguy could provide some insight into this. I'm unsure why it's not working. My vars for example:

logstash_ssl_dir: /etc/ssl
logstash_ssl_certificate_file: logstash.crt
logstash_ssl_key_file: logstash.key

from ansible-role-logstash.

runtman avatar runtman commented on May 30, 2024

I just looked at the role I use now, and it looks like I completely re-wrote this ssl section as I wanted to use it in a different manner.

from ansible-role-logstash.

runtman avatar runtman commented on May 30, 2024
---
- name: Ensure Logstash SSL key pair directory exists.
  file:
    path: "{{ logstash_ssl_dir }}"
    state: directory

- name: Deploy cert
  copy:
    src: "files/ssl/node-certs/wildcard.x-x.com.pem"
    dest: /etc/pki/logstash/wildcard.x-x.com.pem
    owner: logstash
    group: logstash

- name: Deploy key
  copy:
    src: "files/ssl/keys/elastic-nodes-key.pkcs8"
    dest: /etc/pki/logstash/elastic-nodes-key.pkcs8
    owner: logstash
    group: logstash

- name: Deploy ca
  copy:
    src: "files/ssl/ca/ca-bundle.pem"
    dest: /etc/pki/logstash/ca-bundle.pem
    owner: logstash
    group: logstash

from ansible-role-logstash.

lunarthegrey avatar lunarthegrey commented on May 30, 2024

Hmm, I'm unsure why I'm getting that error though. Bit confused as to what I'm doing wrong. Thank you for your example. Hopefully I can figure out why I'm getting this error.

TASK [geerlingguy.logstash : Ensure Logstash SSL key pair directory exists.] ***************************************************************************************************
fatal: [127.0.0.1]: FAILED! => {"msg": "The conditional check 'logstash_ssl_key_file' failed. The error was: error while evaluating conditional (logstash_ssl_key_file): 'logstash' is undefined\n\nThe error appears to have been in '/home/user/.ansible/roles/geerlingguy.logstash/tasks/ssl.yml': line 2, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n---\n- name: Ensure Logstash SSL key pair directory exists.\n  ^ here\n"}

from ansible-role-logstash.

lunarthegrey avatar lunarthegrey commented on May 30, 2024

For anyone experiencing this issue check the fix in this commit 1c8b835

Confirmed it works.

from ansible-role-logstash.

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.