Merge lp:~jorge/juju-core/lxc-deploy-examples into lp:juju-core/docs

Proposed by Jorge Castro
Status: Merged
Merged at revision: 194
Proposed branch: lp:~jorge/juju-core/lxc-deploy-examples
Merge into: lp:juju-core/docs
Diff against target: 71 lines (+14/-5)
1 file modified
htmldocs/charms-deploying.html (+14/-5)
To merge this branch: bzr merge lp:~jorge/juju-core/lxc-deploy-examples
Reviewer Review Type Date Requested Status
Nick Veitch (community) Needs Information
Review via email: mp+194223@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Nick Veitch (evilnick) wrote :

This branch reintroduces the section about changing the default environment. AFAIK that feature still isn't implemented, unless you know better?

review: Needs Information
Revision history for this message
Jorge Castro (jorge) wrote :

Yep it works, it's also in the client documentation, it just wasn't synced with the online docs.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'htmldocs/charms-deploying.html'
2--- htmldocs/charms-deploying.html 2013-10-31 13:35:14 +0000
3+++ htmldocs/charms-deploying.html 2013-11-06 20:29:28 +0000
4@@ -107,7 +107,7 @@
5 <pre class="prettyprint">juju deploy cs:precise/mysql</pre>
6
7 <p>which follows the format:</p>
8- <pre class="prettyprint">&LT;repository&GT;:&LT;series&GT;&LT;service&GT;</pre>
9+ <pre class="prettyprint">&LT;repository&GT;:&LT;series&GT;/&LT;service&GT;</pre>
10
11 <h1 id="local">Deploying from a local repository</h1>
12
13@@ -148,7 +148,7 @@
14 fetching it from the charm store. If you wish to check
15 where a charm was installed from, it is listed in the
16 <code>juju status</code> output.</p>
17-<!--- NOT IMPLEMENTED https://bugs.launchpad.net/pyjuju/+bug/906008
18+
19 <h1>Changing the defaults</h1>
20
21 <p>As we have seen, we can specify repositories to
22@@ -165,7 +165,7 @@
23 - http://charms.ubuntu.com/collection/openstack
24 - http://charms.ubuntu.com/people/miked
25 - /var/lib/charms</pre>
26---->
27+
28 <h1>A note about caching...</h1>
29
30 <p>After juju resolves a charm and its dependencies, it
31@@ -177,7 +177,7 @@
32 </section>
33
34 <section id="deploying-to-machines">
35- <h1>Deploying to specific machines</h1>
36+ <h1>Deploying to specific machines and containers</h1>
37
38 <p>Juju has native support for specifying which machine
39 a charm should be deployed to. This is useful for a few
40@@ -198,6 +198,14 @@
41 <p>As you can see from the example we've deployed mysql
42 and rabbitmq-server "to" node 0.</p>
43
44+ <p>You can also deploy to containers:</p>
45+ <pre class="prettyprint">
46+juju deploy mysql --to 24/lxc/3
47+juju deploy mysql --to lxc:25
48+</pre>
49+
50+ <p>In the previous example we deployed MySQL to container #3 on machine #25. Similarly the 2nd example deploys MySQL to a new container on machine #25.</p>
51+
52 <p>Note that you need to know the identifier of the
53 machine that you are going to <code>deploy --to</code> – in all
54 deployments, machine 0 is always the bootstrap node so
55@@ -287,7 +295,7 @@
56 <h2>Considerations</h2>
57
58 <p>Charms are running without any separation, so its
59- entirely possible for Charms to stamp all over each
60+ entirely possible for Charms to stomp all over each
61 others configuration files and try to bind to the same
62 network ports. We are working to containerize
63 everything so that this does not happen and every
64@@ -307,6 +315,7 @@
65 dedicated machines when you need to.</p>
66 </section>
67 <section id="references">
68+
69 <h2>References and Examples</h2>
70
71 <ul>

Subscribers

People subscribed via source and target branches