Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
up vote 9 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:

    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>


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 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


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.