Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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.
var DesktopAccessScriptConfigure = template.Must(template.New("desktop-access-configure-ad").Parse(desktopAccessScriptConfigure))
var DesktopAccessScriptInstallADCS string
desktopAccessInstallADCSScript is the script that will run on the windows machine and install Active Directory Certificate Services
var DesktopAccessScriptInstallADDS string
desktopAccessInstallADDSScript is the script that will run on the windows machine and install Active Directory Domain Services
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.
var InstallNodeBashScript = template.Must(template.New("nodejoin").Parse(installNodeBashScript))
Functions ¶
func MarshalLabelsYAML ¶
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.