Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mslacken
Copy link
Member

show the used Tags in the overlays on wwctl overlay list -l

@anderbubble anderbubble added this to the v4.6.5 milestone Sep 17, 2025
@mslacken mslacken force-pushed the showTags branch 2 times, most recently from 8c6cfb5 to ced21d0 Compare September 17, 2025 19:12
@anderbubble
Copy link
Collaborator

From TSC:

let's move this to a dedicated command: possible suggestions include wwctl overlay info (which could give us a place to also show docs) or wwctl overlay vars (for all vars) or wwctl overlay tags (if we are going to just show tags).

@mslacken
Copy link
Member Author

The output now looks like:

./wwctl --warewulfconf /etc/warewulf/warewulf.conf overlay variables ifcfg etc/sysconfig/network-scripts/ifcfg.ww
OVERLAY VARIABLE                HELP                                           TYPE    CMD OPTION
----------------                ----                                           ----    ----------
$netdev.Device                  Set the device for given network               string  netdev
$netdev.Gateway                 Set the node's network device gateway          IP      gateway
$netdev.Hwaddr                  Set the device's HW address for given network  string  hwaddr
$netdev.Ipaddr                  IPv4 address in given network                  IP      ipaddr
$netdev.Ipaddr6                 IPv6 address                                   IP      ipaddr6
$netdev.Ipaddr6                 IPv4 address in given network                  IP      ipaddr
$netdev.MTU                     Set the mtu                                    string  mtu
$netdev.Netmask                 Set the networks netmask                       IP      netmask
$netdev.OnBoot.BoolDefaultTrue  Enable/disable network device (true/false)     WWbool  onboot
$netdev.Tags                                                                           
$netdev.Tags.DNSSEARCH          domain in which the node resides                       
$netdev.Tags.master             leader of the bond                                     
$netdev.Type                    Set device type of given network               string  type

I have modified the template by adding {{/*$netdev.Tags.DNSSEARCH: domain in which the node resides */}} which will be used as help comment. I just don't know where to document this.
@anderbubble can you please review and boss someone around who adds the help comment tags for the next release.

@mslacken
Copy link
Member Author

@anderbubble review reminder
You canb also now have
{{/* wwdoc1: This template configures NetworkManager /}}
{{/
wwdoc2: used in many linux distros */}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants