~evilnick/juju-core/docs-html5-first

« back to all changes in this revision

Viewing changes to htmldocs/config-hpcloud.html

  • Committer: Nick Veitch
  • Date: 2013-06-25 18:14:51 UTC
  • Revision ID: nick.veitch@canonical.com-20130625181451-r00bzowwxkisjkts
HTML5 version of docs

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html>
 
2
<html>
 
3
  <head>
 
4
    <meta charset="utf-8">
 
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();
 
18
      });
 
19
    </script><!--[if lt IE 9]>
 
20
    <script type="text/javascript" src="//html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
 
21
  </head>
 
22
  <body class="resources">
 
23
    <header>
 
24
      <div class="header-login">
 
25
        <ul>
 
26
          <li>&nbsp;</li>
 
27
        </ul>
 
28
      </div>
 
29
      <div class="header-navigation">
 
30
        <div>
 
31
          <nav role="navigation">
 
32
            <ul>
 
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>
 
39
              <li>
 
40
                <form id="form-search" method="get" action="/">
 
41
                  <fieldset>
 
42
                    <input id="input-search" type="text" name="s" value="Search">
 
43
                  </fieldset>
 
44
                </form>
 
45
              </li>
 
46
            </ul>
 
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>
 
48
        </div>
 
49
      </div>
 
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>
 
54
          <h1>Resources</h1>
 
55
          <h2>A collection of some of the most important online references for Juju users and developers.</h2>
 
56
        </div>
 
57
      </div>
 
58
    </header>
 
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">
 
63
            <h1>User Guide</h1>
 
64
            <ul>
 
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>
 
82
            </ul>
 
83
            <h1>Charm Authors</h1>
 
84
            <ul></ul>
 
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>
 
94
            <h1>Reference</h1>
 
95
            <ul>
 
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>
 
99
            </ul>
 
100
          </nav>
 
101
        </div>
 
102
        <div class="grid-9 doc-content">
 
103
          <article>
 
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>
 
110
            <pre><code>
 
111
             &nbsp;&nbsp;hpcloud:
 
112
             &nbsp;&nbsp;&nbsp;&nbsp;type: openstack
 
113
             &nbsp;&nbsp;&nbsp;&nbsp;admin-secret: 6638bebf0c54de791007e0247d4dae98
 
114
             &nbsp;&nbsp;&nbsp;&nbsp;control-bucket: juju-bc66a4a4adbee50b2cea6570436528e5
 
115
             &nbsp;&nbsp;&nbsp;&nbsp;tenant-name: <strong class="code">"juju-project1"</strong>
 
116
             &nbsp;&nbsp;&nbsp;&nbsp;auth-url: <strong class="code">https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0</strong>
 
117
             &nbsp;&nbsp;&nbsp;&nbsp;default-image-id: <strong class="code">"81078"</strong>
 
118
             &nbsp;&nbsp;&nbsp;&nbsp;default-instance-type: "standard.xsmall"
 
119
             &nbsp;&nbsp;&nbsp;&nbsp;auth-mode: userpass
 
120
             &nbsp;&nbsp;&nbsp;&nbsp;username: <strong class="code">"xxxyour-hpcloud-usernamexxx"</strong>
 
121
             &nbsp;&nbsp;&nbsp;&nbsp;password: <strong class="code">"xxxpasswordxxx"</strong>
 
122
             &nbsp;&nbsp;&nbsp;&nbsp;region: <strong class="code">az-1.region-a.geo-1</strong>
 
123
             &nbsp;&nbsp;&nbsp;&nbsp;public-bucket-url: <strong class="code">https://region-a.geo-1.objects.hpcloudsvc.com/v1/60502529753910</strong>
 
124
            </code></pre>
 
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>
 
126
            <ul>
 
127
              <li><strong>tenant-name:</strong> For HPCloud, this is listed as the project name on the API keys page.</li>
 
128
            </ul>
 
129
            <img src="./media/getting_started-hpc-tenant.png" alt="image showing project name">
 
130
            
 
131
            <ul>
 
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"
 
133
              </li>
 
134
            </ul>
 
135
            <img src="./media/getting_started-hpc-config1.png" alt="image showing service endpoints">  
 
136
            <ul>
 
137
              <li><strong>region:</strong> This is the longer format region name, given under the headings for Block Storage and Compute sections.</li>
 
138
            </ul>
 
139
            <img src="./media/getting_started-hpc-region.png" alt="image showing project name">
 
140
            <ul>
 
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 &GT; 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>
 
142
            </ul>
 
143
            <img src="./media/getting_started-hpc-image.png" alt="determining the image id number">
 
144
            <ul>
 
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>
 
148
            </section>
 
149
          </article>
 
150
        </div>
 
151
      </div>
 
152
    </section>
 
153
    <div class="shadow"></div>
 
154
    <footer>
 
155
      <div>
 
156
        <nav role="navigation" class="clearfix">
 
157
          <ul>
 
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>
 
165
          </ul>
 
166
          <ul>
 
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>
 
171
          </ul>
 
172
          <ul>
 
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;amp;pagesize=50">FAQ</a></li>
 
180
          </ul>
 
181
          <ul class="last">
 
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>
 
185
          </ul>
 
186
        </nav>
 
187
      </div>
 
188
    </footer>
 
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>
 
192
  </body>
 
193
</html>
 
 
b'\\ No newline at end of file'