-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cspolicy example with forcenew_id_set
Signed-off-by: George Nikolopoulos <[email protected]>
- Loading branch information
George Nikolopoulos
committed
Jul 14, 2020
1 parent
430e0ae
commit 19909c7
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
provider "citrixadc" { | ||
endpoint = "http://localhost:8080" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
resource "citrixadc_csvserver" "foo_csvserver" { | ||
|
||
ipv46 = "10.202.11.11" | ||
name = "tst_policy_cs" | ||
port = 9090 | ||
servicetype = "SSL" | ||
comment = "hello" | ||
sslprofile = "ns_default_ssl_profile_frontend" | ||
} | ||
|
||
resource "citrixadc_lbvserver" "foo_lbvserver" { | ||
|
||
name = "tst_policy_lb" | ||
servicetype = "HTTP" | ||
ipv46 = "192.122.3.3" | ||
port = 8000 | ||
comment = "hello" | ||
} | ||
|
||
resource "citrixadc_cspolicy" "foo_cspolicy" { | ||
csvserver = citrixadc_csvserver.foo_csvserver.name | ||
targetlbvserver = citrixadc_lbvserver.foo_lbvserver.name | ||
policyname = "test_policy" | ||
rule = "CLIENT.IP.SRC.SUBNET(24).EQ(10.217.85.0)" | ||
priority = 10 | ||
|
||
# Any change in the following id set will force recreation of the cs policy | ||
forcenew_id_set = [ | ||
citrixadc_lbvserver.foo_lbvserver.id, | ||
citrixadc_csvserver.foo_csvserver.id, | ||
] | ||
} |