damhau.infoblox
Infoblox
Rolle zur Nutzung der Infoblox Rest API.
Anforderungen
Zugriff auf die Infoblox Rest API
Rollenvariablen
Sinnvolle Standardwerte sind in defaults/main.yml für die folgenden Variablen konfiguriert:
- infoblox_url (die URL des Infoblox Geräts)
- infoblox_action (die Rest API Aktion kann sein: erstellen, löschen, lesen, aktualisieren)
- infoblox_recordtype (der Infoblox Datensatztyp kann sein: a, ptr, host, cname)
- infoblox_view (die Infoblox Ansicht)
Variablen für Infoblox-Anmeldeinformationen:
- infoblox_username
- infoblox_password
Variablen für die Felder in der API-Anfrage, die Felder sind dokumentiert in
https://www.infoblox.com/wp-content/uploads/infoblox-deployment-infoblox-rest-api.pdf Der Name des Feldes wird mit infoblox_ vorangestellt:- infoblox_ipv4addr
- infoblox_comment
- infoblox_canonical
- infoblox_name
So führen Sie die Tests aus
Gehe zu tests/roles
ln -s ../../../infoblox/ damhau.infoblox
gehe zu tests
ansible-playbook -i inventory test.yml -t a (du kannst a, cname, ptr, host wählen)
Beispiel-Playbook
- hosts: localhost
connection: local
gather_facts: false
vars:
infoblox_username: 'benutzer'
infoblox_password: 'passwort'
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'
Lizenz
BSD
Installieren
ansible-galaxy install damhau.infoblox
Lizenz
Unknown
Downloads
88
Besitzer