{"action":"created","issue":{"url":"https://api.github.com/repos/apache/incubator-brooklyn/issues/476","labels_url":"https://api.github.com/repos/apache/incubator-brooklyn/issues/476/labels{/name}","comments_url":"https://api.github.com/repos/apache/incubator-brooklyn/issues/476/comments","events_url":"https://api.github.com/repos/apache/incubator-brooklyn/issues/476/events","html_url":"https://github.com/apache/incubator-brooklyn/pull/476","id":55640201,"number":476,"title":"Support scriptDir location config","user":{"login":"rdowner","id":837456,"avatar_url":"https://avatars.githubusercontent.com/u/837456?v=3","gravatar_id":"","url":"https://api.github.com/users/rdowner","html_url":"https://github.com/rdowner","followers_url":"https://api.github.com/users/rdowner/followers","following_url":"https://api.github.com/users/rdowner/following{/other_user}","gists_url":"https://api.github.com/users/rdowner/gists{/gist_id}","starred_url":"https://api.github.com/users/rdowner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdowner/subscriptions","organizations_url":"https://api.github.com/users/rdowner/orgs","repos_url":"https://api.github.com/users/rdowner/repos","events_url":"https://api.github.com/users/rdowner/events{/privacy}","received_events_url":"https://api.github.com/users/rdowner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-27T16:30:14Z","updated_at":"2015-01-29T11:12:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/incubator-brooklyn/pulls/476","html_url":"https://github.com/apache/incubator-brooklyn/pull/476","diff_url":"https://github.com/apache/incubator-brooklyn/pull/476.diff","patch_url":"https://github.com/apache/incubator-brooklyn/pull/476.patch"},"body":"This modifies `SshMachineLocation` to propagate certain config keys to flags on `SshTool.execCommand()` and `.execScript()` invocations; the first use of this is to propagate the `scriptDir` config. `JcloudsLocation` is also modified to propagate this configuration. The result is that `scriptDir` can be specified in the configuration for a jclouds-based location, and the value of this property will be passed to every invocation of `SshTool.execScript()`.\r\n\r\nThe use case for this is to allow Brooklyn to be usable on locations where the VM image mounts `/tmp` with `noexec`.\r\n\r\nAlso adds some integration tests to verify the correct operation of the `scriptDir` flag."},"comment":{"url":"https://api.github.com/repos/apache/incubator-brooklyn/issues/comments/72007982","html_url":"https://github.com/apache/incubator-brooklyn/pull/476#issuecomment-72007982","issue_url":"https://api.github.com/repos/apache/incubator-brooklyn/issues/476","id":72007982,"user":{"login":"aledsage","id":593113,"avatar_url":"https://avatars.githubusercontent.com/u/593113?v=3","gravatar_id":"","url":"https://api.github.com/users/aledsage","html_url":"https://github.com/aledsage","followers_url":"https://api.github.com/users/aledsage/followers","following_url":"https://api.github.com/users/aledsage/following{/other_user}","gists_url":"https://api.github.com/users/aledsage/gists{/gist_id}","starred_url":"https://api.github.com/users/aledsage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aledsage/subscriptions","organizations_url":"https://api.github.com/users/aledsage/orgs","repos_url":"https://api.github.com/users/aledsage/repos","events_url":"https://api.github.com/users/aledsage/events{/privacy}","received_events_url":"https://api.github.com/users/aledsage/received_events","type":"User","site_admin":false},"created_at":"2015-01-29T11:12:23Z","updated_at":"2015-01-29T11:12:23Z","body":"I had a feeling that brooklyn.properties config such as that below would work, but is that not true?\r\n\r\n    brooklyn.location.named.myloc.scriptDir=/var/tmp"}}