Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This appendix contains sample YML and JSON templates for the On-Prem Host 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 Cloud Services the Infoblox Portal, to connect to the proxy.

Optionally, you can add host tags to associate BloxOne hosts with the Cloud Services 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.

...

     { 
"name": "ens160",
"type": "physical",
"subnets": [
{
"address": "192.168x.10x.1x",
"control": "auto",
"netmask": "255.255.255.0",
"type": "static"
}
]
}

...

 { 
"type": "nameserver",
"
address": [
"10.xxx.x.x",
"10.xxx.x.x"
],
"search": [
"some.example.abc.com"
]
}

Setting Up DHCP Configuration

...

  "ipv4addrs":[{ 
"ipv4addr":"func:nextavailableip:x.x.x.x/23",
"mac":"aa:bb:ccxx:11:22:55xx"
"options" : [{
"name": "host-name",
"value": "test003some.domainexample.net" }
}],
]}

Configuring VLANs

...

 { 
"type": "vlan",
"name": "ens160.100",
"vlan_id": "100",
"vlan_link": "ens160",
"subnets": [
{
"type": "static",
"address": “10.x.x.x",
"netmask": "255.0x.0x.0x"
}
]
}


Note
titleNote

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.

...

 { 
"type": "route",
"destination": "172.28x.0x.0x/16",
"gateway": "192.168x.10x.254x",
"metric": 6
}

Setting Up a Default Gateway

...

 { 
"type": "route",
"destination": "0.0x.0x.0x/0",
"gateway": "192.168x.0x.100x"
}

Defining MTU and Path MTU Discovery

...