Forum Discussion

PG0581's avatar
PG0581
Icon for Cirrus rankCirrus
Oct 25, 2018

Template F5 configuration

I was wondering if it's possible to template F5 configuration with something like Jinja2?

As an example, I'd like to templatize something like the below from the output of the Ansible "bigip_device_facts" module:

"name": "pool_name", 
            "priority_group_activation": 0, 
            "queue_depth_limit": 0, 
            "queue_on_connection_limit": "no", 
            "queue_time_limit": 0, 
            "reselect_tries": 0, 
            "server_ip_tos": "pass-through", 
            "server_link_qos": "pass-through", 
            "service_down_action": "none", 
            "slow_ramp_time": 10
        }, 
        {
            "allow_nat": "yes", 
            "allow_snat": "yes", 
            "client_ip_tos": "pass-through", 
            "client_link_qos": "pass-through", 
            "full_path": "/Common/f5_path", 
            "ignore_persisted_weight": "no", 
            "lb_method": "round-robin", 
            "members": [
                {
                    "address": "x.x.x.x", 
                    "connection_limit": 0, 
                    "dynamic_ratio": 1, 
                    "ephemeral": "no", 
                    "fqdn_autopopulate": "no", 
                    "full_path": "/Common/x.x.x.x:xx", 
                    "inherit_profile": "yes", 
                    "logging": "no", 
                    "monitors": [], 
                    "name": "x.x.x.x:xx", 
                    "partition": "Common", 
                    "priority_group": 0, 
                    "rate_limit": "no", 
                    "ratio": 1, 
                    "state": "offline"
                }, 
No RepliesBe the first to reply