initial checkin of node IPMI power control

This commit is contained in:
Shannon V. Davidson
2020-11-19 17:51:57 -06:00
parent 744126572c
commit 6b9fc7dc92
11 changed files with 317 additions and 40 deletions

View File

@@ -1,7 +1,9 @@
package node
import (
"github.com/hpcng/warewulf/internal/app/wwctl/node/power"
"github.com/hpcng/warewulf/internal/app/wwctl/node/poweron"
"github.com/hpcng/warewulf/internal/app/wwctl/node/poweroff"
"github.com/hpcng/warewulf/internal/app/wwctl/node/powerstatus"
"github.com/spf13/cobra"
)
@@ -11,14 +13,12 @@ var (
Short: "Node management",
Long: "Management of node settings and power management",
}
test bool
)
func init() {
baseCmd.PersistentFlags().BoolVarP(&test, "test", "t", false, "Testing.")
baseCmd.AddCommand(power.GetCommand())
baseCmd.AddCommand(poweron.GetCommand())
baseCmd.AddCommand(poweroff.GetCommand())
baseCmd.AddCommand(powerstatus.GetCommand())
}
// GetRootCommand returns the root cobra.Command for the application.