Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Network capability does not work #17

Open
diarmaid-mcmanus opened this issue Apr 24, 2017 · 0 comments
Open

Network capability does not work #17

diarmaid-mcmanus opened this issue Apr 24, 2017 · 0 comments

Comments

@diarmaid-mcmanus
Copy link

diarmaid-mcmanus commented Apr 24, 2017

Hi, possibly related to #16. Setting rsyslog role with network capability doesn't bind to a port:

Steps to reproduce, using examples/vagrant-multi-machine:

  • Add the following to ansible/inventory/groups
[debops_all_hosts]
web
db

[debops_service_rsyslog]
web
  • Add the following to ansible/inventory/host_vars/web.yml
# Enable network input channels and storage of remote logs in filesystem
rsyslog__capabilities: [ 'network', 'remote-files' ]

# Specify which subnets can send remote logs through the firewall
# allowing all for this test
rsyslog__host_allow: [ '0.0.0.0/0' ]

# Mask log forwarding configuration defined elsewhere
rsyslog__forward: []
rsyslog__group_forward: []
rsyslog__host_forward: []
  • Add the following to ansible/inventory/group_vars/all.yml
rsyslog__forward: [ '*.* @web.{{ ansible_domain }}' ]
  • vagrant up
  • debops
  • vagrant ssh web
  • netstat -ltupn # note that rsyslog is not listening
  • ls /var/log/remote/hosts # note there is only a 'web', but no 'db'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant