Forum Discussion

matthias_lange_'s avatar
matthias_lange_
Icon for Nimbostratus rankNimbostratus
Nov 06, 2013

Automatic deployment of IRULES

Dear Team, we are running up to 6 instances of LB's from F5. Our plan is to centralize the configuration in our SVN.

 

Every change should be done via a "SSH" comand in tmsh directly on the LB-Instance. This works fine for everything except incerting IRULES.

 

Do you have any Idea how we could add IRULES via tmsh or directly into the LB? [I-CONTROL is not the best option]

 

Thank you in advance.

 

Cheers Matthias

 

1 Reply

  • There is a way. If doing this from the Bash command line, you need to first create a local environment variable, and then assign that variable to the TMSH iRule creation command line. Example:

     rule="when HTTP_REQUEST { log local0. \"Hello World\" }"
     tmsh create / ltm rule "test-rule-2" $rule