Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Work moleary convert mgmt baseline to as3 #71

Merged
merged 7 commits into from
Sep 27, 2019
34 changes: 34 additions & 0 deletions BIG-IP/atc/as3/mgmt_forwardingVIP.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"class": "AS3",
"action": "deploy",
"persist": true,
"declaration": {
"class": "ADC",
"schemaVersion": "3.5.0",
"id": "urn:uuid:b92236ad-a677-4574-8bce-7d1487aeb62f",
"label": "Management",
"remark": "Management VIPs",
"mgmt": {
"class": "Tenant",
"forward_outbound": {
"class": "Application",
"template": "generic",
"forward_outbound": {
"class": "Service_L4",
"layer4": "any",
"translateServerAddress": false,
"translateServerPort": false,
"virtualAddresses": [
"0.0.0.0"
],
"virtualPort": 0,
"snat": "auto",
"allowVlans":
[
"internal"
]
}
}
}
}
}
17 changes: 0 additions & 17 deletions BIG-IP/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -1498,22 +1498,6 @@
"Ref": "declarationUrlrouting"
},
"'\n",
"VIP1='",
{
"Fn::GetAtt": [
"Bigip1subnet1Az1Interface",
"PrimaryPrivateIpAddress"
]
},
"'\n",
"VIP2='",
{
"Fn::GetAtt": [
"Bigip2subnet1Az1Interface",
"PrimaryPrivateIpAddress"
]
},
"'\n",
"\n",
"### START DEPLOYMENT OF AS3 DECLARATION FOR MGMT ACCESS\n",
"source /config/cloud/aws/onboard_config_vars\n",
Expand All @@ -1522,7 +1506,6 @@
"file_loc=\"/config/cloud/as3_config\"\n",
"if [[ $declarationUrlrouting =~ $url_regex ]]; then\n",
" response_code=$(/usr/bin/curl -sk -w \"%{http_code}\" $declarationUrlrouting -o $file_loc)\n",
" sed -i 's/ReplaceWithVIP1/'\"$VIP1\"'/g' $file_loc\n",
" if [[ $response_code == 200 ]]; then\n",
" echo \"AS3 download complete; checking for valid JSON.\"\n",
" cat $file_loc | jq .class\n",
Expand Down
6 changes: 3 additions & 3 deletions aws-quickstart-scca-main-same-net.json
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@
"S3Region": {
"Fn::If": [
"GovCloud",
"s3-us-gov-east-1",
"s3-us-gov-west-1",
"s3"
]
}
Expand Down Expand Up @@ -553,7 +553,7 @@
"restrictedSrcAddress": "0.0.0.0/0",
"declarationUrlrouting": {
"Fn::Sub": [
"none",
"https://${pQuickstartS3BucketName}.${S3Region}.amazonaws.com/${pQuickstartS3KeyPrefix}/BIG-IP/atc/as3/mgmt_forwardingVIP.json",
{
"S3Region": {
"Fn::If": [
Expand Down Expand Up @@ -621,7 +621,7 @@
"restrictedSrcAddress": "0.0.0.0/0",
"declarationUrlrouting": {
"Fn::Sub": [
"none",
"https://${pQuickstartS3BucketName}.${S3Region}.amazonaws.com/${pQuickstartS3KeyPrefix}/BIG-IP/atc/as3/mgmt_forwardingVIP.json",
{
"S3Region": {
"Fn::If": [
Expand Down