Appendix B: YML and JSON Templates
This appendix contains sample YML and JSON templates for the server deployment. To download the zip file for both the YML and JSON files, click here.
YML File
As an administrator, create the userdata.yml file.
After you download the YML file, modify it as follows:
#cloud-config
host_setup:
jointoken: "YOUR JOIN TOKEN"
Enter the join token you copied from the portal in the YML file. The portal uses the IP address, which is displayed on the DNS Forwarding Proxy page of the Infoblox Portal, to connect to the proxy.
Optionally, you can add host tags to associate Infoblox servers with the Infoblox Portal, as follows:
#cloud-config
host_setup:
jointoken: "your BloxOne join token”
access_https_proxy: “http://proxy_ip:port”
tags:
- "demo=toi"
- “product=example”
JSON File
After you download the JSON file, complete the following configurations.
Setting up Network Interfaces
To set up network interfaces, use the meta data parameter network-config. The following example
illustrates a general format for network configuration. Each element within the config attribute defines the
interface, such as vLAN, DNS, or other routing configuration.
|
---|
Setting Up Static Interfaces
To set up static interfaces, provide the specific data within the config attribute. The following is an
example:
{ |
---|
Setting Up DNS Configuration
Use the following commands to perform DNS configuration. Note that only the address parameter is
mandatory; search is optional.
{ |
---|
Setting Up DHCP Configuration
Use the following commands to perform DHCP configuration. The following example illustrates how to configure for custom DHCP options:
"ipv4addrs":[{ |
---|
Configuring VLANs
Optionally, if you want to configure VLANs on the ens160 interface, you can use the commands described in the following example:
{ |
---|
Note
Only ens160 is enabled at initial start up. You must use the metadata parameter network-config to add additional interface configuration, as described in the previous steps.
Setting Up Routing Configuration
You can define routing configuration, as follows:
{ |
---|
Setting Up a Default Gateway
To setup a default gateway, define the following commands:
{ |
---|
Defining MTU and Path MTU Discovery
Use the following command to define the MTU you want to use and enable path MTU discovery for IPv4 based on your network configuration:
{ |
---|
Use the following command to define the MTU you want to use for IPv6 based on your network configuration:
{ |
---|