scripts

package
v0.0.0-...-5c79d48 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DatabaseAccessSQLServerConfigureScript = template.Must(template.New("database-access-sqlserver-configure-ad").Parse(databaseAccessSQLServerConfigureScript))

DatabaseAccessSQLServerConfigureScript is the script that will run on Windows machine and configure Active Directory.

View Source
var DesktopAccessScriptConfigure = template.Must(template.New("desktop-access-configure-ad").Parse(desktopAccessScriptConfigure))
View Source
var DesktopAccessScriptInstallADCS string

desktopAccessInstallADCSScript is the script that will run on the windows machine and install Active Directory Certificate Services

View Source
var DesktopAccessScriptInstallADDS string

desktopAccessInstallADDSScript is the script that will run on the windows machine and install Active Directory Domain Services

View Source
var ErrorBashScript = []byte(`
#!/bin/sh
echo -e "An error has occurred. \nThe token may be expired or invalid. \nPlease check log for further details."
exit 1
`)

ErrorBashScript is used to display friendly error message when there is an error prepping the actual script.

View Source
var InstallNodeBashScript = template.Must(template.New("nodejoin").Parse(installNodeBashScript))

Functions

func MarshalLabelsYAML

func MarshalLabelsYAML(resourceMatcherLabels types.Labels, extraListIndent int) ([]string, error)

MarshalLabelsYAML returns a list of strings, each one containing a label key and list of value's pair. This is used to create yaml sections within the join scripts.

The arg `extraListIndent` allows adding `extra` indent space on top of the default space already used, for the default yaml listing format (the listing values with the dashes). If `extraListIndent` is zero, it's equivalent to using default space only (which is 4 spaces).

Types

type DatabaseAccessSQLServerConfigureParams

type DatabaseAccessSQLServerConfigureParams struct {
	// CACertPEM PEM-encoded database CA.
	CACertPEM string
	// CACertSHA1 database CA SHA1 checksum.
	CACertSHA1 string
	// CACertBase64 base64-encoded database CA.
	CACertBase64 string
	// CRLPEM PEM-encoded database revocation list.
	CRLPEM string
	// ProxyPublicAddr Teleport proxy public address.
	ProxyPublicAddr string
	// ProvisionToken join token with database permission.
	ProvisionToken string
	// DBAddress database address URI.
	DBAddress string
}

DatabaseAccessSQLServerConfigureParams is the template parameters passed to the configure script.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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