Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I would like to test juju charms on trystack.org, however I have not found any docu, how to configure juju for the openstack API?

share|improve this question

1 Answer 1

up vote 8 down vote accepted

First off you need juju and charm-tools, ensure you have the latest stable juju:

sudo add-apt-repository ppa:juju/stable 
sudo apt-get update && sudo apt-get install juju-core charm-tools

Do a juju generate-config -w to generate a config for OpenStack that you can customize for your needs.

Here's an example OpenStack configuration for ~/.juju/environments.yaml, including the commented out sections:

  openstack:
    type: openstack
    # Specifies whether the use of a floating IP address is required to give the nodes
    # a public IP address. Some installations assign public IP addresses by default without
    # requiring a floating IP address.
    # use-floating-ip: false
    admin-secret: 13850d1b9786065cadd0f477e8c97cd3
    # Globally unique swift bucket name
    control-bucket: juju-fd6ab8d02393af742bfbe8b9629707ee
    # Usually set via the env variable OS_AUTH_URL, but can be specified here
    # auth-url: https://yourkeystoneurl:443/v2.0/
    # override if your workstation is running a different series to which you are deploying
    # default-series: precise
    # The following are used for userpass authentication (the default)
    auth-mode: userpass
    # Usually set via the env variable OS_USERNAME, but can be specified here
    # username: <your username>
    # Usually set via the env variable OS_PASSWORD, but can be specified here
    # password: <secret>
    # Usually set via the env variable OS_TENANT_NAME, but can be specified here
    # tenant-name: <your tenant name>
    # Usually set via the env variable OS_REGION_NAME, but can be specified here
    # region: <your region>

References:

Other OpenStack Based Clouds:

This answer is for generic upstream OpenStack support, if you're using an OpenStack-based provider check these questions out for provider-specific information:

share|improve this answer
    
Thanks Jorge.. but I have not found a way to configure environments.yaml work with trystack.org yet –  txwikinger Jul 29 '12 at 15:46
    
@txwikinger Trystack doesn't expose any Storage, only compute. You need both Swift and Compute to use Juju. –  Marco Ceppi Jul 31 '12 at 20:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.