Jump to content

How can I build a rewrite action with Terraform adc provider to insert text on vpn front page


Go to solution Solved by Sumanth Lingappa,

Recommended Posts

The cli code I wish to have Terraform create:

add rewrite action rw_acr_custom_notification insert_after_all "http.res.body(50000).set_text_mode(IGNORECASE)" ""<div id=ADCRewrite style='text-align:center;color:white;font-size:20px;'><div id=Please notice><br><b>Important notice: You are accessing a secure environment</b></div>"" -search q/text("customAuthBottom">")/

Link to comment
Share on other sites

  • Solution

Hello @Henrik M. Christensen​, thank you for posting your question here.

The terraform resource equivalent to the nscli you asked for is below.

```

resource "citrixadc_rewriteaction" "rw_acr_custom_notification" {

 name = "rw_acr_custom_notification"

 type = "insert_after_all"

 target = "http.res.body(50000).set_text_mode(IGNORECASE)"

 stringbuilderexpr = ""<div id=ADCRewrite style=''text-align:center;color:white;font-size:20px;''><div id=Please notice><br><b>Important notice: You are accessing a secure environment</b></div>""

 search = "text("customAuthBottom\">")"

}

```

You can also ask your question in our GitHub repo issues section where our active ADC terraform ADC user community can also help you.

https://github.com/citrix/terraform-provider-citrixadc/issues

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...