mirror of
https://github.com/kairos-io/immucore.git
synced 2025-09-08 01:59:10 +00:00
❇️ Get default yip executor
We are setting the defaults anyway, so we can work with the default executor instead Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
This commit is contained in:
@@ -10,7 +10,6 @@ import (
|
|||||||
"github.com/mudler/yip/pkg/console"
|
"github.com/mudler/yip/pkg/console"
|
||||||
"github.com/mudler/yip/pkg/executor"
|
"github.com/mudler/yip/pkg/executor"
|
||||||
"github.com/mudler/yip/pkg/logger"
|
"github.com/mudler/yip/pkg/logger"
|
||||||
"github.com/mudler/yip/pkg/plugins"
|
|
||||||
"github.com/mudler/yip/pkg/schema"
|
"github.com/mudler/yip/pkg/schema"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
"github.com/twpayne/go-vfs"
|
"github.com/twpayne/go-vfs"
|
||||||
@@ -20,32 +19,6 @@ import (
|
|||||||
func NewYipExecutor(l logger.Interface) executor.Executor {
|
func NewYipExecutor(l logger.Interface) executor.Executor {
|
||||||
exec := executor.NewExecutor(
|
exec := executor.NewExecutor(
|
||||||
executor.WithLogger(l),
|
executor.WithLogger(l),
|
||||||
executor.WithConditionals(
|
|
||||||
plugins.NodeConditional,
|
|
||||||
plugins.IfConditional,
|
|
||||||
),
|
|
||||||
executor.WithPlugins(
|
|
||||||
// Note, the plugin execution order depends on the order passed here
|
|
||||||
plugins.DNS,
|
|
||||||
plugins.Download,
|
|
||||||
plugins.Git,
|
|
||||||
plugins.Entities,
|
|
||||||
plugins.EnsureDirectories,
|
|
||||||
plugins.EnsureFiles,
|
|
||||||
plugins.Commands,
|
|
||||||
plugins.DeleteEntities,
|
|
||||||
plugins.Hostname,
|
|
||||||
plugins.Sysctl,
|
|
||||||
plugins.User,
|
|
||||||
plugins.SSH,
|
|
||||||
plugins.LoadModules,
|
|
||||||
plugins.Timesyncd,
|
|
||||||
plugins.Systemctl,
|
|
||||||
plugins.Environment,
|
|
||||||
plugins.SystemdFirstboot,
|
|
||||||
plugins.DataSources,
|
|
||||||
plugins.Layout,
|
|
||||||
),
|
|
||||||
)
|
)
|
||||||
return exec
|
return exec
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user