damhau.infoblox

Infoblox

Rola do korzystania z Infoblox Rest API.

Wymagania

Dostęp do Infoblox Rest API.

Zmienne Roli

  • Domyślne ustawienia są skonfigurowane w pliku defaults/main.yml dla następujących zmiennych:

    • infoblox_url (adres URL urządzenia Infoblox)
    • infoblox_action (akcja API, może być: create, delete, read, update)
    • infoblox_recordtype (typ rekordu Infoblox, może być: a, ptr, host, cname)
    • infoblox_view (widok Infoblox)
  • Zmienne do poświadczeń Infoblox:

    • infoblox_username
    • infoblox_password
  • Zmienne dla pól w żądaniu API, pola są opisane w
    https://www.infoblox.com/wp-content/uploads/infoblox-deployment-infoblox-rest-api.pdf Nazwa pola jest poprzedzona prefiksem infoblox_:

    • infoblox_ipv4addr
    • infoblox_comment
    • infoblox_canonical
    • infoblox_name

Jak uruchomić testy

Przejdź do tests/roles
ln -s ../../../infoblox/ damhau.infoblox
Przejdź do tests
ansible-playbook -i inventory test.yml -t a (możesz wybrać a, cname, ptr, host)

Przykładowy Playbook

- hosts: localhost
  connection: local
  gather_facts: false
  vars:
    infoblox_username: 'użytkownik'
    infoblox_password: 'hasło'
    infoblox_hostname: 'infobloxfqdn'
    infoblox_view: 'domyślny'
  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'

Licencja

BSD

O projekcie

Role to consume Infoblox Rest API

Zainstaluj
ansible-galaxy install damhau.infoblox
Licencja
Unknown
Pobrania
88
Właściciel