Giter VIP home page Giter VIP logo

ansible-efficientip's Introduction

Build status

EfficientIP Ansible module

An EfficientIP Solidserver module for Ansible

Disclaimer

This module is still in heavy developpment.

Install

  • put it in your Ansible module directory
  • you also need to install the "requests" py module

Usage

Task listing...

  • ip_space_list
  • ip_subnet_list space [ one_class_parameter | class_name ]
  • ip_address_find_free subnet_id
  • ip_address_add hostname, ipv4, space [ mac_addr, class_name, class_parameters ]
  • ip_address_delete ipv4, space
  • dns_cname_add alias_fqdn, hostname, ttl
  • dns_cname_delete alias_fqdn

via Playbooks

  tasks:
  - name: list space
    eip:
     ipm_server=<your_ipm_ipaddress_or_hostname_here>
     ipm_username=<your_ipm_admin_user_here>
     ipm_password=<your_ipm_admin_password_here>
     ipm_action=ip_space_list

  - name: list usable subnet from a space
    eip:
     ipm_server=<your_ipm_ipaddress_or_hostname_here>
     ipm_username=<your_ipm_admin_user_here>
     ipm_password=<your_ipm_admin_password_here>
     ipm_action=ip_subnet_list
     ipm_space=NY_space
     ipm_classparam='metadata1=somedata'
     -or- 
     ipm_classname=myclass
    register: eip

  - name: find one free IP address on a subnet
    eip:
     ipm_server=<your_ipm_ipaddress_or_hostname_here>
     ipm_username=<your_ipm_admin_user_here>
     ipm_password=<your_ipm_admin_password_here>
     ipm_action=ip_address_find_free
     ipm_subnet_id=4
    register: eip

  - name: add IP on space
    eip:
     ipm_server=<your_ipm_ipaddress_or_hostname_here>
     ipm_username=<your_ipm_admin_user_here>
     ipm_password=<your_ipm_admin_password_here>
     ipm_action=ip_address_add
     ipm_space=NY_space
     ipm_hostname=hello.mydomain.net
     ipm_classparam='metadata1=somedata&metadata2=somedata&[...]'
     ipm_classname=myclass
     ipm_hostaddr='{{ eip.result.output }}'

  - name: delete IP address
    eip:
     ipm_server=<your_ipm_ipaddress_or_hostname_here>
     ipm_username=<your_ipm_admin_user_here>
     ipm_password=<your_ipm_admin_password_here>
     ipm_action=ip_address_delete
     ipm_space=NY_space
     ipm_hostaddr=192.168.1.103

  - name: add CNAME
    eip:
     ipm_server=<your_ipm_ipaddress_or_hostname_here>
     ipm_username=<your_ipm_user_here>
     ipm_password=<your_ipm_pwd_here>
     ipm_action=dns_cname_add
     ipm_alias_fqdn=alias.mydomain.net
     ipm_alias_value=hostname.mydomain.net
     ipm_alias_ttl=600

  - name: delete CNAME
    eip:
     ipm_server=<your_ipm_ipaddress_or_hostname_here>
     ipm_username=<your_ipm_user_here>
     ipm_password=<your_ipm_pwd_here>
     ipm_action=dns_cname_delete
     ipm_alias_fqdn=alias.mydomain.net

ansible-efficientip's People

Contributors

acoston avatar

Watchers

 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.