Allow asset tags in the profile.

Warn and ignore ip addresses and hardware addresses.
This commit is contained in:
MatthewHink
2022-02-16 11:41:44 -05:00
parent a29e9ed6be
commit a01e8319d2
3 changed files with 16 additions and 6 deletions

View File

@@ -65,6 +65,7 @@ var (
SetKey string
SetTags []string
SetDelTags []string
SetAssetKey string
)
func init() {
@@ -88,7 +89,7 @@ func init() {
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")
baseCmd.PersistentFlags().StringVar(&SetRoot, "root", "", "Define the rootfs")
baseCmd.PersistentFlags().StringVar(&SetAssetKey, "assetkey", "", "Set the node's Asset tag (key)")
baseCmd.PersistentFlags().StringVarP(&SetRuntimeOverlay, "runtime", "R", "", "Set the node's runtime overlay")
if err := baseCmd.RegisterFlagCompletionFunc("runtime", func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
list, _ := overlay.FindOverlays()