You should start by generating a generic configuration file for Juju, using the command:
juju generate-config -w
This will generate a file, environments.yaml, which will live in your ~/.juju/ directory (and will create the directory if it doesn't already exist).
The essential configuration sections for HPCloud look like this:
hpcloud:
type: openstack
admin-secret: 6638bebf0c54ffff1007e0247d4dae98
control-bucket: juju-bc66a4a4adbee50b2ceeee70436528e5
tenant-name: "juju-project1"
auth-url: https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0
default-image-id: "81078"
default-instance-type: "standard.xsmall"
auth-mode: userpass
username: "xxxyour-hpcloud-usernamexxx"
password: "xxxpasswordxxx"
region: az-1.region-a.geo-1
public-bucket-url: https://region-a.geo-1.objects.hpcloudsvc.com/v1/60502529753910
The items highlighted are values you will need to enter, and are explained below. You will find most of the relevant information on the HP Cloud API Keys page
- tenant-name: For HPCloud, this is listed as the project name on the API keys page.

- auth-url:This is the keystone url for authentication. It is given (on a region by region basis) under the heading "Service Endpoints - identity"
- region: This is the longer format region name, given under the headings for Block Storage and Compute sections.
- default-image-id: This is the number assigned to the images available to the HP Cloud. Currently, these may vary from region to region. The best way to ensure that you have the correct image id is to go to the HP Cloud Console > Servers page and Click on the link to "Create a new server from an image". This will display a list of available images. In the "partner provided images" section you should find a relevant version of Ubuntu. The number in brackets after the image description is the id number you require.