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
=== modified file 'docs/configure.rst'
--- docs/configure.rst 2013-09-19 03:25:49 +0000
+++ docs/configure.rst 2013-10-11 06:39:26 +0000
@@ -233,3 +233,19 @@
233 :ref:`following this procedure <cli-dhcp>` 233 :ref:`following this procedure <cli-dhcp>`
234234
235235
236Client-side DNS configuration
237-----------------------------
238
239When using a third party tool such as ``juju`` it will need to be able to
240resolve the hostnames that the MAAS API returns to it. In order for this to
241happen, *client-side DNS* must be configured to point to MAAS's DNS
242server. Generally speaking, this is a simple case of adding the following
243line to the ``/etc/resolv.conf`` file on your client host::
244
245 nameserver <IP OF MAAS DNS HOST>
246
247replacing the <IP OF MAAS DNS HOST> with the actual IP address of the host
248running the MAAS DNS server.
249
250However, for hosts using the ``resolvconf`` package, please read its
251documentation for more information.
236252
=== modified file 'docs/index.rst'
--- docs/index.rst 2013-10-09 09:18:10 +0000
+++ docs/index.rst 2013-10-11 06:39:26 +0000
@@ -30,6 +30,7 @@
30 configure30 configure
31 cluster-configuration31 cluster-configuration
32 nodes32 nodes
33 kernel-options
3334
3435
35******************36******************
3637
=== added file 'docs/kernel-options.rst'
--- docs/kernel-options.rst 1970-01-01 00:00:00 +0000
+++ docs/kernel-options.rst 2013-10-11 06:39:26 +0000
@@ -0,0 +1,38 @@
1===========================
2Setting kernel boot options
3===========================
4
5MAAS is able to send specific kernel options to booting nodes on both
6a global basis and a per-node basis.
7
8Global kernel options
9---------------------
10
11As an admin, click on the gear icon at the top right and scroll down to
12the Global Kernel Parameters section, as shown here:
13
14.. image:: media/global_kernel_opts.png
15
16Whatever you set here is sent as-is to all booting nodes.
17
18Per-node kernel options
19-----------------------
20
21Per-node kernel options are set using tags. The easiest way of doing this
22is to use the ``maas-cli`` command. You will need to :ref:`be
23logged in to the API first <api-key>` and then you can add a tag which has its
24``kernel_opts`` value set, like this::
25
26 $ maas-cli maas tags new name='nomodeset' \
27 comment='nomodeset kernel option' kernel_opts='nomodeset vga'
28
29Once the tag is defined, you can add it to a node or nodes::
30
31 $ maas-cli maas tag update-nodes nomodeset add=<system_id_1> \
32 add=<system_id_2>
33
34.. note::
35
36 Any per-node kernel options set will completely override the global options.
37 If multiple tags attached to a node have the kernel_opts defined, the first
38 one ordered by name is used.
039
=== added file 'docs/media/global_kernel_opts.png'
1Binary 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 differ40Binary 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