You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brooklyn.apache.org by "Martin Harris (JIRA)" <ji...@apache.org> on 2014/09/02 15:04:20 UTC

[jira] [Comment Edited] (BROOKLYN-53) Define new locations in the web UI

    [ https://issues.apache.org/jira/browse/BROOKLYN-53?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14118161#comment-14118161 ] 

Martin Harris edited comment on BROOKLYN-53 at 9/2/14 1:03 PM:
---------------------------------------------------------------

Loading ~/.brooklyn/*.properties could be problematic. I for one have multiple project-specific .properties files and use a symlink brooklyn.properties, which I can easily switch when I change projects (admittedly I could just move the .properties files to another folder). Another way would be to have a specific sections of the brooklyn.properties file (marked out using comments) which Brooklyn would use, e.g.:

{noformat}
# My config
brooklyn.jclouds.aws-ec2.maxConcurrentMachineCreations=4
brooklyn.location.named.AWS\ West\ 1=aws-ec2:eu-west-1

#############################################################
### Auto-generated by Brooklyn - Do not edit this section ###
#############################################################
brooklyn.location.jclouds.softlayer.identity=foo
brooklyn.location.jclouds.softlayer.credential=barbarbar
#############################################################
### End of Auto-generated section ###########################
#############################################################
{noformat}


was (Author: nakomis):
Loading ~/.brooklyn/*.properties could be problematic. I for one have multiple project-specific .properties files and use a symlink brooklyn.properties, which I can easily switch when I change projects (admittedly I could just move the .properties files to another folder). Another way would be to have a specific sections of the brooklyn.properties file (marked out using comments) which Brooklyn would use, e.g.:

# My config
brooklyn.jclouds.aws-ec2.maxConcurrentMachineCreations=4
brooklyn.location.named.AWS\ West\ 1=aws-ec2:eu-west-1

#################################################
### Auto-generated by Brooklyn - Do not edit this section ###
#################################################
brooklyn.location.jclouds.softlayer.identity=foo
brooklyn.location.jclouds.softlayer.credential=barbarbar
#################################################
### End of Auto-generated section  ####################
#################################################

> Define new locations in the web UI
> ----------------------------------
>
>                 Key: BROOKLYN-53
>                 URL: https://issues.apache.org/jira/browse/BROOKLYN-53
>             Project: Brooklyn
>          Issue Type: Sub-task
>    Affects Versions: 0.7.0-M1
>            Reporter: Richard Downer
>             Fix For: 0.7.0
>
>
> Add the ability to define a location, identity and credential in the web UI. Consider the issues involved with permanently saving these new details.
> This would significantly improve the speed at which first-time users can get started with Brooklyn.
> Permanently saving the new location details is possibly problematic. Normally these would be saved to brooklyn.properties; however this file is intended for human editing, and machine-editing it may cause problems. A possible alternative is to write each location into its own file, and modify Brooklyn to automatically load ~/.brooklyn/*.properties. Consider these issues and open up further JIRA issues if appropriate.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)