From 94f7cd55a19918747114318307dba50ecf58290b Mon Sep 17 00:00:00 2001 From: erjac77 Date: Thu, 5 Jul 2018 20:54:34 -0400 Subject: [PATCH] Remove trailing whitespaces and break too long lines --- library/f5bigip_gtm_listener.py | 10 ++-- library/f5bigip_gtm_monitor_http.py | 3 +- library/f5bigip_gtm_monitor_tcp.py | 3 +- library/f5bigip_gtm_monitor_udp.py | 5 +- library/f5bigip_gtm_rule.py | 9 +++- library/f5bigip_ltm_auth_ssl_cc_ldap.py | 2 +- library/f5bigip_ltm_monitor_diameter.py | 15 ++++-- library/f5bigip_ltm_policy_rule_action.py | 44 ++++++++--------- library/f5bigip_ltm_policy_rule_condition.py | 48 +++++++++---------- library/f5bigip_ltm_profile_client_ssl.py | 4 +- library/f5bigip_ltm_profile_ftp.py | 6 +-- library/f5bigip_ltm_profile_http.py | 4 +- library/f5bigip_ltm_profile_one_connect.py | 2 +- library/f5bigip_ltm_profile_server_ssl.py | 2 +- library/f5bigip_ltm_profile_tcp.py | 2 +- library/f5bigip_ltm_profile_tftp.py | 2 +- .../f5bigip_ltm_profile_web_acceleration.py | 14 +++--- library/f5bigip_ltm_virtual.py | 4 +- .../roles/f5bigip_gtm_rule/defaults/main.yml | 9 +++- .../defaults/main.yml | 2 +- 20 files changed, 107 insertions(+), 83 deletions(-) diff --git a/library/f5bigip_gtm_listener.py b/library/f5bigip_gtm_listener.py index cbfae01..83f80a4 100644 --- a/library/f5bigip_gtm_listener.py +++ b/library/f5bigip_gtm_listener.py @@ -105,10 +105,10 @@ - Specifies the type of source address translation enabled for the listener as well as the pool that the source address translation will use. suboptions: - pool: + pool: description: - Specifies the name of a SNAT pool used by the specified listener. - type: + type: description: - Specifies the type of source address translation associated with the specified listener. choices: ['automap', 'none', 'snat'] @@ -159,9 +159,9 @@ partition: Common description: My listener address: 10.10.1.1 - persist: + persist: - { name: dest_addr, partition: Common, tmDefault: 'yes' } - source_address_translation: + source_address_translation: type: automap state: present delegate_to: localhost @@ -236,7 +236,7 @@ def _set_crud_methods(self): def source_address_translation(self): if self._params['sourceAddressTranslation']: if self._params['sourceAddressTranslation']['type'] == 'automap' and 'pool' in self._params[ - 'sourceAddressTranslation']: + 'sourceAddressTranslation']: raise AnsibleF5Error("Cannot specify a pool when using automap.") else: return None diff --git a/library/f5bigip_gtm_monitor_http.py b/library/f5bigip_gtm_monitor_http.py index f462705..69f8743 100644 --- a/library/f5bigip_gtm_monitor_http.py +++ b/library/f5bigip_gtm_monitor_http.py @@ -65,7 +65,8 @@ - Specifies the password if the monitored target requires authentication. probe_timeout: description: - - Specifies the number of seconds after which the BIG-IP system times out the probe request to the BIG-IP system. + - Specifies the number of seconds after which the BIG-IP system times out the probe request to the BIG-IP + system. default: 5 recv: description: diff --git a/library/f5bigip_gtm_monitor_tcp.py b/library/f5bigip_gtm_monitor_tcp.py index eaf05e4..7f145fd 100644 --- a/library/f5bigip_gtm_monitor_tcp.py +++ b/library/f5bigip_gtm_monitor_tcp.py @@ -62,7 +62,8 @@ default: Common probe_timeout: description: - - Specifies the number of seconds after which the BIG-IP system times out the probe request to the BIG-IP system. + - Specifies the number of seconds after which the BIG-IP system times out the probe request to the BIG-IP + system. default: 5 recv: description: diff --git a/library/f5bigip_gtm_monitor_udp.py b/library/f5bigip_gtm_monitor_udp.py index c575452..f343785 100644 --- a/library/f5bigip_gtm_monitor_udp.py +++ b/library/f5bigip_gtm_monitor_udp.py @@ -67,7 +67,7 @@ default: Common probe_attempts: description: - - Specifies the number of times the BIG-IP system attempts to probe the host server, after which the BIG-IP + - Specifies the number of times the BIG-IP system attempts to probe the host server, after which the BIG-IP system considers the host server down or unavailable. default: 3 probe_interval: @@ -76,7 +76,8 @@ default: 1 probe_timeout: description: - - Specifies the number of seconds after which the BIG-IP system times out the probe request to the BIG-IP system. + - Specifies the number of seconds after which the BIG-IP system times out the probe request to the BIG-IP + system. default: 5 reverse: description: diff --git a/library/f5bigip_gtm_rule.py b/library/f5bigip_gtm_rule.py index d436a5f..22ebe65 100644 --- a/library/f5bigip_gtm_rule.py +++ b/library/f5bigip_gtm_rule.py @@ -62,7 +62,14 @@ f5_port: 443 name: my_rule partition: Common - api_anonymous: 'when DNS_REQUEST { if {[IP::addr [IP::remote_addr]/24 equals 10.10.1.0/24] } { cname cname.siterequest.com } else { host 10.20.20.20 } }' + api_anonymous: | + when DNS_REQUEST { + if { [IP::addr [IP::remote_addr]/24 equals 10.10.1.0/24] } { + cname cname.siterequest.com + } else { + host 10.20.20.20 + } + } state: present delegate_to: localhost ''' diff --git a/library/f5bigip_ltm_auth_ssl_cc_ldap.py b/library/f5bigip_ltm_auth_ssl_cc_ldap.py index 00e35fe..d2bbffc 100644 --- a/library/f5bigip_ltm_auth_ssl_cc_ldap.py +++ b/library/f5bigip_ltm_auth_ssl_cc_ldap.py @@ -132,7 +132,7 @@ f5_port: 443 name: my_ssl_cc_ldap partition: Common - servers: + servers: - localhost user_key: Key state: present diff --git a/library/f5bigip_ltm_monitor_diameter.py b/library/f5bigip_ltm_monitor_diameter.py index 5fc5369..694bf9a 100644 --- a/library/f5bigip_ltm_monitor_diameter.py +++ b/library/f5bigip_ltm_monitor_diameter.py @@ -49,14 +49,17 @@ - Specifies descriptive text that identifies the component. host_ip_address: description: - - Specifies the IP address of the sender of the Diameter message for the Diameter protocol peer discovery feature. + - Specifies the IP address of the sender of the Diameter message for the Diameter protocol peer discovery + feature. interval: description: - - Specifies, in seconds, the frequency at which the system issues the monitor check when either the resource is down or the status of the resource is unknown. + - Specifies, in seconds, the frequency at which the system issues the monitor check when either the resource + is down or the status of the resource is unknown. default: 10 manual_resume: description: - - Specifies whether the system automatically changes the status of a resource to up at the next successful monitor check. + - Specifies whether the system automatically changes the status of a resource to up at the next successful + monitor check. default: disabled choices: ['enabled', 'disabled'] name: @@ -97,14 +100,16 @@ default: 0 vendor_id: description: - - Specifies the IANA SMI Network Management Private Enterprise Code assigned to the vendor of the Diameter application. + - Specifies the IANA SMI Network Management Private Enterprise Code assigned to the vendor of the Diameter + application. default: 3375 vendor_specific_acct_application_id: description: - Specifies Specifies the ID of the vendor-specific accounting portion of a Diameter application. vendor_specific_auth_application_id: description: - - Specifies the ID of the vendor-specific authentication and authorization portion of a Diameter application. + - Specifies the ID of the vendor-specific authentication and authorization portion of a Diameter + application. vendor_specific_vendor_id: description: - Specifies the ID of a vendor-specific Diameter application. diff --git a/library/f5bigip_ltm_policy_rule_action.py b/library/f5bigip_ltm_policy_rule_action.py index acec6e8..70d8373 100644 --- a/library/f5bigip_ltm_policy_rule_action.py +++ b/library/f5bigip_ltm_policy_rule_action.py @@ -60,7 +60,7 @@ - Specifies that the cache should be modified. carp: description: - - + - TODO category: description: - Specifies that a category should be set. @@ -84,16 +84,16 @@ - Specifies that a cookie should be set. cookie_hash: description: - - + - TODO cookie_insert: description: - - + - TODO cookie_passive: description: - - + - TODO cookie_rewrite: description: - - + - TODO default: description: - Specifies that a default action should be taken. @@ -105,7 +105,7 @@ - Specifies that a connection should be deferred. destination_address: description: - - + - TODO disable: description: - Specifies that a feature should be disabled. @@ -123,7 +123,7 @@ - Specifies that an expiry should be set. expiry_secs: description: - - + - TODO expression: description: - Specifies that an expression should be set. @@ -132,7 +132,7 @@ - Specifies that an extension should be used. facility: description: - - + - TODO forward: description: - Specifies that forwarding should be modified. @@ -141,7 +141,7 @@ - Specifies that a from profile should be set. hash: description: - - + - TODO host: description: - Specifies that a host should be set. @@ -189,16 +189,16 @@ - Specifies that the connection should be sent through an internal virtual server. ip_address: description: - - + - TODO key: description: - - + - TODO l7dos: description: - Specifies that a Layer 7 DOS protection policy should be invoked. length: description: - - + - TODO local: description: - Specifies that a local action should be taken. @@ -210,7 +210,7 @@ - Specifies that a log should be generated. ltm_policy: description: - - + - TODO member: description: - Specifies that a member should be set. @@ -250,7 +250,7 @@ - Specifies that the Policy Enforcement Manager should be applied. persist: description: - - + - TODO pin: description: - Specifies that a connection should be pinned. @@ -269,7 +269,7 @@ - Specifies that a port should be set. priority: description: - - + - TODO profile: description: - Specifies that a profile should be set. @@ -339,19 +339,19 @@ - Specifies that a snat pool should be set. source_address: description: - - + - TODO ssl_client_hello: description: - - + - TODO ssl_server_handshake: description: - - + - TODO ssl_server_hello: description: - - + - TODO ssl_session_id: description: - - + - TODO state: description: - Specifies the state of the component on the BIG-IP system. @@ -374,10 +374,10 @@ - Specifies a timeout value in seconds. uie: description: - - + - TODO universal: description: - - + - TODO unnamed_query_parameter: description: - Specifies that an unnamed query parameter should be set. diff --git a/library/f5bigip_ltm_policy_rule_condition.py b/library/f5bigip_ltm_policy_rule_condition.py index e8f85db..9ed46bc 100644 --- a/library/f5bigip_ltm_policy_rule_condition.py +++ b/library/f5bigip_ltm_policy_rule_condition.py @@ -33,7 +33,7 @@ options: address: description: - - + - TODO all: description: - Specifies that all items should be selected. @@ -42,10 +42,10 @@ - Specifies the application service to which the object belongs. browser_type: description: - - + - TODO browser_version: description: - - + - TODO case_insensitive: description: - The value matched on is case insensitive. @@ -66,29 +66,29 @@ - Specifies that code should be selected. common_name: description: - - + - TODO contains: description: - The value matches if it contains a certain string. continent: description: - - + - TODO country_code: description: - - + - TODO country_name: description: - - + - TODO cpu_usage: description: - Specifies a condition based upon CPU usage percentage for the past 15 seconds, 1 minute or 5 minutes intervals. device_make: description: - - + - TODO device_model: description: - - + - TODO domain: description: - Specifies that a domain should be selected. @@ -165,16 +165,16 @@ - The value matched on is from the internal side of a connection. isp: description: - - + - TODO last_15secs: description: - - + - TODO last_1min: description: - - + - TODO last_5mins: description: - - + - TODO less: description: - The value matches if it is less than a given value. @@ -189,7 +189,7 @@ - Specifies that a major should be selected. matches: description: - - + - TODO minor: description: - Specifies that a minor should be selected. @@ -211,7 +211,7 @@ - The opposite of this condition matches. org: description: - - + - TODO password: description: - Specifies that a password should be selected. @@ -242,10 +242,10 @@ - Specifies that a query string should be selected. region_code: description: - - + - TODO region_name: description: - - + - TODO default: false remote: description: @@ -273,22 +273,22 @@ - Specifies that a scheme should be selected. server_name: description: - - + - TODO ssl_cert: description: - - + - TODO ssl_client_hello: description: - - + - TODO ssl_extension: description: - - + - TODO ssl_server_handshake: description: - - + - TODO ssl_server_hello: description: - - + - TODO starts_with: description: - The value matches if it starts with a certain string. @@ -308,7 +308,7 @@ - Specifies that an unnamed query parameter should be selected. user_agent_token: description: - - + - TODO username: description: - Specifies that a username should be selected. diff --git a/library/f5bigip_ltm_profile_client_ssl.py b/library/f5bigip_ltm_profile_client_ssl.py index af637d6..0a828e4 100755 --- a/library/f5bigip_ltm_profile_client_ssl.py +++ b/library/f5bigip_ltm_profile_client_ssl.py @@ -261,7 +261,7 @@ choices: ['enabled', 'disabled'] generic_alert: description: - - Enables or disables generic-alert. + - Enables or disables generic-alert. choices: ['enabled', 'disabled'] ssl_sign_hash: description: @@ -274,7 +274,7 @@ - f5-sdk ''' -EXAMPLES = ''' +EXAMPLES = ''' - name: Create LTM Client SSL profile f5bigip_ltm_profile_client_ssl: f5_hostname: 172.16.227.35 diff --git a/library/f5bigip_ltm_profile_ftp.py b/library/f5bigip_ltm_profile_ftp.py index 34ac31b..2ff818a 100644 --- a/library/f5bigip_ltm_profile_ftp.py +++ b/library/f5bigip_ltm_profile_ftp.py @@ -33,7 +33,7 @@ options: app_service: description: - - Specifies the name of the application service to which the profile belongs. + - Specifies the name of the application service to which the profile belongs. defaults_from: description: - Specifies the profile that you want to use as the parent profile. @@ -54,7 +54,7 @@ default: ftp-data security: description: - - Enables or disables secure FTP traffic for the BIG-IP Application Security Manager. + - Enables or disables secure FTP traffic for the BIG-IP Application Security Manager. default: disabled choices: ['enabled', 'disabled'] state: @@ -84,7 +84,7 @@ - f5-sdk ''' -EXAMPLES = ''' +EXAMPLES = ''' - name: Create LTM FTP Profile f5bigip_ltm_profile_ftp: f5_hostname: 172.16.227.35 diff --git a/library/f5bigip_ltm_profile_http.py b/library/f5bigip_ltm_profile_http.py index d904c79..ba6a00c 100644 --- a/library/f5bigip_ltm_profile_http.py +++ b/library/f5bigip_ltm_profile_http.py @@ -101,8 +101,8 @@ choices: ['allow', 'pass-through', 'reject'] truncated_redirects: description: - - Specifies the pass-through behavior when a redirect lacking the trailing carriage-return and line feed - pair at the end of the headers is parsed. + - Specifies the pass-through behavior when a redirect lacking the trailing carriage-return and line + feed pair at the end of the headers is parsed. default: disabled choices: ['enabled', 'disabled'] unknown_method: diff --git a/library/f5bigip_ltm_profile_one_connect.py b/library/f5bigip_ltm_profile_one_connect.py index c79a58f..5b9f386 100755 --- a/library/f5bigip_ltm_profile_one_connect.py +++ b/library/f5bigip_ltm_profile_one_connect.py @@ -93,7 +93,7 @@ - f5-sdk ''' -EXAMPLES = ''' +EXAMPLES = ''' - name: Create LTM OneConnect profile f5bigip_ltm_profile_one_connect: f5_hostname: 172.16.227.35 diff --git a/library/f5bigip_ltm_profile_server_ssl.py b/library/f5bigip_ltm_profile_server_ssl.py index 84b4476..7fb9c6f 100755 --- a/library/f5bigip_ltm_profile_server_ssl.py +++ b/library/f5bigip_ltm_profile_server_ssl.py @@ -237,7 +237,7 @@ - f5-sdk ''' -EXAMPLES = ''' +EXAMPLES = ''' - name: Create LTM Server SSL Profile f5bigip_ltm_profile_server_ssl: f5_hostname: 172.16.227.35 diff --git a/library/f5bigip_ltm_profile_tcp.py b/library/f5bigip_ltm_profile_tcp.py index 763d3ec..9f5ac3a 100755 --- a/library/f5bigip_ltm_profile_tcp.py +++ b/library/f5bigip_ltm_profile_tcp.py @@ -189,7 +189,7 @@ choices: ['enabled', 'disabled'] mptcp_fallback: description: - - Specifies, MPTCP fallback mode. + - Specifies, MPTCP fallback mode. default: reset choices: ['accept', 'active-accept', 'reset', 'retransmit'] mptcp_joinmax: diff --git a/library/f5bigip_ltm_profile_tftp.py b/library/f5bigip_ltm_profile_tftp.py index 28b87d6..de2c939 100755 --- a/library/f5bigip_ltm_profile_tftp.py +++ b/library/f5bigip_ltm_profile_tftp.py @@ -36,7 +36,7 @@ - Specifies the name of the application service to which the profile belongs. defaults_from: description: - - Specifies the profile that you want to use as the parent profile. + - Specifies the profile that you want to use as the parent profile. description: description: - User defined description. diff --git a/library/f5bigip_ltm_profile_web_acceleration.py b/library/f5bigip_ltm_profile_web_acceleration.py index 2b4a0a9..bfc134e 100644 --- a/library/f5bigip_ltm_profile_web_acceleration.py +++ b/library/f5bigip_ltm_profile_web_acceleration.py @@ -36,7 +36,7 @@ - Configures a list of applications assigned to this profile. app_service: description: - - Specifies the name of the application service to which the profilebelongs. + - Specifies the name of the application service to which the profile belongs. cache_aging_rate: description: - Specifies how quickly the system ages a cache entry. @@ -44,7 +44,7 @@ choices: range(0,10) cache_client_cache_control_mode: description: - - Specifies which cache disabling headers sent by clients the systemignores. + - Specifies which cache disabling headers sent by clients the system ignores. default: all choices: ['all', 'max-age', 'none'] cache_insert_age_header: @@ -66,7 +66,7 @@ default: 50000 cache_object_min_size: description: - - Specifies the smallest object that the system considers eligible forcaching. + - Specifies the smallest object that the system considers eligible for caching. default: 500 cache_size: description: @@ -74,16 +74,18 @@ default: 100 cache_uri_exclude: description: - - Configures a list of Uniform Resource Identifiers (URIs) to exclude fromthe WA Cache. + - Configures a list of Uniform Resource Identifiers (URIs) to exclude from the WA Cache. cache_uri_include: description: - Configures a list of URIs that are cacheable. cache_uri_include_override: description: - - Configures a list of URIs that should be cached in the WA cache eventhough they would normally not be cached due to constraints defined byweb-accelerationTMSH Reference 67 - 203cache-object-max-size or others. + - Configures a list of URIs that should be cached in the WA cache even though they would normally not be + cached due to constraints defined by web-acceleration I(cache_object_max_size) or others. cache_uri_pinned: description: - - Configures a list of URIs that are kept in the WA cache regardless theirmax-age or expiry settings. + - Configures a list of URIs that are kept in the WA cache regardless the I(cache_max_age) or expiry + settings. defaults_from: description: - Configures the profile that you want to use as the parent profile. diff --git a/library/f5bigip_ltm_virtual.py b/library/f5bigip_ltm_virtual.py index eed486e..8866ad5 100644 --- a/library/f5bigip_ltm_virtual.py +++ b/library/f5bigip_ltm_virtual.py @@ -188,10 +188,10 @@ - Specifies the type of source address translation enabled for the listener as well as the pool that the source address translation will use. suboptions: - pool: + pool: description: - Specifies the name of a SNAT pool used by the specified listener. - type: + type: description: - Specifies the type of source address translation associated with the specified listener. choices: ['automap', 'lsn', 'none', 'snat'] diff --git a/tests/roles/f5bigip_gtm_rule/defaults/main.yml b/tests/roles/f5bigip_gtm_rule/defaults/main.yml index 5d4d9af..fb5ec8c 100644 --- a/tests/roles/f5bigip_gtm_rule/defaults/main.yml +++ b/tests/roles/f5bigip_gtm_rule/defaults/main.yml @@ -1,4 +1,11 @@ --- rule_name: my_rule -rule_api_anonymous: when DNS_REQUEST { if {[IP::addr [IP::remote_addr]/24 equals 10.10.1.0/24] } {cname cname.siterequest.com } else { host 10.20.20.20}} \ No newline at end of file +rule_api_anonymous: | + when DNS_REQUEST { + if { [IP::addr [IP::remote_addr]/24 equals 10.10.1.0/24] } { + cname cname.siterequest.com + } else { + host 10.20.20.20 + } + } \ No newline at end of file diff --git a/tests/roles/f5bigip_sys_management_ip/defaults/main.yml b/tests/roles/f5bigip_sys_management_ip/defaults/main.yml index 73d97d0..bb35df4 100644 --- a/tests/roles/f5bigip_sys_management_ip/defaults/main.yml +++ b/tests/roles/f5bigip_sys_management_ip/defaults/main.yml @@ -1,6 +1,6 @@ --- management_ip_name: 10.4.4.4 -management_ip_mask : 24 +management_ip_mask: 24 management_ip_description: My management ip management_ip_name_default: 10.3.3.3 \ No newline at end of file