Documentation ¶
Index ¶
- func WithDomainController(domainFqdn, adminPassword string) func(*Configuration) error
- func WithDomainUser(username, password string) func(params *Configuration) error
- type Component
- type Configuration
- type DomainControllerConfiguration
- type DomainUser
- type JoinDomainConfiguration
- type Option
- type Output
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 }
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 ¶
DomainControllerConfiguration represents the Active Directory configuration (domain name, password, users etc...)
type DomainUser ¶
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 ¶
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