# Infoblox

## Features

- Network Pools synchronization
- DNS Zone & Zone record synchronization
- Host Record synchronization
- Total & Free IP status bar for networks
- Network Grid and List view with IP Status and records, date and user tracking
- Automatic and manual IP Reservations, DNS A/PTR record creation and deletion
- Use script variables like <%= variableX %> for evaluation of the key data in extended attributes

## Adding Infoblox Integration

### About this task

NOTE

Making full use of the HPE Morpheus Enterprise Infoblox integration requires credentials for an Infoblox user account with API access granted, access to list the pools and zones you wish to work with, and rights to create and destroy records. See Infoblox documentation for more information on user rights administration in that product.

### Procedure

1. Navigate to `Infrastructure - Network - Integrations`
2. Select + ADD > IPAM > Infoblox
3. Enter the following: 

   ![../../_images/infoblox_settings_new.png](https://support.hpe.com/hpesc/public/api/document/sd00007732en_us/GUID-98F9FF7B-AC47-4C2E-B21B-FAE2E4D79468-high.png)

   NAME
   :   Name of the Integration in HPE Morpheus Enterprise

   Enabled
   :   Deselect to disable the Integration

   URL
   :   Infoblox wapi url. Example: <https://yourInfobloxHost/wapi/v2.10.5>

       TIP

       The target Infoblox host wapi version can be referenced at <https://yourInfobloxHost/wapidoc/>

   USERNAME
   :   Infoblox user username

   PASSWORD
   :   Infoblox user password

   THROTTLE RATE
   :   In milliseconds (ms)

   DISABLE SSL SNI VERIFICATION
   :   Leave selected to disable SSL SNI Verification

   INVENTORY EXISTING
   :   Mark this option to inventory existing network pools from Infoblox

   NETWORK FILTER
   :   Filter which networks are synced into HPE Morpheus Enterprise. Example: Network Filter: `network_view=default&*Building=work`

   ZONE FILTER
   :   Filter terms for Zone Records

   TENANT MATCH ATTRIBUTE
   :   This can be set to the name of the extended attribute in Infoblox where HPE Morpheus Enterprise will check for the id of a morpheus tenant. This allows for setting the tenant’s HPE Morpheus Enterprise id to an extended attribute field on a network view or network in Infoblox, and when the network or view is discovered by morpheus, it will be auto assigned to the right tenant.

   IP MODE
   :   Static IPs or DHCP Reservations

   EXTRA ATTRIBUTES
   :   Accepts a JSON input of custom attributes that can be saved on host records in Infoblox. These Must be first defined as extra attributes in Infoblox and values can be injected for the user creating the record and the date of assignment. The available injectable attributes are: userId, username, and dateCreated.

       ```
       ```
       {  
         "Date Assigned":"<%=dateCreated%>",  
         "Requestor":"<%=username%>",  
         "Request Number":"<%=userId%>"  
       }
       ```
       ```
4. Select SAVE CHANGES

### Results

Upon save the Infoblox IPAM integration will be created and the following will sync:

- Infoblox networks will be synced in and populate in the Infrastructure - Network - IP Pools tab and in the Infoblox detail page under the NETWORK POOLS tab
- Host Records will sync and populate in the Network Pool detail view (select an IP Pool name to view)
- DNS Zones will sync and populate under Infrastructure - Network - Domains and in the Infoblox detail page under the HOSTS tab
- DNS Zone Records will sync and populate

## Adding IP Pools to Networks

### About this task

HPE Morpheus Enterprise can automatically assign the next available Infoblox IP in an IP/Network Pool and create the corresponding DNS records, as well as remove the records upon teardown. To enable this, add an Infoblox IP/Network Pool to the Network Pool section on a Network(s).

### Procedure

1. Navigate to Infrastructure  >  Network  >  Networks
2. Select a Network name and click EDIT
3. In the NETWORK POOL section, search for and select the name of the IP/Network Pool. 

   - Gateway, DNS and CIDR must be populated for static/pool IP assignment
   - Select Allow IP Override to allow selecting between DHCP, Static entry and Pool Selection at provision time (if desired)
   - Deselect DHCP server if a DHCP server will not be used on the network (only static and/or IP Pool IP assignment)
4. Select SAVE CHANGES

## Creating Host Records

### Procedure

1. Select a Network Pool from Infrastructure  >  Network  >  IP Pools or Infrastructure  >  Network  >  Services  >  Infoblox
2. Select + ADD
3. Enter the following 

   ![../../_images/infoblox_addhostrecord.png](https://support.hpe.com/hpesc/public/api/document/sd00007732en_us/GUID-06C4001C-7079-484B-93C0-F78B6A6000CE-high.png)

   HOSTNAME
   :   Hostname for the record

   IP ADDRESS
   :   IP address for the Host Record

   DOMAIN
   :   Select an Infoblox Zone

   Create DNS Records
   :   Select to create DNS A and PTR Records in Infoblox
4. Select SAVE CHANGES

## Creating Zone Records

### Procedure

1. Select a Domain from Infrastructure  >  Network  >  Domains or Infrastructure  >  Network  >  Services  >  Infoblox  >  Zones
2. Select + ADD
3. Enter the following 

   ![../../_images/infoblox_addzonerecord.png](https://support.hpe.com/hpesc/public/api/document/sd00007732en_us/GUID-9A893000-4821-4C0D-8205-5F43B0CBF5F3-high.png)

   NAME
   :   Name for the record, such as Hostname

   Type
   :   A, AAAA, CNAME, MX, NS, PTR, SOA, or TXT

   CONTENT
   :   Content of the record, such as IP or A Record

   TTL
   :   Time To Live value
4. Select SAVE CHANGES
