Back to Articles

The following is an example of a completed host_inventory file.

# ServAssure NXT Host Inventory

# All ServAssure NXT Hosts below
# Listed by ROLE

# MULTI-INTERFACE SUPPORT
# Every ServAssure NXT host specification can be supplied with an alternative interface to use to bind to instead of the default.
# To specify the alternate interface per host, use the "use_eth_interface" host variable.
# To specify the alternate interface's hostname if it is set up in DNS, use the "use_custom_fqdn" host variable.
# 
# Example: [nxt_engine]
#<hostname> ansible_host=<private_ip> use_eth_interface=ens224 use_custom_fqdn=nxtcache1alternate.lab.domain.net
# 
# These need to be configured per host in the inventory, or if all hosts use the same interface name, it can be placed in site-vars. 
# The syntax for defining this information is the same across all groups (appserver,solr,cassandra,nxt_engine,etc.)

# FrontEnd Hosts
#
[appserver]
<hostname> alias=app1

# BackEnd Core Hosts
#
# Cassandra Nodes
# Place "seed" nodes in "[cassandra_seeds] group
#
[cassandra_seeds]
<hostname> alias=cassandra1 rack=RAC1
<hostname> alias=cassandra2 rack=RAC2

[cassandra_others]
<hostname> alias=cassandra3 rack=RAC3


[solr]
<hostname> alias=solr1 myid=1
<hostname> alias=solr2 myid=2
<hostname> alias=solr3 myid=3

[nxt_engine]
<hostname> alias=engine1
<hostname> alias=engine2
<hostname> alias=engine3

[haproxy]
<hostname> alias=proxy1

[metrics]
<hostname> alias=metrics1

[metricsv2]
<hostname> ansible_host=<private ip>

[nxt_sim]
<hostname> alias=sim1

[dashboard]
<hostname> alias=dashboard1
<hostname> alias=dashboard2

# SERVASSURE NXT ROLE GROUP VARIABLES 
#
[all:vars]
# envars - Full path and filename of the "ServAssure NXT" site specific variables file
# found in the NXT Install Package
envars=<varsPathFileName>
#
# ctvip - Cache Tier VIP or Proxy/LoadBalancer IP. Mainly used by Application Servers and Ingress Data.
# stvip - Search Tier VIP or Proxy/LoadBalancer IP. Mainly used by Cache Tier Nodes for Search.
# atvip - Application Tier VIP or Proxy/LoadBalancer IP. Mainly used by Application Servers.
# ntvip - Node API Tier VIP or Proxy/LoadBalancer IP. Used by Node API.
# Notes: "ctvip", "stvip" and "atvip" may be the same depending on environment.  
#         Could be "haproxy" host defined in inventory if used.
#         If you are implementing the HA mode for HAProxy, then the Virtual IP set in the "HAPROXY_HA_VIP" 
#         variable in site_vars is what you would use here.
ctvip=<cacheTierVirtualIP>
stvip=<searchTierVirtualIP>
atvip=<appTierVirtualIP>

###########################################
# Default ROLES for all NXT Hosts
# (( DO NOT EDIT BELOW THIS LINE ))
#
[cassandra:children]
cassandra_seeds
cassandra_others
#