# brooklyn.location.named.HP = jclouds:hpcloud-compute
--
You received this message because you are subscribed to the Google Groups "brooklyn-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brooklyn-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Hi Rusty,
You can set an endpoint with this property:
brooklynjclouds.openstack-nova.endpoint = http://keystone-url/v2
For your question about using images pre-installed with your application, I'm not sure of the answer to that. I'll see what I can find out.
Richard.
On 25 September 2013 18:06, Moln�r Mih�ly L�szl� <laci...@gmail.com> wrote:
I think OpenStack is similar. According to this - http://jclouds.incubator.apache.org/documentation/quickstart/openstack/ , I think it should look like this:Hi Richard!Thanks a lot for the quick answer. I will try it tomorrow.
brooklyn.jclouds.openstack-nova.identity = 1234567890:johndoebrooklyn.jclouds.openstack-nova.credential = p4ssw0rd
But somehow I have to configure my own endpoint/api url. Is there any chance that this could work?:
brooklyn.location.named.MyOpenStack = jclouds:openstack-nova:https://apiurl:port/v2
How about more images? If I have prepared images as the docs says, for example one for nginx and one for the webapplication so I can speed up deployment.
I'm still just checking out the docs and examples, but is there any example for how to use these images? I think I have to create my own entity and there specify the image, read from property and then the other activities.
Or I have to create new location for every image?
Thanks again!
Rusty
On Wed, Sep 25, 2013 at 6:40 PM, Richard Downer <richard...@cloudsoftcorp.com> wrote:
OK, so I've tried it out - I got one thing wrong, and my suspicions about needing to supply image IDs were correct.
My mistake is with the identity - it's not the project/tenant ID, it's the project/tenant *name* that needs to be given. You can find your project name on this page:�https://account.hpcloud.com/projects
So you will need to add this to brooklyn.properties:
brooklyn.jclouds.hpcloud-compute.identity = projectname:usernamebrooklyn.jclouds.hpcloud-compute.credential = password
Regarding step 2, I've looked up the image IDs for Ubuntu 12.04 LTS, and these should work:
brooklyn.location.named.HP\ Cloud\ Arizona-1 = jclouds:hpcloud-compute:az-1.region-a.geo-1brooklyn.location.named.HP\ Cloud\ Arizona-1.imageId = az-1.region-a.geo-1/75845brooklyn.location.named.HP\ Cloud\ Arizona-1.user = ubuntubrooklyn.location.named.HP\ Cloud\ Arizona-2 = jclouds:hpcloud-compute:az-2.region-a.geo-1brooklyn.location.named.HP\ Cloud\ Arizona-2.imageId = az-1.region-a.geo-2/67074brooklyn.location.named.HP\ Cloud\ Arizona-2.user = ubuntubrooklyn.location.named.HP\ Cloud\ Arizona-3 = jclouds:hpcloud-compute:az-3.region-a.geo-1brooklyn.location.named.HP\ Cloud\ Arizona-3.imageId = az-1.region-a.geo-3/48335brooklyn.location.named.HP\ Cloud\ Arizona-3.user = ubuntu
I've tested out an app in az-1 but haven't yet tried the rest (I'm not expecting any more problems, however.)
I'll get the rest of the IDs checked tomorrow, and will work to get the HP Cloud config into the shipped brooklyn.properties.
Shout back if you're seeing any problems.
Cheers,Richard.
On 25 September 2013 17:02, Richard Downer <richard...@cloudsoftcorp.com> wrote:
Hi Rusty. Welcome to brooklyn :)
HP Cloud should certainly be compatible with brooklyn. I'll give a try shortly to confirm, but here's what I think *should* work.
Firstly you need to define your identity and credential (these are jclouds terms; jclouds is the library that brooklyn uses to do the work of talking to all the different cloud providers.) For HP Cloud, the identity is in the form "tenantid:username". You can get your tenant ID (also known as project ID) from this page:�https://account.hpcloud.com/account/api_keys. Username is the same username you use to log in to the web console. The credential is your web console password.
You then add these to brooklyn.properties like this:
brooklyn.jclouds.hpcloud-compute.identity = 1234567890:johndoebrooklyn.jclouds.hpcloud-compute.credential = p4ssw0rd
Step 2 is to define named locations for the HP Cloud compute zones. This should do it:
brooklyn.location.named.HP\ Cloud\ Arizona-1 = jclouds:hpcloud-compute:az-1.region-a.geo-1brooklyn.location.named.HP\ Cloud\ Arizona-2 = jclouds:hpcloud-compute:az-2.region-a.geo-1brooklyn.location.named.HP\ Cloud\ Arizona-3 = jclouds:hpcloud-compute:az-3.region-a.geo-1
That should be enough to get things going - with this information, brooklyn should be able to log in to your HP Cloud account and start VMs in the different regions. However we sometimes find that it's best to give brooklyn specific image IDs, rather than letting jclouds pick an image ID for us (you can see this has been done for the various Amazon EC2 zones) - we may need to log into doing this for HPCloud, too.
As I said, this *should* work but I haven't tried this yet. I will give it a go shortly, and post a correction if I'm wrong :)
On 25 September 2013 16:36, Mih�ly L�szl� Moln�r <laci...@gmail.com> wrote:
Hi All!--
I'm new to brooklyn and I think I will have some question.
The first one, is that in brooklyn.properties I don't see any example for HP Cloud or OpenStack, just only this:
# brooklyn.location.named.HP = jclouds:hpcloud-compute
So my question is how to setup HP and OpenStack cloud in brooklyn.properties and how to use them, because every example for AWS as I can see.
My goal is to make a system which scales from my private OpenStack cloud to public HP.
Thanks for your help!
Rusty
You received this message because you are subscribed to the Google Groups "brooklyn-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brooklyn-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
Richard Downer � Principal Software Engineer � Cloudsoft Corporation � http://www.cloudsoftcorp.comSkype richardcloudsoft � Twitter @FrontierTown
--
Richard Downer � Principal Software Engineer � Cloudsoft Corporation � http://www.cloudsoftcorp.comSkype richardcloudsoft � Twitter @FrontierTown
--
You received this message because you are subscribed to the Google Groups "brooklyn-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brooklyn-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "brooklyn-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brooklyn-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
Richard Downer � Principal Software Engineer � Cloudsoft Corporation � http://www.cloudsoftcorp.comSkype richardcloudsoft � Twitter @FrontierTown
{
"auth":{
"passwordCredentials":{
"username":"arunkant",
"password":"changeme"
},
"tenantId":"95096564413950"
}
}
Then it's working, no problem.
So I finally figured it out that jcloud or brooklyn wants to send tenantName while HP expect tenantID.But if I copy it from the log, all in one line, like this:
{"auth":{"passwordCredentials":{"username":"arunkant","password":"changeme"},"tenantName":"95096564413950"}}
Hi Rusty,
your settings look right. depending what the other end is doing you might need some other options however. fwiw here is what i use:
brooklyn.location.named.hpcloud-compute-at=jclouds:openstack-nova:https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0
brooklyn.location.named.hpcloud-compute-at.identity=al...@cloudsoftcorp.com-tenant1:al...@cloudsoftcorp.com
brooklyn.location.named.hpcloud-compute-at.credential=p4ssw0rd
# configure login because this is not correctly autodetected
brooklyn.location.named.hpcloud-compute-at.privateKeyFile=~/.ssh/id_rsa
brooklyn.location.named.hpcloud-compute-at.loginUser=ubuntu
# set this to true in some openstacks to get public IP's automatically assigned
brooklyn.location.named.hpcloud-compute-at.jclouds.openstack-nova.auto-create-floating-ips=false
# optional to re-use the same keypair and security groups
brooklyn.location.named.hpcloud-compute-at.jclouds.openstack-nova.auto-generate-keypairs=false
brooklyn.location.named.hpcloud-compute-at.securityGroups=universal
brooklyn.location.named.hpcloud-compute-at.keyPair=mykeypair
brooklyn.location.named.hpcloud-compute-at.loginUser.privateKeyFile=~/.ssh/hpcloud-mykeypair.pem
this blog might be helpful:
http://www.cloudsoftcorp.com/blog/having-a-lark-at-parc/
re images -- if you set an imageId property that will use the image.
however as you say, this is not very portable, so our common approrach is to use a plain linux image, and install what is needed. that's what the entities like nginx etc do, so that they can run in any cloud. as an optimisation once it's working you can plug in a different "driver" which uses a known imageId to skip software installation (or take a snapshot from creation of the first instance of an entity and use that for subsequent instances, i.e. writing code to do exactly the behaviour you want).
HTH
--A
On 26/09/2013 09:42, Richard Downer wrote:
Hi Rusty,
You can set an endpoint with this property:
brooklynjclouds.openstack-nova.endpoint = http://keystone-url/v2
For your question about using images pre-installed with your application, I'm not sure of the answer to that. I'll see what I can find out.
Richard.
On 25 September 2013 18:06, Molnár Mihály László <laci...@gmail.com> wrote:
I think OpenStack is similar. According to this - http://jclouds.incubator.apache.org/documentation/quickstart/openstack/ , I think it should look like this:Hi Richard!Thanks a lot for the quick answer. I will try it tomorrow.
brooklyn.jclouds.openstack-nova.identity = 1234567890:johndoebrooklyn.jclouds.openstack-nova.credential = p4ssw0rd
But somehow I have to configure my own endpoint/api url. Is there any chance that this could work?:
brooklyn.location.named.MyOpenStack = jclouds:openstack-nova:https://apiurl:port/v2
How about more images? If I have prepared images as the docs says, for example one for nginx and one for the webapplication so I can speed up deployment.
I'm still just checking out the docs and examples, but is there any example for how to use these images? I think I have to create my own entity and there specify the image, read from property and then the other activities.
Or I have to create new location for every image?
Thanks again!
Rusty
On Wed, Sep 25, 2013 at 6:40 PM, Richard Downer <richard...@cloudsoftcorp.com> wrote:
OK, so I've tried it out - I got one thing wrong, and my suspicions about needing to supply image IDs were correct.
My mistake is with the identity - it's not the project/tenant ID, it's the project/tenant *name* that needs to be given. You can find your project name on this page: https://account.hpcloud.com/projects
So you will need to add this to brooklyn.properties:
brooklyn.jclouds.hpcloud-compute.identity = projectname:usernamebrooklyn.jclouds.hpcloud-compute.credential = password
Regarding step 2, I've looked up the image IDs for Ubuntu 12.04 LTS, and these should work:
brooklyn.location.named.HP\ Cloud\ Arizona-1 = jclouds:hpcloud-compute:az-1.region-a.geo-1brooklyn.location.named.HP\ Cloud\ Arizona-1.imageId = az-1.region-a.geo-1/75845brooklyn.location.named.HP\ Cloud\ Arizona-1.user = ubuntubrooklyn.location.named.HP\ Cloud\ Arizona-2 = jclouds:hpcloud-compute:az-2.region-a.geo-1brooklyn.location.named.HP\ Cloud\ Arizona-2.imageId = az-1.region-a.geo-2/67074brooklyn.location.named.HP\ Cloud\ Arizona-2.user = ubuntubrooklyn.location.named.HP\ Cloud\ Arizona-3 = jclouds:hpcloud-compute:az-3.region-a.geo-1brooklyn.location.named.HP\ Cloud\ Arizona-3.imageId = az-1.region-a.geo-3/48335brooklyn.location.named.HP\ Cloud\ Arizona-3.user = ubuntu
I've tested out an app in az-1 but haven't yet tried the rest (I'm not expecting any more problems, however.)
I'll get the rest of the IDs checked tomorrow, and will work to get the HP Cloud config into the shipped brooklyn.properties.
Shout back if you're seeing any problems.
Cheers,Richard.
On 25 September 2013 17:02, Richard Downer <richard...@cloudsoftcorp.com> wrote:
Hi Rusty. Welcome to brooklyn :)
HP Cloud should certainly be compatible with brooklyn. I'll give a try shortly to confirm, but here's what I think *should* work.
Firstly you need to define your identity and credential (these are jclouds terms; jclouds is the library that brooklyn uses to do the work of talking to all the different cloud providers.) For HP Cloud, the identity is in the form "tenantid:username". You can get your tenant ID (also known as project ID) from this page: https://account.hpcloud.com/account/api_keys. Username is the same username you use to log in to the web console. The credential is your web console password.
You then add these to brooklyn.properties like this:
brooklyn.jclouds.hpcloud-compute.identity = 1234567890:johndoebrooklyn.jclouds.hpcloud-compute.credential = p4ssw0rd
Step 2 is to define named locations for the HP Cloud compute zones. This should do it:
brooklyn.location.named.HP\ Cloud\ Arizona-1 = jclouds:hpcloud-compute:az-1.region-a.geo-1brooklyn.location.named.HP\ Cloud\ Arizona-2 = jclouds:hpcloud-compute:az-2.region-a.geo-1brooklyn.location.named.HP\ Cloud\ Arizona-3 = jclouds:hpcloud-compute:az-3.region-a.geo-1
That should be enough to get things going - with this information, brooklyn should be able to log in to your HP Cloud account and start VMs in the different regions. However we sometimes find that it's best to give brooklyn specific image IDs, rather than letting jclouds pick an image ID for us (you can see this has been done for the various Amazon EC2 zones) - we may need to log into doing this for HPCloud, too.
As I said, this *should* work but I haven't tried this yet. I will give it a go shortly, and post a correction if I'm wrong :)
On 25 September 2013 16:36, Mihály László Molnár <laci...@gmail.com> wrote:
Hi All!--
I'm new to brooklyn and I think I will have some question.
The first one, is that in brooklyn.properties I don't see any example for HP Cloud or OpenStack, just only this:
# brooklyn.location.named.HP = jclouds:hpcloud-compute
So my question is how to setup HP and OpenStack cloud in brooklyn.properties and how to use them, because every example for AWS as I can see.
My goal is to make a system which scales from my private OpenStack cloud to public HP.
Thanks for your help!
Rusty
You received this message because you are subscribed to the Google Groups "brooklyn-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brooklyn-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
Richard Downer • Principal Software Engineer • Cloudsoft Corporation • http://www.cloudsoftcorp.com
Skype richardcloudsoft • Twitter @FrontierTown
--
Richard Downer • Principal Software Engineer • Cloudsoft Corporation • http://www.cloudsoftcorp.com
Skype richardcloudsoft • Twitter @FrontierTown
--
You received this message because you are subscribed to the Google Groups "brooklyn-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brooklyn-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "brooklyn-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brooklyn-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
Richard Downer • Principal Software Engineer • Cloudsoft Corporation • http://www.cloudsoftcorp.com
Skype richardcloudsoft • Twitter @FrontierTown
--
You received this message because you are subscribed to the Google Groups "brooklyn-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brooklyn-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Thanks for the help again!curl -s script.sh | /bin/bashI would like to pass a script like this:Hi!I have another question about the userMetadata property. (When I start it says openstack doesnt support userData)
#!/bin/bash
As you can see its a two liner. How can I pass this? Its working from Horizon. If I try it in brooklyn its says the /bin/bash=null.
Btw� my original problem is that I want to set my hostname. So I do this after creating the instance or the other chance I see is to inherit from the classes in the example. I tried this way because I would like to see how the elasticwebapp works. Jboss doesnt start without a resolvable hostname.
Rusty
Rusty
Rusty
Rusty
The first part is the "project name", which you can get from this page:�https://account.hpcloud.com/projects
The second part is the username that I use to log in to the web console.
Also make sure that there's no other *.identity or *.credential lines in brooklyn.properties that may be overriding this one.
Hopefully this should get you through. If there's still an issue, then maybe HPCloud have changed something for newer accounts, and we'll debug it in more detail.
On 22 October 2013 12:55, David Toy <davi...@cloudsoftcorp.com> wrote:
Hi Rusty,
While I'm not a power user like Richard or Alex, I do help with the docs.
I've been pulling brooklyn.properties options together in a spreadsheet in preparation for writing something comprehensive. Perhaps this will be useful in this raw form https://docs.google.com/a/cloudsoftcorp.com/spreadsheet/ccc?key=0Avy7Tdf2EOIqdGQzSlNiT2M0V19SejBScDhSdzMtT2c#gid=0
Regarding IPs, there is an OpenStack specific option -�auto-create-floating-ips - which Alex sets to false. Does setting this to true resolve your problem?
Thanks,David
Rusty
Rusty
Hi Rusty,
your settings look right.� depending what the other end is doing you might need some other options however.� fwiw here is what i use:
��� brooklyn.location.named.hpcloud-compute-at=jclouds:openstack-nova:https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0
��� brooklyn.location.named.hpcloud-compute-at.identity=al...@cloudsoftcorp.com-tenant1:al...@cloudsoftcorp.com
��� brooklyn.location.named.hpcloud-compute-at.credential=p4ssw0rd
��� # configure login because this is not correctly autodetected
��� brooklyn.location.named.hpcloud-compute-at.privateKeyFile=~/.ssh/id_rsa
��� brooklyn.location.named.hpcloud-compute-at.loginUser=ubuntu
��� # set this to true in some openstacks to get public IP's automatically assigned
��� brooklyn.location.named.hpcloud-compute-at.jclouds.openstack-nova.auto-create-floating-ips=false
��� # optional to re-use the same keypair and security groups
��� brooklyn.location.named.hpcloud-compute-at.jclouds.openstack-nova.auto-generate-keypairs=false
��� brooklyn.location.named.hpcloud-compute-at.securityGroups=universal
��� brooklyn.location.named.hpcloud-compute-at.keyPair=mykeypair
��� brooklyn.location.named.hpcloud-compute-at.loginUser.privateKeyFile=~/.ssh/hpcloud-mykeypair.pem
this blog might be helpful:
re images -- if you set an imageId property that will use the image.
however as you say, this is not very portable, so our common approrach is to use a plain linux image, and install what is needed.� that's what the entities like nginx etc do, so that they can run in any cloud.� as an optimisation once it's working you can plug in a different "driver" which uses a known imageId to skip software installation (or take a snapshot from creation of the first instance of an entity and use that for subsequent instances, i.e. writing code to do exactly the behaviour you want).
HTH
--A
On 26/09/2013 09:42, Richard Downer wrote:
Hi Rusty,
You can set an endpoint with this property:
brooklynjclouds.openstack-nova.endpoint = http://keystone-url/v2
For your question about using images pre-installed with your application, I'm not sure of the answer to that. I'll see what I can find out.
Richard.
On 25 September 2013 18:06, Moln�r Mih�ly L�szl� <laci...@gmail.com> wrote:
I think OpenStack is similar. According to this - http://jclouds.incubator.apache.org/documentation/quickstart/openstack/ , I think it should look like this:Hi Richard!Thanks a lot for the quick answer. I will try it tomorrow.
brooklyn.jclouds.openstack-nova.identity = 1234567890:johndoebrooklyn.jclouds.openstack-nova.credential = p4ssw0rd
But somehow I have to configure my own endpoint/api url. Is there any chance that this could work?:
brooklyn.location.named.MyOpenStack = jclouds:openstack-nova:https://apiurl:port/v2
How about more images? If I have prepared images as the docs says, for example one for nginx and one for the webapplication so I can speed up deployment.
I'm still just checking out the docs and examples, but is there any example for how to use these images? I think I have to create my own entity and there specify the image, read from property and then the other activities.
Or I have to create new location for every image?
Thanks again!
Rusty
On Wed, Sep 25, 2013 at 6:40 PM, Richard Downer <richard...@cloudsoftcorp.com> wrote:
OK, so I've tried it out - I got one thing wrong, and my suspicions about needing to supply image IDs were correct.
My mistake is with the identity - it's not the project/tenant ID, it's the project/tenant *name* that needs to be given. You can find your project name on this page:�https://account.hpcloud.com/projects
So you will need to add this to brooklyn.properties:
brooklyn.jclouds.hpcloud-compute.identity = projectname:usernamebrooklyn.jclouds.hpcloud-compute.credential = password
Regarding step 2, I've looked up the image IDs for Ubuntu 12.04 LTS, and these should work:
brooklyn.location.named.HP\ Cloud\ Arizona-1 = jclouds:hpcloud-compute:az-1.region-a.geo-1brooklyn.location.named.HP\ Cloud\ Arizona-1.imageId = az-1.region-a.geo-1/75845brooklyn.location.named.HP\ Cloud\ Arizona-1.user = ubuntubrooklyn.location.named.HP\ Cloud\ Arizona-2 = jclouds:hpcloud-compute:az-2.region-a.geo-1brooklyn.location.named.HP\ Cloud\ Arizona-2.imageId = az-1.region-a.geo-2/67074brooklyn.location.named.HP\ Cloud\ Arizona-2.user = ubuntubrooklyn.location.named.HP\ Cloud\ Arizona-3 = jclouds:hpcloud-compute:az-3.region-a.geo-1brooklyn.location.named.HP\ Cloud\ Arizona-3.imageId = az-1.region-a.geo-3/48335brooklyn.location.named.HP\ Cloud\ Arizona-3.user = ubuntu
I've tested out an app in az-1 but haven't yet tried the rest (I'm not expecting any more problems, however.)
I'll get the rest of the IDs checked tomorrow, and will work to get the HP Cloud config into the shipped brooklyn.properties.
Shout back if you're seeing any problems.
Cheers,Richard.
On 25 September 2013 17:02, Richard Downer <richard...@cloudsoftcorp.com> wrote:
Hi Rusty. Welcome to brooklyn :)
HP Cloud should certainly be compatible with brooklyn. I'll give a try shortly to confirm, but here's what I think *should* work.
Firstly you need to define your identity and credential (these are jclouds terms; jclouds is the library that brooklyn uses to do the work of talking to all the different cloud providers.) For HP Cloud, the identity is in the form "tenantid:username". You can get your tenant ID (also known as project ID) from this page:�https://account.hpcloud.com/account/api_keys. Username is the same username you use to log in to the web console. The credential is your web console password.
You then add these to brooklyn.properties like this:
brooklyn.jclouds.hpcloud-compute.identity = 1234567890:johndoebrooklyn.jclouds.hpcloud-compute.credential = p4ssw0rd
Step 2 is to define named locations for the HP Cloud compute zones. This should do it:
brooklyn.location.named.HP\ Cloud\ Arizona-1 = jclouds:hpcloud-compute:az-1.region-a.geo-1brooklyn.location.named.HP\ Cloud\ Arizona-2 = jclouds:hpcloud-compute:az-2.region-a.geo-1brooklyn.location.named.HP\ Cloud\ Arizona-3 = jclouds:hpcloud-compute:az-3.region-a.geo-1
That should be enough to get things going - with this information, brooklyn should be able to log in to your HP Cloud account and start VMs in the different regions. However we sometimes find that it's best to give brooklyn specific image IDs, rather than letting jclouds pick an image ID for us (you can see this has been done for the various Amazon EC2 zones) - we may need to log into doing this for HPCloud, too.
As I said, this *should* work but I haven't tried this yet. I will give it a go shortly, and post a correction if I'm wrong :)
On 25 September 2013 16:36, Mih�ly L�szl� Moln�r <laci...@gmail.com> wrote:
Hi All!--
I'm new to brooklyn and I think I will have some question.
The first one, is that in brooklyn.properties I don't see any example for HP Cloud or OpenStack, just only this:
# brooklyn.location.named.HP = jclouds:hpcloud-compute
So my question is how to setup HP and OpenStack cloud in brooklyn.properties and how to use them, because every example for AWS as I can see.
My goal is to make a system which scales from my private OpenStack cloud to public HP.
Thanks for your help!
Rusty
You received this message because you are subscribed to the Google Groups "brooklyn-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brooklyn-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
Richard Downer � Principal Software Engineer � Cloudsoft Corporation � http://www.cloudsoftcorp.com
Skype richardcloudsoft � Twitter @FrontierTown
--
Richard Downer � Principal Software Engineer � Cloudsoft Corporation � http://www.cloudsoftcorp.com
Skype richardcloudsoft � Twitter @FrontierTown
--
You received this message because you are subscribed to the Google Groups "brooklyn-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brooklyn-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "brooklyn-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brooklyn-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
Richard Downer � Principal Software Engineer � Cloudsoft Corporation � http://www.cloudsoftcorp.com
Skype richardcloudsoft � Twitter @FrontierTown
--
You received this message because you are subscribed to the Google Groups "brooklyn-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brooklyn-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "brooklyn-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brooklyn-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "brooklyn-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brooklyn-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
Richard Downer � Principal Software Engineer � Cloudsoft Corporation � http://www.cloudsoftcorp.com
Skype richardcloudsoft � Twitter @FrontierTown
--
You received this message because you are subscribed to the Google Groups "brooklyn-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brooklyn-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "brooklyn-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brooklyn-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "brooklyn-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brooklyn-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
Although "CUSTOM_MACHINE_SETUP_SCRIPT_URL" leads you to believe the key accepts a URL, I believe it only accepts paths to files on your local disk, without the file:// prefix.
Here's the relevant code from JcloudsLocation:
if(Strings.isNonBlank(setupScript)) {
String setupVarsString = ...;
Map<String, String> substitutions = ..;
String script = TemplateProcessor.processTemplate(setupScript, substitutions);
sshMachineLocation.execCommands("Customizing node " + this, ImmutableList.of(script));
}
TemplateProcessor.processTemplate only accepts references to files. It's been on my list to alter for a while.
Sam
On 05/11/2013 10:22, Alex Heneveld wrote:
Hi Rusty
How are you passing the script? We support the following as part of location setup:
<location.prefix>.setup.script=<url>
e.g.
brooklyn.location.named.My\ HP-Cloud.setup.script=file:///path/to/script.sh
to have the given script loaded at runtime. (You can also use classpath URLs of the form classpath:/org/acme/script.sh .)
You can also pass vars in via <location.prefix>.setup.script.vars.
However ensuring that a sensible hostname is set is a common requirement which you can have done automatically with:
<location.prefix>.generate.hostname=true
Andrea is the man behind all this good stuff.
HTH
Best
Alex
On 04/11/2013 17:46, Molnár Mihály László wrote:
Thanks for the help again!curl -s script.sh | /bin/bashI would like to pass a script like this:Hi!I have another question about the userMetadata property. (When I start it says openstack doesnt support userData)
#!/bin/bash
As you can see its a two liner. How can I pass this? Its working from Horizon. If I try it in brooklyn its says the /bin/bash=null.
Btw my original problem is that I want to set my hostname. So I do this after creating the instance or the other chance I see is to inherit from the classes in the example. I tried this way because I would like to see how the elasticwebapp works. Jboss doesnt start without a resolvable hostname.
can you summarize what are you trying to achieve?
To give you a little context, at the moment Brooklyn exposes this subset of jclouds properties
https://github.com/brooklyncentral/brooklyn/blob/master/locations/jclouds/src/main/java/brooklyn/location/jclouds/JcloudsLocation.java#L611
These properties needs to be TemplateOptions (or its extensions), as Brooklyn is supporting the jclouds abstract model.
For example, Brooklyn can certainly supports the options coming from NovaTemplateOptions, like it does for AUTO_GENERATE_KEYPAIRS and AUTO_CREATE_FLOATING_IPS from
https://github.com/jclouds/jclouds/blob/master/apis/openstack-nova/src/main/java/org/jclouds/openstack/nova/v2_0/compute/options/NovaTemplateOptions.java
but CreateServerOptions.java is too Nova specific as far as I can see.
In other words, Brooklyn will ultimately use NovaComputeServiceAdapter.createNodeWithGroupEncodedIntoName(String group, String name,
Template template)
(see https://github.com/jclouds/jclouds/blob/master/apis/openstack-nova/src/main/java/org/jclouds/openstack/nova/v2_0/compute/NovaComputeServiceAdapter.java#L101-L139) where the TemplateOptions are converted to CreateServerOptions, but in this method the networks are not considered explicitly.
I hope this helps you.
Please let us know what you need to do and will try to figure it out.
Thanks,
Andrea
--
You received this message because you are subscribed to the Google Groups "brooklyn-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brooklyn-users+unsubscribe@googlegroups.com.