Code Monkey home page Code Monkey logo

ansible-module-infoblox's Introduction

ansible-infoblox

Awesome infobox module for ansible

Dependencies

  • Python "requests <= 2.16.0" module is required
sudo pip install requests

Extensible Attributes

Extensible attributes are supported in this client. It should be noted that in WAPI versions before 1.2, the field is named "extensible_attributes", whereas in version 1.2 and later, it is named "extattrs".

Infoblox Version Compatibility

This gem is known to be compatible with Infoblox versions 1.0 through 2.3. While Infoblox claims that their API is backwards-compatible, one caveat remains with the Extensible Attributes (see elsewhere in this document). Some features are only available in newer versions (such as FixedAddress and AAAARecord).

Usage

Actions

  • get_network [network]
  • get_ipv6network [network]
  • get_range [start_addr, end_addr]
  • get_next_available_ip [network] | [start_addr, end_addr]
  • get_host [hostname]
  • add_host [hostname, network] | [hostname, start_addr, end_addr]
  • add_ipv6host [hostname, network]
  • delete_host [hostname]
  • set_extattr [hostname, attirbule name, attribute value]
  • get_a_record [name]
  • set_a_record [name, address | addresses, ttl=None] (this will change existing records if they exist)
  • delete_a_record [name]

Networks vs Ranges

get_next_available_ip and add_host can be used in either a Network or a Range on the Infoblox environment. Use the network parameter in the 192.168.1.0/24 or 192.168.1.0 format to reference a Network. Use the start_addr and end_addr parameters in the 192.168.0.1 format to reference a Range.

Playbook example

---
- hosts: localhost
  connection: local
  gather_facts: False

  tasks:
    - name: "Add host"
      infoblox:
        server: 192.168.1.100
        username: admin
        password: admin
        action: add_host
        network: 192.168.1.0/24
        host: "{{ item }}"
      with_items:
        - test01.internal
        - test02.internal
      register: result

    - name: "Do awesome stuff with the result"
      debug:
        var: result

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

ansible-module-infoblox's People

Contributors

xoanmi avatar itdependsnetworks avatar brampling avatar etanol avatar jdetroy avatar ghyde avatar bradynathan avatar andyle2010 avatar

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.