-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The linux configure-tentacle.sh script now supports setting comms ports other than 10943. #792
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -100,6 +100,7 @@ function setupPollingTentacle { | |
rolesstring="" | ||
workerpoolsstring="" | ||
machinetype=1 | ||
servercommsport=10943 | ||
|
||
read -p "Where would you like Tentacle to store log files? ($logpath):" inputlogpath | ||
logpath=$(assignNonEmptyValue "$inputlogpath" $logpath) | ||
|
@@ -149,6 +150,25 @@ function setupPollingTentacle { | |
read -p "What name would you like to register this Tentacle with? ($displayname): " displaynameinput | ||
displayname=$(assignNonEmptyValue "$displaynameinput" $displayname) | ||
|
||
$doesconnecttosamedomain=1 | ||
read -p 'Is the comms port on the same domain as the Octopus Server : 1) Yes or 2) No (default 1): ' doesconnecttosamedomain | ||
|
||
|
||
|
||
case $doesconnecttosamedomain in | ||
2) | ||
read -p "What is the Octopus Server comms address including port e.g. 'https://polling.<yoururl>.octopus.app:443' ?: " commsAddress | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The public doco doesn't mention that the port number needs to be specified. Would it work if we do? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I requested it since it makes the bash easier, otherwise we then need to ask for port if a port is not set. Also yes this does work. |
||
commsAddressOrPortArgs="--server-comms-address \"$commsAddress\"" | ||
;; | ||
|
||
*) | ||
read -p "What port is the Octopus Server comms port? ($servercommsport): " servercommsportinput | ||
servercommsport=$(assignNonEmptyValue "$servercommsportinput" $servercommsport) | ||
|
||
commsAddressOrPortArgs="--server-comms-port \"$servercommsport\"" | ||
;; | ||
esac | ||
|
||
case $machinetype in | ||
2 | worker) | ||
#Get worker pools | ||
|
@@ -181,9 +201,9 @@ function setupPollingTentacle { | |
echo -e "sudo /opt/octopus/tentacle/Tentacle configure --instance \"$instancename\" --app \"$applicationpath\" --noListen \"True\" --reset-trust" | ||
|
||
if [ $machinetype = 2 ] || [ $machinetype = "worker" ]; then | ||
echo -e "sudo /opt/octopus/tentacle/Tentacle register-worker --instance \"$instancename\" --server \"$octopusserverurl\" --name \"$displayname\" --comms-style \"TentacleActive\" --server-comms-port \"10943\" $displayauth --space \"$space\" $workerpoolsstring" | ||
echo -e "sudo /opt/octopus/tentacle/Tentacle register-worker --instance \"$instancename\" --server \"$octopusserverurl\" --name \"$displayname\" --comms-style \"TentacleActive\" $commsAddressOrPortArgs $displayauth --space \"$space\" $workerpoolsstring" | ||
else | ||
echo -e "sudo /opt/octopus/tentacle/Tentacle register-with --instance \"$instancename\" --server \"$octopusserverurl\" --name \"$displayname\" --comms-style \"TentacleActive\" --server-comms-port \"10943\" $displayauth --space \"$space\" $envstring $rolesstring" | ||
echo -e "sudo /opt/octopus/tentacle/Tentacle register-with --instance \"$instancename\" --server \"$octopusserverurl\" --name \"$displayname\" --comms-style \"TentacleActive\" $commsAddressOrPortArgs $displayauth --space \"$space\" $envstring $rolesstring" | ||
fi | ||
|
||
echo -e "sudo /opt/octopus/tentacle/Tentacle service --install --start --instance \"$instancename\"${NC}" | ||
|
@@ -200,9 +220,9 @@ function setupPollingTentacle { | |
exitIfCommandFailed | ||
|
||
if [ $machinetype = 2 ] || [ $machinetype = "worker" ]; then | ||
eval sudo /opt/octopus/tentacle/Tentacle register-worker --instance \"$instancename\" --server \"$octopusserverurl\" --name \"$displayname\" --comms-style \"TentacleActive\" --server-comms-port \"10943\" $auth --space \"$space\" $workerpoolsstring | ||
eval sudo /opt/octopus/tentacle/Tentacle register-worker --instance \"$instancename\" --server \"$octopusserverurl\" --name \"$displayname\" --comms-style \"TentacleActive\" $commsAddressOrPortArgs $auth --space \"$space\" $workerpoolsstring | ||
else | ||
eval sudo /opt/octopus/tentacle/Tentacle register-with --instance \"$instancename\" --server \"$octopusserverurl\" --name \"$displayname\" --comms-style \"TentacleActive\" --server-comms-port \"10943\" $auth --space \"$space\" $envstring $rolesstring | ||
eval sudo /opt/octopus/tentacle/Tentacle register-with --instance \"$instancename\" --server \"$octopusserverurl\" --name \"$displayname\" --comms-style \"TentacleActive\" $commsAddressOrPortArgs $auth --space \"$space\" $envstring $rolesstring | ||
fi | ||
|
||
exitIfCommandFailed | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of curiosity, do we know why this was strictly only set to
10943
before?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably because it is the default.