Skip to content
This repository was archived by the owner on Oct 4, 2024. It is now read-only.

Commit 3aa8399

Browse files
Merge pull request #8 from trend-scottb/develop
Updated templates to version 5.3 for Deep Security 10.1
2 parents 8ac398a + 60ec712 commit 3aa8399

39 files changed

+3552
-8569
lines changed

templates/Common/Scripts/add-aws-account-with-instance-role.sh renamed to scripts/add-aws-account-with-instance-role.sh

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,25 @@
11
#!/bin/bash
2-
# cloudAccountCreateWithInstanceRole.sh dsmuser dsmpass manager address guiPort tenant
2+
# cloudAccountCreateWithInstanceRole.sh dsmuser dsmpass manager address guiPort region tenant
33
username=$1
44
password=$2
5-
tenant=$5
5+
tenant=$6
6+
region=$5
67

78
# replace this with your DSM IP or FQDN
89
DSMURL="$3:$4"
910

10-
1111
echo "#####Login to DSM"
12-
if [[ -z $tenant ]]
12+
if [[ -z ${tenant} ]]
1313
then
1414
SID=`curl -ks -H "Content-Type: application/json" -X POST "https://${DSMURL}/rest/authentication/login/primary" -d '{"dsCredentials":{"userName":"'${username}'","password":"'${password}'"}}'`
1515
else
1616
SID=`curl -ks -H "Content-Type: application/json" -X POST "https://${DSMURL}/rest/authentication/login" -d '{"dsCredentials":{"userName":"'${username}'","password":"'${password}'","tenantName":"'${tenant}'"}}'`
1717
fi
1818

19-
curl -ks --cookie "sID=${SID}" -H "Content-Type: application/json" "Accept: application/json" -X POST "https://${DSMURL}/rest/cloudaccounts/aws" -d '{"AddAwsAccountRequest":{"useInstanceRole":true}}'
19+
curl -ks --cookie "sID=${SID}" -H "Content-Type: application/json" "Accept: application/json" -X POST "https://${DSMURL}/rest/cloudaccounts/aws" -d '{"AddAwsAccountRequest":{"useInstanceRole":true, "seedRegion":"'${region}'"}}'
2020

21-
curl -k -X DELETE https://$DSMURL/rest/authentication/logout?sID=$tempDSSID
21+
curl -k -X DELETE https://${DSMURL}/rest/authentication/logout?sID=${SID}
2222

2323
unset SID
2424
unset username
25-
unset password
26-
27-
25+
unset password

templates/Common/Scripts/create-console-listener.sh renamed to scripts/create-console-listener.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ done
3333
echo 'load balancer listener created'
3434

3535
aws elb create-load-balancer-policy --load-balancer-name $1 --policy-name DSMConsoleStickySessions --policy-type-name LBCookieStickinessPolicyType --region $6 --policy-attributes AttributeName=CookieExpirationPeriod,AttributeValue=600
36-
aws elb set-load-balancer-policies-of-listener --load-balancer-name $1 --load-balancer-port 443 --policy-names DSMConsoleStickySessions --region $6
36+
aws elb set-load-balancer-policies-of-listener --load-balancer-name $1 --load-balancer-port $3 --policy-names DSMConsoleStickySessions --region $6
File renamed without changes.

templates/Common/Scripts/reactivate-manager.sh renamed to scripts/reactivate-manager.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/bash
12
##reactivate-manager <username> <password> <console-port>
23
dnsHostNamesOn=
34
## get a token

templates/Common/Scripts/set-aia-settings.sh renamed to scripts/set-aia-settings.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,5 @@ echo -e "policyid for Deep Security Virtual Appliance Policy is $policyid\n" >>
7878

7979

8080
## log out
81-
curl -k -X DELETE https://localhost:$3/rest/authentication/logout?sID="$SID"
81+
curl -k -X DELETE https://localhost:$4/rest/authentication/logout?sID="$SID"
8282
exit
File renamed without changes.

templates/Common/DB/DSDBAbstract.template

Lines changed: 0 additions & 288 deletions
This file was deleted.

0 commit comments

Comments
 (0)