util

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnsibleExecution

func AnsibleExecution(
	ctx context.Context,
	helper *helper.Helper,
	obj client.Object,
	label string,
	sshKeySecret string,
	inventoryConfigMap string,
	play string,
	role ansibleeev1.Role,
	aeeSpec dataplanev1.AnsibleEESpec,
) error

AnsibleExecution creates a OpenStackAnsiblEE CR

func GetAnsibleExecution

func GetAnsibleExecution(ctx context.Context, helper *helper.Helper, obj client.Object, label string) (*ansibleeev1.OpenStackAnsibleEE, error)

GetAnsibleExecution gets and returns an OpenStackAnsibleEE with the given label where <label>=<node UID> If none is found, return nil

func PopulateTasks

func PopulateTasks(tasks []Task) []ansibleeev1.Task

PopulateTasks creates Tasks

Types

type Task

type Task struct {
	Name          string
	RoleName      string
	RoleTasksFrom string
	When          string
	Tags          []string
}

Task defines the required data for import_role tasks

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL