{"action":"closed","issue":{"url":"https://api.github.com/repos/markround/tiller/issues/29","repository_url":"https://api.github.com/repos/markround/tiller","labels_url":"https://api.github.com/repos/markround/tiller/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/markround/tiller/issues/29/comments","events_url":"https://api.github.com/repos/markround/tiller/issues/29/events","html_url":"https://github.com/markround/tiller/issues/29","id":162874656,"number":29,"title":"Templates are not generated for all environments when using defaults","user":{"login":"EugenMayer","id":136934,"avatar_url":"https://avatars.githubusercontent.com/u/136934?v=3","gravatar_id":"","url":"https://api.github.com/users/EugenMayer","html_url":"https://github.com/EugenMayer","followers_url":"https://api.github.com/users/EugenMayer/followers","following_url":"https://api.github.com/users/EugenMayer/following{/other_user}","gists_url":"https://api.github.com/users/EugenMayer/gists{/gist_id}","starred_url":"https://api.github.com/users/EugenMayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EugenMayer/subscriptions","organizations_url":"https://api.github.com/users/EugenMayer/orgs","repos_url":"https://api.github.com/users/EugenMayer/repos","events_url":"https://api.github.com/users/EugenMayer/events{/privacy}","received_events_url":"https://api.github.com/users/EugenMayer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"markround","id":646543,"avatar_url":"https://avatars.githubusercontent.com/u/646543?v=3","gravatar_id":"","url":"https://api.github.com/users/markround","html_url":"https://github.com/markround","followers_url":"https://api.github.com/users/markround/followers","following_url":"https://api.github.com/users/markround/following{/other_user}","gists_url":"https://api.github.com/users/markround/gists{/gist_id}","starred_url":"https://api.github.com/users/markround/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markround/subscriptions","organizations_url":"https://api.github.com/users/markround/orgs","repos_url":"https://api.github.com/users/markround/repos","events_url":"https://api.github.com/users/markround/events{/privacy}","received_events_url":"https://api.github.com/users/markround/received_events","type":"User","site_admin":false},"assignees":[{"login":"markround","id":646543,"avatar_url":"https://avatars.githubusercontent.com/u/646543?v=3","gravatar_id":"","url":"https://api.github.com/users/markround","html_url":"https://github.com/markround","followers_url":"https://api.github.com/users/markround/followers","following_url":"https://api.github.com/users/markround/following{/other_user}","gists_url":"https://api.github.com/users/markround/gists{/gist_id}","starred_url":"https://api.github.com/users/markround/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markround/subscriptions","organizations_url":"https://api.github.com/users/markround/orgs","repos_url":"https://api.github.com/users/markround/repos","events_url":"https://api.github.com/users/markround/events{/privacy}","received_events_url":"https://api.github.com/users/markround/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2016-06-29T09:01:24Z","updated_at":"2016-07-19T14:57:57Z","closed_at":"2016-07-19T14:57:57Z","body":"If you have an environment which does not need to change anything the defaults defined globally \r\n(https://github.com/markround/tiller#defaults-plugin)\r\n\r\nyou would not create a specific environments section for it in the configuration - this should be  pretty common probably either for development or production, depends on what you though of when writing defaults: mytemplate.erb .\r\n\r\nWhen you ommit this environment, you cannot generate the templates for this environment at all. See https://github.com/EugenMayer/tiller-test\r\n\r\nrun with \r\n\r\n```\r\ndocker run --rm eugenmayer/tiller-test -e staging\r\n```\r\n\r\nthis will produce\r\n\r\n```\r\ndocker run --rm eugenmayer/tiller-test -e staging                                                                                            130 ↵\r\nError : Could not load environment staging from common.yaml\r\ntiller v0.7.9 (https://github.com/markround/tiller) <github@markround.com>\r\nExecutable: /var/lib/gems/2.1.0/gems/tiller-0.7.9/bin/tiller\r\nUsing common.yaml v2 format configuration file\r\nUsing configuration from /etc/tiller\r\nUsing plugins from /usr/local/lib/tiller\r\nUsing environment staging\r\nTemplate sources loaded [FileTemplateSource]\r\nData sources loaded [DefaultsDataSource, FileDataSource, EnvironmentDataSource]\r\n#<DefaultsDataSource:0x0000000084ca88> : Using values from v2 format common.yaml\r\n#<DefaultsDataSource:0x0000000084c4c0> : Using values from v2 format common.yaml\r\n```\r\n\r\neven using a simple stub like this in environments to at least \"introduce them\"\r\n```\r\nenvironments:\r\n  staging:\r\n  development:\r\n    global_values:\r\n       something: 'foor'\r\n```\r\n\r\nwont work. So some has to either set a useless dummy value or do something else - sounds unpractical. Either allow this kind of stub and document, that this is needed (simple), or allow picking any env when having such a defaults definition ( sounds more complicated to change though )"}}
{"actor":{"display_login":"markround"}}