{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/30783","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/30783/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/30783/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/30783/events","html_url":"https://github.com/saltstack/salt/issues/30783","id":130433981,"number":30783,"title":"Q: how do I cp.push_dir to salt:// ?","user":{"login":"mmisztal1980","id":1357057,"avatar_url":"https://avatars.githubusercontent.com/u/1357057?v=3","gravatar_id":"","url":"https://api.github.com/users/mmisztal1980","html_url":"https://github.com/mmisztal1980","followers_url":"https://api.github.com/users/mmisztal1980/followers","following_url":"https://api.github.com/users/mmisztal1980/following{/other_user}","gists_url":"https://api.github.com/users/mmisztal1980/gists{/gist_id}","starred_url":"https://api.github.com/users/mmisztal1980/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmisztal1980/subscriptions","organizations_url":"https://api.github.com/users/mmisztal1980/orgs","repos_url":"https://api.github.com/users/mmisztal1980/repos","events_url":"https://api.github.com/users/mmisztal1980/events{/privacy}","received_events_url":"https://api.github.com/users/mmisztal1980/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Confirmed","name":"Confirmed","color":"c7def8"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Core","name":"Core","color":"fef2c0"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Execution%20Module","name":"Execution Module","color":"006b75"},{"url":"https://api.github.com/repos/saltstack/salt/labels/High%20Severity","name":"High Severity","color":"ff9143"},{"url":"https://api.github.com/repos/saltstack/salt/labels/P2","name":"P2","color":"155fb5"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/13","html_url":"https://github.com/saltstack/salt/milestones/Approved","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/13/labels","id":9265,"number":13,"title":"Approved","description":"All issues that are ready to be worked on, both bugs and features.","creator":{"login":"thatch45","id":507599,"avatar_url":"https://avatars.githubusercontent.com/u/507599?v=3","gravatar_id":"","url":"https://api.github.com/users/thatch45","html_url":"https://github.com/thatch45","followers_url":"https://api.github.com/users/thatch45/followers","following_url":"https://api.github.com/users/thatch45/following{/other_user}","gists_url":"https://api.github.com/users/thatch45/gists{/gist_id}","starred_url":"https://api.github.com/users/thatch45/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thatch45/subscriptions","organizations_url":"https://api.github.com/users/thatch45/orgs","repos_url":"https://api.github.com/users/thatch45/repos","events_url":"https://api.github.com/users/thatch45/events{/privacy}","received_events_url":"https://api.github.com/users/thatch45/received_events","type":"User","site_admin":false},"open_issues":2851,"closed_issues":3286,"state":"open","created_at":"2011-05-14T04:00:56Z","updated_at":"2016-02-04T00:54:17Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2016-02-01T17:56:30Z","updated_at":"2016-02-04T08:26:33Z","closed_at":null,"body":"Hi guys,\r\n\r\nI'm uploading directories to my salt master from one of the minions using : ```cp.push_dir``` - wonderful stuff, works like a charm. \r\n\r\nHowever, due to the securitymodel?, the files end up in the cache_dir : ```/var/cache/salt/master/minions/{minion_id}/files```\r\n\r\nMy requirement is to move those file to one of the sub_paths of ```salt://``` - let's say it's ```salt://content/```\r\n\r\nI thought a beacon would solve my problem, however I seem to be having problems getting it to work - I've installed the missing pyinotify dependency and I keep getting errors :\r\n\r\n\r\nThis is my beacon setup:\r\n```\r\nbeacons:\r\n  inotify:\r\n    /var/cache/salt/master/minions/*/services/wms:\r\n      mask:\r\n        - create\r\n        - modify\r\n      recurse: True\r\n      auto_add: True\r\n    /var/cache/salt/master/minions/*/services/wcs:\r\n      mask:\r\n        - create\r\n        - modify\r\n      recurse: True\r\n      auto_add: True\r\n    /var/cache/salt/master/minions/*/services/wfs:\r\n      mask:\r\n        - create\r\n        - modify\r\n      recurse: True\r\n      auto_add: True\r\n    /var/cache/salt/master/minions/*/services/wmts:\r\n      mask:\r\n        - create\r\n        - modify\r\n      recurse: True\r\n      auto_add: True\r\n    interval: 2\r\n    disable_during_state_run: True\r\n```\r\n\r\nWhich results in the following errors in the minion running on the Salt-Master machine:\r\n\r\n```\r\n[ERROR   ] add_watch: cannot watch /var/cache/salt/master/minions/*/files/services/wcs\r\n WD=-1, Errno=No such file or directory (ENOENT)\r\n[ERROR   ] add_watch: cannot watch /var/cache/salt/master/minions/*/files/services/wms\r\n WD=-1, Errno=No such file or directory (ENOENT)\r\n[ERROR   ] add_watch: cannot watch /var/cache/salt/master/minions/*/files/services/wmts\r\n WD=-1, Errno=No such file or directory (ENOENT)\r\n[ERROR   ] add_watch: cannot watch /var/cache/salt/master/minions/*/files/services/wfs\r\n WD=-1, Errno=No such file or directory (ENOENT)\r\n```\r\n\r\n\r\nWhat I want to achieve is: Whenever a directory is uploaded into any of those 4 directories I'd like to move it to salt://content .\r\n\r\nCan you tell me how to achieve this?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/179706501","html_url":"https://github.com/saltstack/salt/issues/30783#issuecomment-179706501","issue_url":"https://api.github.com/repos/saltstack/salt/issues/30783","id":179706501,"user":{"login":"mmisztal1980","id":1357057,"avatar_url":"https://avatars.githubusercontent.com/u/1357057?v=3","gravatar_id":"","url":"https://api.github.com/users/mmisztal1980","html_url":"https://github.com/mmisztal1980","followers_url":"https://api.github.com/users/mmisztal1980/followers","following_url":"https://api.github.com/users/mmisztal1980/following{/other_user}","gists_url":"https://api.github.com/users/mmisztal1980/gists{/gist_id}","starred_url":"https://api.github.com/users/mmisztal1980/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmisztal1980/subscriptions","organizations_url":"https://api.github.com/users/mmisztal1980/orgs","repos_url":"https://api.github.com/users/mmisztal1980/repos","events_url":"https://api.github.com/users/mmisztal1980/events{/privacy}","received_events_url":"https://api.github.com/users/mmisztal1980/received_events","type":"User","site_admin":false},"created_at":"2016-02-04T08:26:33Z","updated_at":"2016-02-04T08:26:33Z","body":"@jfindlay Correct me if I'm wrong but in your example you're initiating the cp.push_dir on your salt-master machine? I'm attempting to do this on the minion using salt-call . Is the behavior in my case unexpected?"}}