Giter Site home page Giter Site logo

infoblox's Introduction

Infoblox

Role to consume the Infoblox Rest API.

Requirements

Access to the Infoblox Rest API

Role Variables

  • Sensible defaut are configured in defaults/main.yml for the following variables

    • infoblox_url (the infoblox appliance url)
    • infoblox_action (the rest api action can be: create, delete, read, update)
    • infoblox_recordtype (the infoblox record type can be: a, ptr, host, cname)
    • infoblox_view (the infoblox view)
  • Variables for Infoblox credentials

    • infoblox_username
    • infoblox_password
  • Variables for the field in the API request, the field are docummented in
    https://www.infoblox.com/wp-content/uploads/infoblox-deployment-infoblox-rest-api.pdf The name of the field is prefixed by infoblox_

    • infoblox_ipv4addr
    • infoblox_comment
    • infoblox_canonical
    • infoblox_name

How to run the tests

Cd in tests/roles
ln -s ../../../infoblox/ damhau.infoblox
cd in tests
ansible-playbook -i inventory test.yml -t a (you can choose a, cname, ptr, host)

Example Playbook

- hosts: localhost
  connection: local
  gather_facts: false
  vars:
    infoblox_username: 'user'
    infoblox_password: 'pass'
    infoblox_hostname: 'infobloxfqdn'
    infoblox_view: 'default'
  tasks:
  - include_role:
       name: damhau.infoblox
    vars:
      infoblox_name: 'newhost.dhconsulting.ch'
      infoblox_ipv4addr: '1.1.1.1'
      infoblox_recordtype: 'host'
      infoblox_action: 'create'

  - include_role:
       name: damhau.infoblox
    vars:
      infoblox_name: 'newhost.dhconsulting.ch'
      infoblox_recordtype: 'host'
      infoblox_action: 'delete'

License

BSD

infoblox's People

Contributors

damhau avatar

Watchers

 avatar  avatar

Forkers

dleich sebihiy

infoblox's Issues

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.