Code Monkey home page Code Monkey logo

ansible-module-f5bigip's People

Contributors

erjac77 avatar gabrielfortin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ansible-module-f5bigip's Issues

Use specific imports instead of wildcard imports

Python Imports

Starting with Ansible version 2.2, all new modules are required to use imports in the form:

from module_utils.basic import AnsibleModule

Warning

The use of “wildcard” imports such as from module_utils.basic import * is no longer allowed.

Unable to create client-ssl profile with multiple options

Can't create a client-ssl profile with multiple options.

- name: "Create TLS standard clientssl profile"
  f5bigip_ltm_profile_client_ssl:
      f5_hostname: "{{ environment[0].F5_SERVER }}"
      f5_port: "{{ environment[0].F5_SERVER_PORT }}"
      f5_username: "{{ environment[0].F5_USER }}"
      f5_password: "{{ environment[0].F5_PASSWORD }}"

      defaults_from: "/Common/clientssl"
      name: "clientssl-tls-standard"
      partition: "{{ partition }}"
      ciphers: "NATIVE:!MD5:!EXPORT:!DES:!DHE:!EDH:!RC4:!ADH:!SSLv2:!SSLv3:@SPEED"
      options:
        - dont_insert_empty_fragments
        - single_dh_use
        - no_sslv2
        - no_sslv3
        - no_tlsv1
        - no_tlsv1_1

This gives an error:

TASK [Create TLS standard clientssl profile] ****************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "value of options must be one of: all_bugfixes,cipher_server_preference,dont_insert_empty_fragments,ephemeral_rsa,microsoft_big_sslv3_buffer,microsoft_sess_id_bug,msie_sslv2_rsa_padding,netscape_ca_dn_bug,netscape_challenge_bug,netscape_demo_cipher_change_bug,netscape_reuse_cipher_change_bug,no_session_resumption_on_renegotiation,no_ssl,no_sslv2,no_sslv3,no_tls,no_tlsv1,no_tlsv1_1,no_tlsv1_2,no_dtls,passive_close, none, pkcs1_check_1,pkcs1_check_2, single_dh_use,ssleay_080_client_dh_bug,sslref2_reuse_cert_type_bug,tls_d5_bug,tls_rollback_bug, got: ['dont_insert_empty_fragments', 'single_dh_use', 'no_sslv2', 'no_sslv3', 'no_tlsv1', 'no_tlsv1_1']"}

Support for "provider" parameter

F5 bigip modules included in Ansible supports a provider dictionnary object with server, user, password, server_port and validate_certs

May you please adapt your modules to also accept same structure, so that playbook mixing both modules look homogeneous.

Many thanks for these useful modules.

Convert Util Qkview command line arguments to Ansible module parameters

https://support.f5.com/csp/article/K23928121

Option Description When to use
-s Set maximum file size to capture, in bytes. Setting this value to -s 0 is equivalent to 75 MB. BIG-IP system log files are truncated due to size.
-v Display verbose output. The qkview command does not complete generating a QKView file.
-f Provide an alternate file name. If not set, the default file name syntax is [BIGIP_HOSTNAME].qkview. You want to generate multiple qkview diagnostic files taken at different times.
-t Set maximum time for any one module to complete. F5 Technical Support tells you that a module's information is missing from your QKView diagnostic file.
-c Collect complete system information, possibly including sensitive user information. F5 Technical Support requests complete information in the qkview diagnostic file.
--exclude Exclude specified log files from output. You want to exclude sensitive files when you run the qkview command at the command line.

possible issue with f5bigip_ltm_virtual_profile.py

Hi,
I am trying to add a HTTP profile to a vServer and have issues when both the profile and the vServer are not in the Common partition. When I use the Ansible task:

- name: add HTTP profile
  f5bigip_ltm_virtual_profile:
      f5_hostname: "{{Target.host}}"
      f5_username: "{{setup_user}}"
      f5_password: "{{setup_pass}}"
      partition: App_XYZ
      state: "present"
      name: myHttp
      virtual: vs_Server
  delegate_to: localhost

I get this error:

"msg": "404 Unexpected Error: Not Found for uri: https://bigip1:443/mgmt/tm/ltm/virtual/~App_XYZ~vs_Server/profiles/\nText: u'{"code":404,"message":"Object not found - myHttp","errorStack":[],"apiError":1}'"

But: When I look in the GUI I see the profile was correctly associated with the vServer!

When I re-run the playbook it always works fine. The issue is when adding the profile to a vServer for the 1st time.

Maybe my arguments are wrong. Any help would be appreciated - thanks!

-Jim ([email protected])

f5bigip_cm_device: "Missing required params: ['partition']"

Hi,
When trying to use the f5bigip_cm_device module, regardless of what values I passed, I got the error:

fatal: [c1-guest00 -> localhost]: FAILED! => {"changed": false, "msg": "Missing required params: ['partition']"}

Removing the line

del self.params['partition']

from f5bigip_cm_device.py solved the issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.