Comments (6)
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.
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.
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.
---
- 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.
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.
For anyone experiencing this issue check the fix in this commit 1c8b835
Confirmed it works.
from ansible-role-logstash.
Related Issues (20)
- Enable installation of plugins HOT 3
- Select which version of Logstash to install HOT 3
- Ditch built-in logstash-forwarder config, switch to filebeat
- Fail on TASK: Get list of installed plugins. HOT 4
- check mode fails HOT 2
- /opt/logstash expected but /usr/share/logstash used HOT 4
- Add more common logstash filter configurations
- Disable default config installation HOT 18
- Multiline filter issue with solr HOT 5
- Issue installing logstash on centos 7 (AWS) HOT 1
- UseParNewGC error on Ubuntu 18.04 HOT 1
- Not Logstash 7.x compatible HOT 4
- Forced SSL key/cert location HOT 2
- Ensure ssl_certificate_authorities is configured for ssl_verify_mode 'force_peer' HOT 3
- Installation fails on Ubuntu 18.04LTS due to apt repo issue HOT 2
- Set the apt repository url variable HOT 2
- Ubuntu 20.04 idempotence fails on 'Update apt cache if repository just added.'
- Undefined variable __java_packages' is undefined HOT 1
- Update repositories URI HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-role-logstash.