Added kernel args for node and profile command.

This commit is contained in:
Gregory Kurtzer
2020-12-21 18:44:29 -08:00
parent 54b5d8e4a6
commit 2b269d3db7
4 changed files with 27 additions and 1 deletions

View File

@@ -12,6 +12,7 @@ var (
SetComment string
SetContainer string
SetKernel string
SetKernelArgs string
SetNetDev string
SetIpaddr string
SetNetmask string
@@ -42,6 +43,7 @@ func init() {
baseCmd.PersistentFlags().StringVar(&SetComment, "comment", "", "Set a comment for this node")
baseCmd.PersistentFlags().StringVarP(&SetContainer, "container", "C", "", "Set the container (VNFS) for this node")
baseCmd.PersistentFlags().StringVarP(&SetKernel, "kernel", "K", "", "Set Kernel version for nodes")
baseCmd.PersistentFlags().StringVarP(&SetKernel, "kernelargs", "A", "", "Set Kernel argument for nodes")
baseCmd.PersistentFlags().StringVarP(&SetClusterName, "cluster", "c", "", "Set the node's cluster group")
baseCmd.PersistentFlags().StringVarP(&SetIpxe, "ipxe", "P", "", "Set the node's iPXE template name")
baseCmd.PersistentFlags().StringVarP(&SetInit, "init", "i", "", "Define the init process to boot the container")