{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/13958","labels_url":"https://api.github.com/repos/saltstack/salt/issues/13958/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/13958/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/13958/events","html_url":"https://github.com/saltstack/salt/issues/13958","id":37050296,"number":13958,"title":"Whats the purpose of environments?","user":{"login":"andrejohansson","id":2828428,"avatar_url":"https://avatars.githubusercontent.com/u/2828428?v=3","gravatar_id":"","url":"https://api.github.com/users/andrejohansson","html_url":"https://github.com/andrejohansson","followers_url":"https://api.github.com/users/andrejohansson/followers","following_url":"https://api.github.com/users/andrejohansson/following{/other_user}","gists_url":"https://api.github.com/users/andrejohansson/gists{/gist_id}","starred_url":"https://api.github.com/users/andrejohansson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrejohansson/subscriptions","organizations_url":"https://api.github.com/users/andrejohansson/orgs","repos_url":"https://api.github.com/users/andrejohansson/repos","events_url":"https://api.github.com/users/andrejohansson/events{/privacy}","received_events_url":"https://api.github.com/users/andrejohansson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Question","name":"Question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/37","html_url":"https://github.com/saltstack/salt/milestones/Blocked","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/37/labels","id":343741,"number":37,"title":"Blocked","description":"Issues which are blocked in some way, whether they need further discussion, clarification, justification, or are blocked for some other reason.","creator":{"login":"basepi","id":702318,"avatar_url":"https://avatars.githubusercontent.com/u/702318?v=3","gravatar_id":"","url":"https://api.github.com/users/basepi","html_url":"https://github.com/basepi","followers_url":"https://api.github.com/users/basepi/followers","following_url":"https://api.github.com/users/basepi/following{/other_user}","gists_url":"https://api.github.com/users/basepi/gists{/gist_id}","starred_url":"https://api.github.com/users/basepi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basepi/subscriptions","organizations_url":"https://api.github.com/users/basepi/orgs","repos_url":"https://api.github.com/users/basepi/repos","events_url":"https://api.github.com/users/basepi/events{/privacy}","received_events_url":"https://api.github.com/users/basepi/received_events","type":"User","site_admin":false},"open_issues":238,"closed_issues":452,"state":"open","created_at":"2013-05-28T22:24:12Z","updated_at":"2015-03-10T18:44:55Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2014-07-03T06:33:01Z","updated_at":"2015-03-10T18:58:11Z","closed_at":"2014-11-18T23:54:45Z","body":"This is a questionn, not a bug/issue.\r\n\r\nI'm aware of defining different environments in the top.sls file, as well as having multiple file_roots or branches in gitfs. But I can't seem to grasp the concept of environments in salt. First when I saw examples of \"dev, test, prod\" I thought it was used in a way to step by step roll out changes in my environment while testing them gradually and reducing the risk for errors.\r\n\r\nHowever, since \"best practice\" seems to be to define environment for minions in top.sls instead of the minion config because of flexibility. It seems to me like it's very easy to make a mistake and hit some production servers with unwanted states/commands.\r\n\r\nI don't really see the point of multiple environments if they don't add a safeguard for me. Am I missing some other kind of value added?"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/78122993","html_url":"https://github.com/saltstack/salt/issues/13958#issuecomment-78122993","issue_url":"https://api.github.com/repos/saltstack/salt/issues/13958","id":78122993,"user":{"login":"mainframe","id":354279,"avatar_url":"https://avatars.githubusercontent.com/u/354279?v=3","gravatar_id":"","url":"https://api.github.com/users/mainframe","html_url":"https://github.com/mainframe","followers_url":"https://api.github.com/users/mainframe/followers","following_url":"https://api.github.com/users/mainframe/following{/other_user}","gists_url":"https://api.github.com/users/mainframe/gists{/gist_id}","starred_url":"https://api.github.com/users/mainframe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mainframe/subscriptions","organizations_url":"https://api.github.com/users/mainframe/orgs","repos_url":"https://api.github.com/users/mainframe/repos","events_url":"https://api.github.com/users/mainframe/events{/privacy}","received_events_url":"https://api.github.com/users/mainframe/received_events","type":"User","site_admin":false},"created_at":"2015-03-10T18:58:11Z","updated_at":"2015-03-10T18:58:11Z","body":"This is exactly why we wrote salt-safeguard wrapper - check it out from here: http://opennodecloud.com/howto/2015/02/15/howto-salt-safeguard.html"}}