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

Replicate Logstash config from master to other nodes #1306

Closed
weslambert opened this issue Aug 20, 2018 · 2 comments
Closed

Replicate Logstash config from master to other nodes #1306

weslambert opened this issue Aug 20, 2018 · 2 comments

Comments

@weslambert
Copy link
Collaborator

weslambert commented Aug 20, 2018

Short-term

Add something like the following to the existing OnionSalt config:

/opt/onionsalt/salt/backend/init.sls:

# Create the symlink 

/opt/onionsalt/salt/sensor/logstash_config:
   file.symlink:
     - target: /etc/logstash/custom

/opt/onionsalt/salt/sensor/init.sls:

# Add Logstash config sync

ls-config-sync:
   file.recurse:
     - name: /etc/logstash/custom
     - maxdepth: 0
     - source: salt://sensor/logstash_config
@dougburks
Copy link
Contributor

@dougburks
Copy link
Contributor

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

No branches or pull requests

2 participants