Merge lp:~julian-edwards/maas/more-docs into lp:~maas-committers/maas/trunk

Proposed by Julian Edwards
Status: Merged
Approved by: Julian Edwards
Approved revision: no longer in the source branch.
Merged at revision: 1696
Proposed branch: lp:~julian-edwards/maas/more-docs
Merge into: lp:~maas-committers/maas/trunk
Diff against target: 81 lines (+55/-0)
3 files modified
docs/configure.rst (+16/-0)
docs/index.rst (+1/-0)
docs/kernel-options.rst (+38/-0)
To merge this branch: bzr merge lp:~julian-edwards/maas/more-docs
Reviewer Review Type Date Requested Status
Jeroen T. Vermeulen (community) Approve
Review via email: mp+190525@code.launchpad.net

Commit message

Documentation update for kernel options and client-side DNS configuration.

To post a comment you must log in.
Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

Thanks. Good to see some attention being paid to documentation.

“When using third party tools such as ``juju`` it will need to be able to resolve the hostnames” hobbles a bit — tools, plural, are suddenly an “it.” How about just “Third-party tools such as ``juju`` may need the ability to resolve the hostnames”?

I suppose that note at the very end means that even if you could give a node multiple kernel-options tags, only an arbitrary one of them would actually be applied. Or are per-node kernel options combined? Worth a mention perhaps.

review: Approve
Revision history for this message
Julian Edwards (julian-edwards) wrote :

On Friday 11 Oct 2013 06:21:25 you wrote:
> Review: Approve
>
> Thanks. Good to see some attention being paid to documentation.
>
> “When using third party tools such as ``juju`` it will need to be able to
> resolve the hostnames” hobbles a bit — tools, plural, are suddenly an “it.”
> How about just “Third-party tools such as ``juju`` may need the ability to
> resolve the hostnames”?

Good spot.

> I suppose that note at the very end means that even if you could give a node
> multiple kernel-options tags, only an arbitrary one of them would actually
> be applied. Or are per-node kernel options combined? Worth a mention
> perhaps.

I think you are missing something here. It's talking about overriding the
global options, not multiple options per node. It remains clear even re-
reading it 2 hours after I wrote it.

Revision history for this message
Julian Edwards (julian-edwards) wrote :

Thanks for reviewing!

Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

Yes, I am missing something — that's the point. I know the note is about overriding the global options, but it raises the question of whether kernel options from tags override or extend kernel options from other tags.

Revision history for this message
Julian Edwards (julian-edwards) wrote :

I understand now, fixed, thanks.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'docs/configure.rst'
2--- docs/configure.rst 2013-09-19 03:25:49 +0000
3+++ docs/configure.rst 2013-10-11 06:39:26 +0000
4@@ -233,3 +233,19 @@
5 :ref:`following this procedure <cli-dhcp>`
6
7
8+Client-side DNS configuration
9+-----------------------------
10+
11+When using a third party tool such as ``juju`` it will need to be able to
12+resolve the hostnames that the MAAS API returns to it. In order for this to
13+happen, *client-side DNS* must be configured to point to MAAS's DNS
14+server. Generally speaking, this is a simple case of adding the following
15+line to the ``/etc/resolv.conf`` file on your client host::
16+
17+ nameserver <IP OF MAAS DNS HOST>
18+
19+replacing the <IP OF MAAS DNS HOST> with the actual IP address of the host
20+running the MAAS DNS server.
21+
22+However, for hosts using the ``resolvconf`` package, please read its
23+documentation for more information.
24
25=== modified file 'docs/index.rst'
26--- docs/index.rst 2013-10-09 09:18:10 +0000
27+++ docs/index.rst 2013-10-11 06:39:26 +0000
28@@ -30,6 +30,7 @@
29 configure
30 cluster-configuration
31 nodes
32+ kernel-options
33
34
35 ******************
36
37=== added file 'docs/kernel-options.rst'
38--- docs/kernel-options.rst 1970-01-01 00:00:00 +0000
39+++ docs/kernel-options.rst 2013-10-11 06:39:26 +0000
40@@ -0,0 +1,38 @@
41+===========================
42+Setting kernel boot options
43+===========================
44+
45+MAAS is able to send specific kernel options to booting nodes on both
46+a global basis and a per-node basis.
47+
48+Global kernel options
49+---------------------
50+
51+As an admin, click on the gear icon at the top right and scroll down to
52+the Global Kernel Parameters section, as shown here:
53+
54+.. image:: media/global_kernel_opts.png
55+
56+Whatever you set here is sent as-is to all booting nodes.
57+
58+Per-node kernel options
59+-----------------------
60+
61+Per-node kernel options are set using tags. The easiest way of doing this
62+is to use the ``maas-cli`` command. You will need to :ref:`be
63+logged in to the API first <api-key>` and then you can add a tag which has its
64+``kernel_opts`` value set, like this::
65+
66+ $ maas-cli maas tags new name='nomodeset' \
67+ comment='nomodeset kernel option' kernel_opts='nomodeset vga'
68+
69+Once the tag is defined, you can add it to a node or nodes::
70+
71+ $ maas-cli maas tag update-nodes nomodeset add=<system_id_1> \
72+ add=<system_id_2>
73+
74+.. note::
75+
76+ Any per-node kernel options set will completely override the global options.
77+ If multiple tags attached to a node have the kernel_opts defined, the first
78+ one ordered by name is used.
79
80=== added file 'docs/media/global_kernel_opts.png'
81Binary files docs/media/global_kernel_opts.png 1970-01-01 00:00:00 +0000 and docs/media/global_kernel_opts.png 2013-10-11 06:39:26 +0000 differ