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

Add a notifiers system #11330

Closed
ryan-lane opened this issue Mar 18, 2014 · 4 comments
Closed

Add a notifiers system #11330

ryan-lane opened this issue Mar 18, 2014 · 4 comments
Labels
Feature new functionality including changes to functionality and code refactors, etc. stale
Milestone

Comments

@ryan-lane
Copy link
Contributor

Salt minions are persistent root level daemons on all systems and can fire events to the master. It would be awesome to have a network-wide inotify like functionality for files, directories, and maybe services. For files and directories, using inotify would be ideal since it would be low-overhead. For services dbus may be the best option.

Basically, the salt-minion could be configured to watch for changes on the filesystem or services and would send events that could be reacted on locally or by the master. I could see a configuration similar to the following:

notifiers:
  files:
    - /var/lib/myapp/file
    - /var/lib/myapp/file2
  directories:
    - /var/lib/myappdir
  services:
    - apache2

Maybe even better than setting this in the minion config would be a way for this to be distributed from the master like other components. Then the notifiers modules could register things to be notified on dynamically.

@gravyboat
Copy link
Contributor

+1

@jalons
Copy link
Contributor

jalons commented Mar 18, 2014

This could certainly have some interesting use cases.

@basepi
Copy link
Contributor

basepi commented Mar 31, 2014

This would be awesome! Thanks for the request.

@basepi basepi added the Feature label Mar 31, 2014
@basepi basepi added this to the Approved for future release milestone Mar 31, 2014
@stale stale bot added the stale label Jul 6, 2017
@stale
Copy link

stale bot commented Jul 6, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.

@stale stale bot closed this as completed Jul 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature new functionality including changes to functionality and code refactors, etc. stale
Projects
None yet
Development

No branches or pull requests

4 participants