Skip to content

Commit ba87fd8

Browse files
committed
Update main docs
1 parent 5fdf3fc commit ba87fd8

File tree

115 files changed

+608
-73
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+608
-73
lines changed

static/docs/main/_sources/overlays/overlays.rst.txt

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,37 @@ within the overlays with ``wwctl overlay list --all``.
2525
fstab etc/ false
2626
fstab etc/fstab.ww false
2727
28+
Overlay Variables
29+
-----------------
30+
31+
The command ``wwctl overlay info`` shows the variables used in an overlay
32+
template, along with the help text for each variable.
33+
34+
.. code-block:: console
35+
36+
# wwctl overlay info NetworkManager etc/NetworkManager/system-connections/ww4-managed.ww
37+
VARIABLE HELP TYPE OPTION
38+
-------- ---- ---- ------
39+
$netdev.Device Set the device for given network string --netdev
40+
$netdev.Gateway Set the node's network device gateway IP --gateway
41+
$netdev.Hwaddr Set the device's HW address for given network string --hwaddr
42+
$netdev.Ipaddr IPv4 address in given network IP --ipaddr
43+
$netdev.Ipaddr6 IPv4 address in given network IP --ipaddr
44+
$netdev.Ipaddr6 IPv6 address IP --ipaddr6
45+
$netdev.MTU Set the mtu string --mtu
46+
$netdev.OnBoot.BoolDefaultTrue Enable/disable network device (true/false) WWbool --onboot
47+
$netdev.Tags
48+
$netdev.Tags.DNSSEARCH
49+
$netdev.Tags.downdelay
50+
$netdev.Tags.master
51+
$netdev.Tags.miimon
52+
$netdev.Tags.mode
53+
$netdev.Tags.parent_device
54+
$netdev.Tags.updelay
55+
$netdev.Tags.vlan_id
56+
$netdev.Tags.xmit_hash_policy
57+
$netdev.Type Set device type of given network string --type
58+
2859
Structure
2960
=========
3061

@@ -163,6 +194,7 @@ mode that they have on the Warewulf server. Use ``wwctl overlay chown`` and
163194
wwctl overlay chown issue /etc/issue.ww root root
164195
wwctl overlay chmod issue /etc/issue.ww 0644
165196
197+
166198
Distribution Overlays
167199
=====================
168200

@@ -373,7 +405,7 @@ provided as an example. In particular, the provided `tstruct.md.ww` demonstrates
373405
the use of most available template metadata.
374406

375407
.. code-block:: shell
376-
408+
377409
wwctl overlay show --render=<nodename> debug tstruct.md.ww
378410
379411
.. _localtime:

static/docs/main/_sources/overlays/templates.rst.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,28 @@ non-overlay templates as well.
3333
commands for the ``wwctl power``, ``wwctl sensor``, and ``wwctl console``
3434
commands.
3535

36+
Template documentation
37+
======================
38+
39+
Templates can include documentation to be included in the output of ``wwctl overlay info``.
40+
41+
.. code::
42+
43+
{{/* wwdoc: Your documentation text */}}
44+
45+
Template variables
46+
==================
47+
48+
Overlay templates have access to a number of variables that provide information
49+
about the server configuration, the node being provisioned, and all nodes in the
50+
cluster. An example of the variables available, and their use, is included with
51+
Warewulf in the ``tstruct.ww`` template of the ``debug`` overlay.
52+
53+
Variables used in an overlay template can be documented by adding a comment to
54+
the template with the form ``{{/* .My.Var: Your help text */}}``. Variable help
55+
text defined in a comment replaces that variable's default help text in the
56+
output of ``wwctl overlay info``.
57+
3658
Template functions
3759
==================
3860

static/docs/main/_sources/reference/wwctl_node_add.rst.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,14 @@ Options
3030
--fsname string set the file system name which must match a partition name
3131
--fspath string the mount point of the file system
3232
--fswipe wipe file system at boot
33-
-G, --gateway ip Set the node's network device gateway
33+
-G, --gateway ip Set the node's IPv4 network device gateway
34+
--gateway6 ip Set the node's IPv6 network device gateway
3435
-h, --help help for add
3536
-H, --hwaddr string Set the device's HW address for given network
3637
--image string Set image name
3738
-i, --init string Define the init process to boot the image
3839
-I, --ipaddr ip IPv4 address in given network
39-
--ipaddr6 ip IPv6 address
40+
--ipaddr6 ip IPv6 address in given network
4041
--ipmiaddr ip Set the IPMI IP address
4142
--ipmiescapechar string Set the IPMI escape character (defaults: '~')
4243
--ipmigateway ip Set the IPMI gateway
@@ -62,6 +63,7 @@ Options
6263
--partnumber string Set the partition number, if not set next free slot is used
6364
--partsize string Set the size of the partition, if not set maximal possible size is used
6465
--parttype string Set the partition type GUID
66+
--prefixlen6 string Set the networks IPv6 prefix length
6567
-p, --primarynet string Set the primary network interface
6668
-P, --profile strings Set the node's profile members (comma separated)
6769
--root string Define the rootfs

static/docs/main/_sources/reference/wwctl_node_set.rst.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,14 @@ Options
3838
--fsname string set the file system name which must match a partition name
3939
--fspath string the mount point of the file system
4040
--fswipe wipe file system at boot
41-
-G, --gateway ip Set the node's network device gateway
41+
-G, --gateway ip Set the node's IPv4 network device gateway
42+
--gateway6 ip Set the node's IPv6 network device gateway
4243
-h, --help help for set
4344
-H, --hwaddr string Set the device's HW address for given network
4445
--image string Set image name
4546
-i, --init string Define the init process to boot the image
4647
-I, --ipaddr ip IPv4 address in given network
47-
--ipaddr6 ip IPv6 address
48+
--ipaddr6 ip IPv6 address in given network
4849
--ipmiaddr ip Set the IPMI IP address
4950
--ipmiescapechar string Set the IPMI escape character (defaults: '~')
5051
--ipmigateway ip Set the IPMI gateway
@@ -74,6 +75,7 @@ Options
7475
--partnumber string Set the partition number, if not set next free slot is used
7576
--partsize string Set the size of the partition, if not set maximal possible size is used
7677
--parttype string Set the partition type GUID
78+
--prefixlen6 string Set the networks IPv6 prefix length
7779
-p, --primarynet string Set the primary network interface
7880
-P, --profile strings Set the node's profile members (comma separated)
7981
--root string Define the rootfs

static/docs/main/_sources/reference/wwctl_overlay.rst.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ SEE ALSO
3838
* :ref:`wwctl overlay delete <wwctl_overlay_delete>` - Delete Warewulf Overlay or files
3939
* :ref:`wwctl overlay edit <wwctl_overlay_edit>` - Edit or create a file within a Warewulf Overlay
4040
* :ref:`wwctl overlay import <wwctl_overlay_import>` - Import a file into a Warewulf Overlay
41+
* :ref:`wwctl overlay info <wwctl_overlay_info>` - Show variables for a template file in an overlay
4142
* :ref:`wwctl overlay list <wwctl_overlay_list>` - List Warewulf Overlays and files
4243
* :ref:`wwctl overlay mkdir <wwctl_overlay_mkdir>` - Create a new directory within an Overlay
4344
* :ref:`wwctl overlay show <wwctl_overlay_show>` - Show (cat) a file within a Warewulf Overlay
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
.. _wwctl_overlay_info:
2+
3+
wwctl overlay info
4+
------------------
5+
6+
Show variables for a template file in an overlay
7+
8+
Synopsis
9+
~~~~~~~~
10+
11+
12+
This command will show the variables for a given template file in a given
13+
overlay.
14+
15+
::
16+
17+
wwctl overlay info [flags] OVERLAY_NAME FILE_PATH
18+
19+
Options
20+
~~~~~~~
21+
22+
::
23+
24+
-h, --help help for info
25+
26+
Options inherited from parent commands
27+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
28+
29+
::
30+
31+
-d, --debug Run with debugging messages enabled.
32+
-v, --verbose Run with increased verbosity.
33+
--warewulfconf string Set the warewulf configuration file
34+
35+
SEE ALSO
36+
~~~~~~~~
37+
38+
* :ref:`wwctl overlay <wwctl_overlay>` - Warewulf Overlay Management
39+

static/docs/main/_sources/reference/wwctl_profile_add.rst.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,14 @@ Options
2828
--fsname string set the file system name which must match a partition name
2929
--fspath string the mount point of the file system
3030
--fswipe wipe file system at boot
31-
-G, --gateway ip Set the node's network device gateway
31+
-G, --gateway ip Set the node's IPv4 network device gateway
32+
--gateway6 ip Set the node's IPv6 network device gateway
3233
-h, --help help for add
3334
-H, --hwaddr string Set the device's HW address for given network
3435
--image string Set image name
3536
-i, --init string Define the init process to boot the image
3637
-I, --ipaddr ip IPv4 address in given network
37-
--ipaddr6 ip IPv6 address
38+
--ipaddr6 ip IPv6 address in given network
3839
--ipmiaddr ip Set the IPMI IP address
3940
--ipmiescapechar string Set the IPMI escape character (defaults: '~')
4041
--ipmigateway ip Set the IPMI gateway
@@ -60,6 +61,7 @@ Options
6061
--partnumber string Set the partition number, if not set next free slot is used
6162
--partsize string Set the size of the partition, if not set maximal possible size is used
6263
--parttype string Set the partition type GUID
64+
--prefixlen6 string Set the networks IPv6 prefix length
6365
-p, --primarynet string Set the primary network interface
6466
-P, --profile strings Set the node's profile members (comma separated)
6567
--root string Define the rootfs

static/docs/main/_sources/reference/wwctl_profile_set.rst.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,14 @@ Options
3232
--fsname string set the file system name which must match a partition name
3333
--fspath string the mount point of the file system
3434
--fswipe wipe file system at boot
35-
-G, --gateway ip Set the node's network device gateway
35+
-G, --gateway ip Set the node's IPv4 network device gateway
36+
--gateway6 ip Set the node's IPv6 network device gateway
3637
-h, --help help for set
3738
-H, --hwaddr string Set the device's HW address for given network
3839
--image string Set image name
3940
-i, --init string Define the init process to boot the image
4041
-I, --ipaddr ip IPv4 address in given network
41-
--ipaddr6 ip IPv6 address
42+
--ipaddr6 ip IPv6 address in given network
4243
--ipmiaddr ip Set the IPMI IP address
4344
--ipmiescapechar string Set the IPMI escape character (defaults: '~')
4445
--ipmigateway ip Set the IPMI gateway
@@ -68,6 +69,7 @@ Options
6869
--partnumber string Set the partition number, if not set next free slot is used
6970
--partsize string Set the size of the partition, if not set maximal possible size is used
7071
--parttype string Set the partition type GUID
72+
--prefixlen6 string Set the networks IPv6 prefix length
7173
-p, --primarynet string Set the primary network interface
7274
-P, --profile strings Set the node's profile members (comma separated)
7375
--root string Define the rootfs

static/docs/main/contributing/contributing.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@
149149
<li class="toctree-l1"><a class="reference internal" href="../reference/wwctl_overlay_delete.html">wwctl overlay delete</a></li>
150150
<li class="toctree-l1"><a class="reference internal" href="../reference/wwctl_overlay_edit.html">wwctl overlay edit</a></li>
151151
<li class="toctree-l1"><a class="reference internal" href="../reference/wwctl_overlay_import.html">wwctl overlay import</a></li>
152+
<li class="toctree-l1"><a class="reference internal" href="../reference/wwctl_overlay_info.html">wwctl overlay info</a></li>
152153
<li class="toctree-l1"><a class="reference internal" href="../reference/wwctl_overlay_list.html">wwctl overlay list</a></li>
153154
<li class="toctree-l1"><a class="reference internal" href="../reference/wwctl_overlay_mkdir.html">wwctl overlay mkdir</a></li>
154155
<li class="toctree-l1"><a class="reference internal" href="../reference/wwctl_overlay_show.html">wwctl overlay show</a></li>

static/docs/main/contributing/debugging.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@
144144
<li class="toctree-l1"><a class="reference internal" href="../reference/wwctl_overlay_delete.html">wwctl overlay delete</a></li>
145145
<li class="toctree-l1"><a class="reference internal" href="../reference/wwctl_overlay_edit.html">wwctl overlay edit</a></li>
146146
<li class="toctree-l1"><a class="reference internal" href="../reference/wwctl_overlay_import.html">wwctl overlay import</a></li>
147+
<li class="toctree-l1"><a class="reference internal" href="../reference/wwctl_overlay_info.html">wwctl overlay info</a></li>
147148
<li class="toctree-l1"><a class="reference internal" href="../reference/wwctl_overlay_list.html">wwctl overlay list</a></li>
148149
<li class="toctree-l1"><a class="reference internal" href="../reference/wwctl_overlay_mkdir.html">wwctl overlay mkdir</a></li>
149150
<li class="toctree-l1"><a class="reference internal" href="../reference/wwctl_overlay_show.html">wwctl overlay show</a></li>

0 commit comments

Comments
 (0)