Merge lp:~themue/juju-core/docs-003-config-local-firewall-note into lp:juju-core/docs

Proposed by Frank Mueller
Status: Merged
Approved by: Dave Cheney
Approved revision: no longer in the source branch.
Merged at revision: 111
Proposed branch: lp:~themue/juju-core/docs-003-config-local-firewall-note
Merge into: lp:juju-core/docs
Diff against target: 87 lines (+26/-22)
1 file modified
htmldocs/config-local.html (+26/-22)
To merge this branch: bzr merge lp:~themue/juju-core/docs-003-config-local-firewall-note
Reviewer Review Type Date Requested Status
Dave Cheney (community) lgtm Approve
Review via email: mp+184087@code.launchpad.net

Description of the change

config-local: added a note regarding ufw (conflicts with juju local)

To post a comment you must log in.
Revision history for this message
Dave Cheney (dave-cheney) :
review: Approve (lgtm)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'htmldocs/config-local.html'
2--- htmldocs/config-local.html 2013-09-05 12:01:47 +0000
3+++ htmldocs/config-local.html 2013-09-05 12:17:36 +0000
4@@ -57,57 +57,61 @@
5 <article>
6 <section id="config_local">
7 <h1>Configuring for Local Provider</h1>
8+
9 <h2>Prerequisites</h2>
10 <p>The local provider enables you to run Juju on a single system like your local computer or a single server. This way you can simply evaluate the software or service configurations, develop your own charms or run a single server system.</p>
11 <p>To do this, Juju uses the <strong>LXC Linux Container</strong>, which can be installed on your computer with the command:</p>
12-<pre class="prettyprint lang-yaml">
13+<pre class="prettyprint lang-bash">
14 sudo apt-get install lxc
15 </pre>
16 <p>Additionally the local provider needs <strong>MongoDB</strong> to be installed. This is done with the command:</p>
17-<pre class="prettyprint lang-yaml">
18- sudo apt-get install mongodb-server
19+<pre class="prettyprint lang-bash">
20+sudo apt-get install mongodb-server
21 </pre>
22 <p>In case of <strong>precise</strong> or <strong>quantal</strong> versions of Ubuntu, MongoDB has to be installed from a different repository. So in this case call</p>
23-<pre class="prettyprint lang-yaml">
24- sudo apt-add-repository ppa:juju/stable
25- sudo apt-get update
26+<pre class="prettyprint lang-bash">
27+sudo apt-add-repository ppa:juju/stable
28+sudo apt-get update
29 </pre>
30 <p>beforehand. In case you're not sure take a look into the file <code>/etc/lsb-release</code> which identifies the series with the variable <code>DISTRIB_CODENAME</code>. If you're not running Ubuntu please consult your operating system distribution's documentation for instructions on installing the LXC userspace tools and the MongoDB server. Juju requires a MongoDB server built with SSL support.</p>
31 <p>The dependence on the LXC Linux Container shows that the local provider only runs on Linux systems. All steps above are also printed in case of any unsatisfied prerequisite.</p>
32
33 <h2>Configuration</h2>
34 <p>You should start by generating a generic configuration file for Juju, using the command:
35-<pre class="prettyprint lang-bash">juju generate-config</pre>
36+<pre class="prettyprint lang-bash">
37+juju init
38+</pre>
39 <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).
40- <p class ="note"><strong>Note:</strong> If you have an existing configuration, you can use <code>juju generate-config --show</code> to output the new config file, then copy and paste relevant areas in a text editor etc.</p>
41+ <p class ="note"><strong>Note:</strong>If you have an existing configuration, you can use <code>juju generate-config --show</code> to output the new config file, then copy and paste relevant areas in a text editor etc.</p>
42 <p>The generic configuration sections generated for the local provider will look something like this:</p>
43 <pre class="prettyprint lang-yaml">
44 ## https://juju.ubuntu.com/get-started/local/
45 local:
46-type: local
47-admin-secret: 772b9471131c6b5883475e3908156d32
48-#Override the directory that is used for the storage files and database.
49-#The default location is $JUJU_HOME.
50-# $JUJU_HOME defaults to ~/.juju
51-# root-dir: ~/.juju/local
52-# Override the storage port if you have multiple local providers, or if the
53-# default port is used by another program.
54-# storage-port: 8040
55-# Override the shared storage port if you have multiple local providers,
56-# or if the default port is used by another program.
57-# shared-storage-port: 8041
58+ type: local
59+ admin-secret: 772b9471131c6b5883475e3908156d32
60+ # Override the directory that is used for the storage files and database.
61+ # The default location is $JUJU_HOME.
62+ # $JUJU_HOME defaults to ~/.juju
63+ # root-dir: ~/.juju/local
64+ # Override the storage port if you have multiple local providers, or if the
65+ # default port is used by another program.
66+ # storage-port: 8040
67+ # Override the shared storage port if you have multiple local providers,
68+ # or if the default port is used by another program.
69+ # shared-storage-port: 8041
70 </pre>
71 <p>Running Juju with this configuration the storage files and the database will be located in the directory specified by the environment variable <strong>$JUJU_HOME</strong>, which defaults to <strong>~/.juju/</strong>. By uncommenting and setting <strong>root-dir</strong> this location can be changed as well as the ports of the storage and the shared storage. This may be useful in the case of multiple parallel running local providers or conflicts with other programs on your system. Also when using encrypted home directories you have to set <strong>$JUJU_HOME</strong> or <strong>root-dir</strong> to point to a location outside your home directory.
72
73 <h2>Bootstrapping and Destroying</h2>
74 <p>The usage of LXC Linux Containers enforces that bootstrapping and destroying of an environment are done as <strong>root</strong>. All other operations can be executed as non-root. E.g.</p>
75-<pre class="prettyprint lang-yaml">
76+<pre class="prettyprint lang-bash">
77 sudo juju bootstrap
78 juju deploy mysql
79 ...
80 sudo juju destroy-environment
81 </pre>
82-
83+ <p class ="note"><strong>Note:</strong>In case of a running firewall like <strong>ufw</strong> it has
84+ to be stopped.</p>
85 </section>
86 </article>
87 </div>

Subscribers

People subscribed via source and target branches