Created
July 23, 2020 13:16
-
-
Save chroming/da3415a72056283cc4430c8c23fc127c to your computer and use it in GitHub Desktop.
当salt modules文件更新后自动sync all
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # yum install inotify-tools | |
| #!/bin/sh | |
| while inotifywait -e modify /srv/salt/_modules; do | |
| salt '172.16.184.148' saltutil.sync_all | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment