Skip to content

Commit

Permalink
couple of notes added to the docs (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
skudriavtsev authored Jul 27, 2021
1 parent 7edf44c commit 48165ef
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docs/resources/infoblox_allocation.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,18 @@ Its attributes are:
| cidr | required for dynamic allocation, see the description | The network block (in CIDR format) where to allocate an IP address from. Used for dynamic allocation; in this case ‘ip_addr’ attribute is empty or omitted. | 10.4.3.128/20 2a00:1148::/32 |
| ip_addr | required for static allocation, see the description | An IP address to be allocated (marked as ‘Used’). For static allocation, in which case the ‘cidr’ attribute has to be empty or omitted. | 10.4.3.138 |
| mac_addr | optional | Only for IPv4. The MAC address to associate the IP address with. The default value is ‘00:00:00:00:00:00’. | 02:42:97:87:70:f9 |
| duid | optional | Only for IPv6. DHCPv6 Unique Identifier (DUID) of the address object. The default value is empty. | 0c:c0:84:d3:03:00:09:12 |
| duid | required | Only for IPv6. DHCPv6 Unique Identifier (DUID) of the address object. | 0c:c0:84:d3:03:00:09:12 |
| ttl | optional | The same as for DNS-related resources. This attribute’s value makes sense only when ‘enable_dns’ is ‘true’. If omitted, the value of this attribute is the same as for the parent zone of the DNS records for the resource. | 3600 |

> **Warning! If a host record with enable_dns = true
> has a name as FQDN, and then a user does an update
> making enable_dns = false, then the name of the host
> record MUST be changed to the form of just a name,
> without the zone part. Example: test.example.com -> test**
> **Note: Currently there is no support for multiple
> IP addresses for a host record.**
## Example

resource "infoblox_ipv4_allocation" "alloc1" {
Expand All @@ -40,6 +49,7 @@ Its attributes are:
cidr="2a00:1148::/64" # this is to allocate
# an IP address from the given network block
fqdn="honeypot-vm.edge.example.com"
duid = "0c:c0:84:d3:03:00:09:12"
enable_dns = "false"
enable_dhcp = "false"
comment = "A honeypot VM for malicious queries."
Expand Down
10 changes: 10 additions & 0 deletions docs/resources/infoblox_association.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ the same as allocation-resources but works with already existing host
records (ex. created as 'infoblox_*_allocation' resources). More
differences: 'cidr' attribute is useless and 'ip_addr' is mandatory.

> **Warning! If a host record with enable_dns = true
> has a name as FQDN, and then a user does an update
> making enable_dns = false, then the name of the host
> record MUST be changed to the form of just a name,
> without the zone part. Example: test.example.com -> test**
> **Note: Currently there is no support for multiple
> IP addresses for a host record.**
## Examples

resource "infoblox_ipv4_association" "association1" {
Expand All @@ -30,6 +39,7 @@ differences: 'cidr' attribute is useless and 'ip_addr' is mandatory.
ip_addr = infoblox_ipv6_allocation.alloc2

fqdn="honeypot-vm.edge.example.com"
duid = "0c:c0:84:d3:03:00:09:12"
enable_dns = "false"
enable_dhcp = "false"

Expand Down

0 comments on commit 48165ef

Please sign in to comment.