{"action":"created","issue":{"url":"https://api.github.com/repos/sl1pm4t/terraform-provider-lxd/issues/57","repository_url":"https://api.github.com/repos/sl1pm4t/terraform-provider-lxd","labels_url":"https://api.github.com/repos/sl1pm4t/terraform-provider-lxd/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/sl1pm4t/terraform-provider-lxd/issues/57/comments","events_url":"https://api.github.com/repos/sl1pm4t/terraform-provider-lxd/issues/57/events","html_url":"https://github.com/sl1pm4t/terraform-provider-lxd/issues/57","id":233996309,"number":57,"title":"separate 'mode' into 'file_mode' and 'dir_mode' for file block?","user":{"login":"shantanugadgil","id":2508915,"avatar_url":"https://avatars2.githubusercontent.com/u/2508915?v=3","gravatar_id":"","url":"https://api.github.com/users/shantanugadgil","html_url":"https://github.com/shantanugadgil","followers_url":"https://api.github.com/users/shantanugadgil/followers","following_url":"https://api.github.com/users/shantanugadgil/following{/other_user}","gists_url":"https://api.github.com/users/shantanugadgil/gists{/gist_id}","starred_url":"https://api.github.com/users/shantanugadgil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shantanugadgil/subscriptions","organizations_url":"https://api.github.com/users/shantanugadgil/orgs","repos_url":"https://api.github.com/users/shantanugadgil/repos","events_url":"https://api.github.com/users/shantanugadgil/events{/privacy}","received_events_url":"https://api.github.com/users/shantanugadgil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-06-06T19:19:00Z","updated_at":"2017-06-08T04:35:43Z","closed_at":null,"body":"Hi,\r\nWould it be possible to separate the mode parameter into 'dir_mode' and 'file_mode'?\r\n\r\nThe use case is that typically one needs to create directories (sub-directories) as **0755** and the file with mode **0644** (or maybe 0600)\r\n\r\nIf I set the **mode** to **0600**, it gets applied for even the directories and sub-directories, thus making the file inaccessible for non-root users inside the lxd_container.\r\n\r\nRegards,\r\nShantanu"},"comment":{"url":"https://api.github.com/repos/sl1pm4t/terraform-provider-lxd/issues/comments/306995818","html_url":"https://github.com/sl1pm4t/terraform-provider-lxd/issues/57#issuecomment-306995818","issue_url":"https://api.github.com/repos/sl1pm4t/terraform-provider-lxd/issues/57","id":306995818,"user":{"login":"shantanugadgil","id":2508915,"avatar_url":"https://avatars2.githubusercontent.com/u/2508915?v=3","gravatar_id":"","url":"https://api.github.com/users/shantanugadgil","html_url":"https://github.com/shantanugadgil","followers_url":"https://api.github.com/users/shantanugadgil/followers","following_url":"https://api.github.com/users/shantanugadgil/following{/other_user}","gists_url":"https://api.github.com/users/shantanugadgil/gists{/gist_id}","starred_url":"https://api.github.com/users/shantanugadgil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shantanugadgil/subscriptions","organizations_url":"https://api.github.com/users/shantanugadgil/orgs","repos_url":"https://api.github.com/users/shantanugadgil/repos","events_url":"https://api.github.com/users/shantanugadgil/events{/privacy}","received_events_url":"https://api.github.com/users/shantanugadgil/received_events","type":"User","site_admin":false},"created_at":"2017-06-08T04:35:43Z","updated_at":"2017-06-08T04:35:43Z","body":"Nice to know about lxdfile and lxb 👍 \r\nI have already automated most of the bits where I create an LXD image with the packages required for my software (and the software itself).\r\nGoing one step further, I could even push the upstart scripts into the image (as their functionality stabilizes)\r\n_the only reason they are outside is because the upstart scripts are still being developed._\r\n\r\nI cannot bake in the SSL certs, though, which I will _have_ to push as a last step of deployment.\r\n\r\nAs I said earlier, I guess I'll make do with an alternative method.\r\nIt would have been _super-awesome_  to have this functionality in-built!\r\n"}}
{"actor":{"display_login":"shantanugadgil"}}