5
<title>Juju Documentation - Configuring Juju to work with HPCloud</title>
6
<link href="//fonts.googleapis.com/css?family=Ubuntu:400,400italic" rel="stylesheet" type="text/css"/>
7
<link href="//fonts.googleapis.com/css?family=Ubuntu+Mono:400" rel="stylesheet" type="text/css"/>
8
<link href="https://juju.ubuntu.com/wp-content/themes/juju-website/css/reset.css" rel="stylesheet" type="text/css"/>
9
<link href="https://juju.ubuntu.com/wp-content/themes/juju-website/css/960.css" rel="stylesheet" type="text/css"/>
10
<link href="https://juju.ubuntu.com/wp-content/themes/juju-website/css/base.css" rel="stylesheet" type="text/css"/>
11
<link href="https://juju.ubuntu.com/wp-content/themes/juju-website/css/resources.css" rel="stylesheet" type="text/css"/>
12
<link href="css/main.css" rel="stylesheet" type="text/css"/>
13
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
14
<script src="http://app.stacktack.com/jquery.stacktack.min.js"></script>
15
<script type="text/javascript">
16
$(document).ready(function() {
17
$(document).stacktack();
19
</script><!--[if lt IE 9]>
20
<script type="text/javascript" src="//html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
22
<body class="resources">
24
<div class="header-login">
29
<div class="header-navigation">
31
<nav role="navigation">
33
<li class="page_item"><a href="https://juju.ubuntu.com/">Home</a></li>
34
<li class="page_item current_page_item"><a href="https://juju.ubuntu.com/">Resources</a></li>
35
<li class="page_item"><a href="https://juju.ubuntu.com/">Community</a></li>
36
<li class="page_item"><a href="https://juju.ubuntu.com/">Charm Store</a></li>
37
<li class="page_item"><a href="https://juju.ubuntu.com/">Events</a></li>
38
<li class="page_item"><a href="https://juju.ubuntu.com/">Survey</a></li>
40
<form id="form-search" method="get" action="/">
42
<input id="input-search" type="text" name="s" value="Search">
47
</nav><a href="https://juju.ubuntu.com/" class="logo-ubuntu"><img src="https://juju.ubuntu.com/wp-content/themes/juju-website/img/logo-ubuntu.png"></a>
50
<div class="header-content">
51
<div class="clearfix"><img src="https://juju.ubuntu.com/wp-content/themes/juju-website/img/arrow-nav.png" width="9" height="5" style="left:894px; display: block;" class="arrow-nav">
52
<div class="header-navigation-secondary"></div>
53
<div class="header-image"></div>
55
<h2>A collection of some of the most important online references for Juju users and developers.</h2>
59
<section id="content" class="container-12">
60
<div class="grid-12 doc-container">
61
<div class="grid-3 doc-navigation">
62
<nav role="navigation">
65
<li class=""><a href="getting-started.html">Getting Started</a></li>
66
<li class=" sub"><a href="getting-started.html#intro">Introduction</a></li>
67
<li class=" sub"><a href="getting-started.html#install">Installation</a></li>
68
<li class=" sub"><a href="config-aws.html">AWS Configuration</a></li>
69
<li class=" sub"><a href="config-hpcloud.html">HP Cloud Configuration</a></li>
70
<li class=" sub"><a href="">OpenStack Configuration</a></li>
71
<li class=" sub"><a href="config-maas.html">MAAS Configuration</a></li>
72
<li class=" sub"><a href="getting-started.html#test">Testing your setup</a></li>
73
<li class=""><a href="charms.html">Using Charms</a></li>
74
<li class=" sub"><a href="charms.html#intro">What are Charms?</a></li>
75
<li class=" sub"><a href="charms-deploying.html">Deploying Services</a></li>
76
<li class=" sub"><a href="charms-constraints.html">Using constraints</a></li>
77
<li class=" sub"><a href="charms-config.html">Service Configuration</a></li>
78
<li class=" sub"><a href="charms-relations.html">Service Relationships</a></li>
79
<li class=" sub"><a href="charms-exposing.html">Exposing Services</a></li>
80
<li class=" sub"><a href="charms-scaling.html">Scaling Services</a></li>
81
<li class=" sub"><a href="charms-destroy.html">Destroying Services</a></li>
83
<h1>Charm Authors</h1>
85
<li class=""><a href="authors-charm-writing.html">Writing a charm</a></li>
86
<li class=" sub"><a href="authors-subordinate-services.html">Subordinate services</a></li>
87
<li class=" sub"><a href="authors-implicit-relations.html">Implicit Relations</a></li>
88
<li class=" sub"><a href="authors-testing.html">Charm Testing</a></li>
89
<li class=" sub"><a href="authors-hooks.html">Hook debugging</a></li>
90
<li class=""><a href="authors-charm-store.html">The Juju Charm Store</a></li>
91
<li class=" sub"><a href="authors-charm-policy.html">Charm store policy</a></li>
92
<li class=" sub"><a href="authors-charm-best-practice.html">Best practices</a></li>
93
<li class=" sub"><a href="authors-charm-quality.html">Charm Quality Rating</a></li>
96
<li class="sub"><a href="commands.html">Juju commands</a></li>
97
<li class="sub"><a href="glossary.html">Glossary</a></li>
98
<li class="sub"><a href="contributing.html">Contribute to the Docs!</a></li>
102
<div class="grid-9 doc-content">
104
<section id="config_hpcloud">
105
<h1>Configuring for HPCloud</h1>
106
<p>You should start by generating a generic configuration file for Juju, using the command:
107
<pre><code>juju generate-config -w</code></pre>
108
<p>This will generate a file, <strong>environments.yaml</strong>, which will live in your <strong>~/.juju/</strong> directory (and will create the directory if it doesn't already exist).
109
<p>The essential configuration sections for HPCloud look like this:</p>
112
type: openstack
113
admin-secret: 6638bebf0c54de791007e0247d4dae98
114
control-bucket: juju-bc66a4a4adbee50b2cea6570436528e5
115
tenant-name: <strong class="code">"juju-project1"</strong>
116
auth-url: <strong class="code">https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0</strong>
117
default-image-id: <strong class="code">"81078"</strong>
118
default-instance-type: "standard.xsmall"
119
auth-mode: userpass
120
username: <strong class="code">"xxxyour-hpcloud-usernamexxx"</strong>
121
password: <strong class="code">"xxxpasswordxxx"</strong>
122
region: <strong class="code">az-1.region-a.geo-1</strong>
123
public-bucket-url: <strong class="code">https://region-a.geo-1.objects.hpcloudsvc.com/v1/60502529753910</strong>
125
<p> The items highlighted are values you will need to enter, and are explained below. You will find most of the relevant information on the <a href="https://account.hpcloud.com/account/api_keys"> HP Cloud API Keys page</a></p>
127
<li><strong>tenant-name:</strong> For HPCloud, this is listed as the project name on the API keys page.</li>
129
<img src="./media/getting_started-hpc-tenant.png" alt="image showing project name">
132
<li><strong>auth-url:</strong>This is the keystone url for authentication. It is given (on a region by region basis) under the heading "Service Endpoints - identity"
135
<img src="./media/getting_started-hpc-config1.png" alt="image showing service endpoints">
137
<li><strong>region:</strong> This is the longer format region name, given under the headings for Block Storage and Compute sections.</li>
139
<img src="./media/getting_started-hpc-region.png" alt="image showing project name">
141
<li><strong>default-image-id:</strong> This is the number assigned to the images available to the HP Cloud. Current;y, these may vary from region to region. The best way to ensure that you have the correct image id is to go to the <a href="https://console.hpcloud.com/compute/az-1_region-a_geo-1/servers"> HP Cloud Console > Servers </a> 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. </li>
143
<img src="./media/getting_started-hpc-image.png" alt="determining the image id number">
145
<li><strong>username:</strong> Enter your HP Cloud login username. </li>
146
<li><strong>password:</strong> Enter your HP Cloud login password. </li>
147
<li><strong>public-bucket-url:</strong> Currently up to date tools are provided to HP Cloud by a public bucket. You should enter the url "https://region-a.geo-1.objects.hpcloudsvc.com/v1/60502529753910" here. </li>
153
<div class="shadow"></div>
156
<nav role="navigation" class="clearfix">
158
<li><a href="https://juju.ubuntu.com/get-started">Get started</a></li>
159
<li class="page_item"><a href="https://juju.ubuntu.com/get-started/local/">Local</a></li>
160
<li class="page_item"><a href="https://juju.ubuntu.com/get-started/amazon/">Amazon Web Services</a></li>
161
<li class="page_item"><a href="https://juju.ubuntu.com/get-started/hp-cloud/">HP Cloud</a></li>
162
<li class="page_item"><a href="https://juju.ubuntu.com/get-started/rackspace/">Rackspace</a></li>
163
<li class="page_item"><a href="https://juju.ubuntu.com/get-started/openstack/">Openstack</a></li>
164
<li class="page_item"><a href="https://juju.ubuntu.com/get-started/maas/">MAAS</a></li>
167
<li><a href="https://juju.ubuntu.com/resources">Resources</a></li>
168
<li><a href="https://juju.ubuntu.com/docs">Documentation</a></li>
169
<li><a href="https://juju.ubuntu.com/resources/videos">Videos</a></li>
170
<li><a href="http://uistage.jujucharms.com:8080/">Juju GUI Demo</a></li>
173
<li><a href="https://juju.ubuntu.com/community">Community</a></li>
174
<li class="page_item"><a href="https://juju.ubuntu.com/community/juju-blog/">Blog</a></li>
175
<li class="page_item"><a href="https://juju.ubuntu.com/community/weekly-charm-meeting/">Charm Meetings</a></li>
176
<li class="page_item"><a href="https://juju.ubuntu.com/community/charmers/">Charmers</a></li>
177
<li class="page_item"><a href="https://lists.ubuntu.com/mailman/listinfo/juju">Mailing List</a></li>
178
<li class="page_item"><a href="http://webchat.freenode.net/?channels=juju">Chat</a></li>
179
<li class="page_item"><a href="http://askubuntu.com/questions/tagged/juju?sort=faq&amp;pagesize=50">FAQ</a></li>
182
<li><a href="https://launchpad.net/juju">Code</a></li>
183
<li><a href="https://launchpad.net/juju-core">Juju Core</a></li>
184
<li><a href="https://launchpad.net/charms">Charms</a></li>
189
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
190
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.8.14/jquery-ui.min.js"></script>
191
<script type="text/javascript" src="js/main.js"></script>
b'\\ No newline at end of file'