forked from OctopusDeploy/OctopusDSC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Server_Scenario_01_Install.ps1
64 lines (53 loc) · 1.97 KB
/
Server_Scenario_01_Install.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
Configuration Server_Scenario_01_Install
{
Import-DscResource -ModuleName OctopusDSC
Node "localhost"
{
LocalConfigurationManager
{
DebugMode = "ForceModuleImport"
}
cOctopusServer OctopusServer
{
Ensure = "Present"
State = "Started"
# Server instance name. Leave it as 'OctopusServer' unless you have more
# than one instance
Name = "OctopusServer"
# The url that Octopus will listen on
WebListenPrefix = "http://localhost:81"
SqlDbConnectionString = "Server=(local)\SQLEXPRESS;Database=Octopus;Trusted_Connection=True;"
# The admin user to create
OctopusAdminUsername = "OctoAdmin"
OctopusAdminPassword = "SuperS3cretPassw0rd!"
# dont mess with stats
AllowCollectionOfAnonymousUsageStatistics = $false
}
cOctopusServerUsernamePasswordAuthentication "Enable Username/Password Auth"
{
InstanceName = "OctopusServer"
Enabled = $true
}
cOctopusServerActiveDirectoryAuthentication "Enable Active Directory Auth"
{
InstanceName = "OctopusServer"
Enabled = $true
AllowFormsAuthenticationForDomainUsers = $true
ActiveDirectoryContainer = "CN=Users,DC=GPN,DC=COM"
}
cOctopusServerAzureADAuthentication "Enable Azure AD Auth"
{
InstanceName = "OctopusServer"
Enabled = $true
Issuer = "https://login.microsoftonline.com/b91ebf6a-84be-4c6f-97f3-32a1d0a11c8a"
ClientID = "0272262a-b31d-4acf-8891-56e96d302018"
}
cOctopusServerGoogleAppsAuthentication "Enable GoogleApps Auth"
{
InstanceName = "OctopusServer"
Enabled = $true
ClientID = "5743519123-1232358520259-3634528"
HostedDomain = "https://octopus.example.com"
}
}
}