{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/14613","labels_url":"https://api.github.com/repos/saltstack/salt/issues/14613/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/14613/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/14613/events","html_url":"https://github.com/saltstack/salt/issues/14613","id":39041541,"number":14613,"title":"permit file_roots to be defined as a relative path","user":{"login":"khaije1","id":243271,"avatar_url":"https://avatars.githubusercontent.com/u/243271?v=3","gravatar_id":"","url":"https://api.github.com/users/khaije1","html_url":"https://github.com/khaije1","followers_url":"https://api.github.com/users/khaije1/followers","following_url":"https://api.github.com/users/khaije1/following{/other_user}","gists_url":"https://api.github.com/users/khaije1/gists{/gist_id}","starred_url":"https://api.github.com/users/khaije1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khaije1/subscriptions","organizations_url":"https://api.github.com/users/khaije1/orgs","repos_url":"https://api.github.com/users/khaije1/repos","events_url":"https://api.github.com/users/khaije1/events{/privacy}","received_events_url":"https://api.github.com/users/khaije1/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Core","name":"Core","color":"fef2c0"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Feature","name":"Feature","color":"009800"},{"url":"https://api.github.com/repos/saltstack/salt/labels/File%20Servers","name":"File Servers","color":"006b75"}],"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":2481,"closed_issues":2512,"state":"open","created_at":"2011-05-14T04:00:56Z","updated_at":"2015-08-24T21:07:24Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2014-07-29T22:13:15Z","updated_at":"2015-08-25T16:39:09Z","closed_at":null,"body":"\r\nPlease either \r\n1) alter file_roots to respect a variable that _can_ be defined locally, such as root_dir or config_dir or using a new variable, (something like), file_roots_rela which would operate similarly to root_dir\r\n-or-\r\n2) add a complimentary means to define relative paths, that either defers entirely to file_roots or appends it's config to it\r\n\r\n\r\nExample Use Case:\r\nI'm creating a git repo that contains all the settings needed to manage my infrastructure. Using, salt-ssh -c ./etc/salt , I'm part of the way there. This is presently working except that - because file_roots requires an absolute path, it's paths must be altered with each clone or repo move.\r\nThis is further desirable because it can be stored, controlled and tracked using gitolite, handed off to junior admins as a decentralized infrastructure control-center kit and subsequently secure-deleted from a machine.\r\n\r\nNote to the reader:\r\nSensitive data will be not stored in plain text. It is encrypted or otherwise obfuscated.\r\nFor example, the salt-ssh key and the GPG keys used are defined relative to the userhome, (using tilde, '~'), making the paths and the ensuing capabilities localized according to the \"secrets\" possessed by the invoking user."},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/134665444","html_url":"https://github.com/saltstack/salt/issues/14613#issuecomment-134665444","issue_url":"https://api.github.com/repos/saltstack/salt/issues/14613","id":134665444,"user":{"login":"pykler","id":45146,"avatar_url":"https://avatars.githubusercontent.com/u/45146?v=3","gravatar_id":"","url":"https://api.github.com/users/pykler","html_url":"https://github.com/pykler","followers_url":"https://api.github.com/users/pykler/followers","following_url":"https://api.github.com/users/pykler/following{/other_user}","gists_url":"https://api.github.com/users/pykler/gists{/gist_id}","starred_url":"https://api.github.com/users/pykler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pykler/subscriptions","organizations_url":"https://api.github.com/users/pykler/orgs","repos_url":"https://api.github.com/users/pykler/repos","events_url":"https://api.github.com/users/pykler/events{/privacy}","received_events_url":"https://api.github.com/users/pykler/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T16:39:08Z","updated_at":"2015-08-25T16:39:08Z","body":"+1\r\n\r\n@davidjb comment uptop regarding paths relative to salt-call or salt-ssh is being called is correct in most cases except for `extension_modules`. Relative paths just don't seem to work at all for that."}}