This repository has been archived by the owner on Dec 1, 2020. It is now read-only.
forked from OctopusDeploy/OctopusDSC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Tentacle_Scenario_01_Install.ps1
110 lines (87 loc) · 3.43 KB
/
Tentacle_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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
Configuration Tentacle_Scenario_01_Install
{
param ($OctopusServerUrl, $ApiKey, $Environments, $Roles, $ServerThumbprint)
Import-DscResource -ModuleName OctopusDSC
Node "localhost"
{
LocalConfigurationManager
{
DebugMode = "ForceModuleImport"
}
cTentacleAgent ListeningTentacle
{
Ensure = "Present";
State = "Started";
# Tentacle instance name. Leave it as 'Tentacle' unless you have more
# than one instance
Name = "ListeningTentacle";
DisplayName = "My Listening Tentacle"
# Registration - all parameters required
ApiKey = $ApiKey;
OctopusServerUrl = $OctopusServerUrl;
Environments = $Environments;
Roles = $Roles;
# Optional settings
ListenPort = 10933;
DefaultApplicationDirectory = "C:\Applications"
PublicHostNameConfiguration = "ComputerName"
TentacleHomeDirectory = "C:\Octopus\ListeningTentacleHome"
Tenants = "John"
TenantTags = "Hosting/Cloud"
Policy = "Test Policy"
}
cTentacleAgent PollingTentacle
{
Ensure = "Present";
State = "Started";
# Tentacle instance name. Leave it as 'Tentacle' unless you have more
# than one instance
Name = "PollingTentacle";
# Registration - all parameters required
ApiKey = $ApiKey;
OctopusServerUrl = $OctopusServerUrl;
Environments = $Environments;
Roles = $Roles;
# Optional settings
ListenPort = $ListenPort;
DefaultApplicationDirectory = "C:\Applications"
CommunicationMode = "Poll"
TentacleHomeDirectory = "C:\Octopus\PollingTentacleHome"
}
cTentacleAgent ListeningTentacleWithoutAutoRegister
{
Ensure = "Present";
State = "Started";
# Tentacle instance name. Leave it as 'Tentacle' unless you have more
# than one instance
Name = "ListeningTentacleWithoutAutoRegister";
# Registration - all parameters required
ApiKey = $ApiKey;
OctopusServerUrl = $OctopusServerUrl;
# Optional settings
ListenPort = 10934;
DefaultApplicationDirectory = "C:\Applications"
CommunicationMode = "Listen"
TentacleHomeDirectory = "C:\Octopus\ListeningTentacleWithoutAutoRegisterHome"
RegisterWithServer = $false
}
cTentacleAgent ListeningTentacleWithThumbprintWithoutAutoRegister
{
Ensure = "Present";
State = "Started";
# Tentacle instance name. Leave it as 'Tentacle' unless you have more
# than one instance
Name = "ListeningTentacleWithThumbprintWithoutAutoRegister";
# Registration - all parameters required
ApiKey = $ApiKey;
OctopusServerUrl = $OctopusServerUrl;
# Optional settings
ListenPort = 10935;
DefaultApplicationDirectory = "C:\Applications"
CommunicationMode = "Listen"
TentacleHomeDirectory = "C:\Octopus\ListeningTentacleWithThumbprintWithoutAutoRegisterHome"
RegisterWithServer = $false
OctopusServerThumbprint = $ServerThumbprint
}
}
}