activedirectory

package
v0.0.0-...-c9b482b Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 12 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithDomainController

func WithDomainController(domainFqdn, adminPassword string) func(*Configuration) error

WithDomainController promotes the machine to be a domain controller.

func WithDomainUser

func WithDomainUser(username, password string) func(params *Configuration) error

WithDomainUser adds a user in Active Directory. Note: We don't need to be a Domain Controller to create new user in AD but we need the necessary rights to modify the AD.

Types

type Component

type Component struct {
	pulumi.ResourceState
	components.Component
	// contains filtered or unexported fields
}

Component is an Active Directory domain component. See https://www.pulumi.com/docs/concepts/resources/components/

func NewActiveDirectory

func NewActiveDirectory(ctx *pulumi.Context, e config.Env, host *remote.Host, options ...Option) (*Component, []pulumi.Resource, error)

NewActiveDirectory creates a new instance of an Active Directory domain deployment Example usage:

activeDirectoryComp, activeDirectoryResources, err := activedirectory.NewActiveDirectory(pulumiContext, &awsEnv, host,
	activedirectory.WithDomainController("datadogqa.lab", "Test1234#"),
    activedirectory.WithDomainUser("datadogqa.lab\\ddagentuser", "Test5678#"),
)
if err != nil {
	return err
}
err = activeDirectoryComp.Export(pulumiContext, &env.ActiveDirectory.Output)
if err != nil {
	return err
}

func (*Component) Export

func (dc *Component) Export(ctx *pulumi.Context, out *Output) error

Export registers a key and value pair with the current context's stack.

type Configuration

type Configuration struct {
	JoinDomainParams              *JoinDomainConfiguration
	DomainControllerConfiguration *DomainControllerConfiguration
	DomainUsers                   []DomainUser
	ResourceOptions               []pulumi.ResourceOption
}

Configuration is an object representing the desired Active Directory configuration.

type DomainControllerConfiguration

type DomainControllerConfiguration struct {
	DomainName     string
	DomainPassword string
}

DomainControllerConfiguration represents the Active Directory configuration (domain name, password, users etc...)

type DomainUser

type DomainUser struct {
	Username string
	Password string
}

DomainUser represents an Active Directory user

type JoinDomainConfiguration

type JoinDomainConfiguration struct {
	DomainName              string
	DomainAdminUser         string
	DomainAdminUserPassword string
}

JoinDomainConfiguration list the options required for a machine to join an Active Directory domain.

type Option

type Option = func(*Configuration) error

Option is an optional function parameter type for Configuration options

func WithDomain

func WithDomain(domainFqdn, domainAdmin, domainAdminPassword string) Option

WithDomain joins a machine to a domain. The machine can then be promoted to a domain controller or remain a domain client.

func WithPulumiResourceOptions

func WithPulumiResourceOptions(resources ...pulumi.ResourceOption) Option

WithPulumiResourceOptions sets some pulumi resource option, like which resource to depend on.

type Output

type Output struct {
	components.JSONImporter
}

Output is an object that models the output of the resource creation from the Component. See https://www.pulumi.com/docs/concepts/resources/components/#registering-component-outputs

Jump to

Keyboard shortcuts

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