Use multiple host templates to assign multiple host groups
Posted: Wed Mar 29, 2017 10:45 am
Linux Distribution and version? CentOS 6
32 or 64bit? 64-bit
VMware Image or Manual Install of XI? VMware image
Are there special configurations on your system, ie; is Gnome installed? Are you using a proxy? Are you using SSL? Using SSL
Hello! I've run into an issue with host templates and I'm hoping there's something I'm missing. My apologies if this gets posted twice; I just submitted the post and gave it a minute and it didn't show up so I'm trying again.
What I'm trying to do:
I'm using multiple host templates for each host, each of which assigns one free variable and one hostgroup. For example, I have a host template called "env-prod" that assigns a custom "_ENVIRONMENT" free variable that's set to "Prod" and also assigns a hostgroup membership of "Server Environment - Prod". The free variables are needed for email notifications if you're wondering and they're working great.
The problem:
The above example works perfectly fine. The problem is when I assign the second host template. The free variable is assigned but only one hostgroup is assigned. Whichever host template is ordered at the top of the list of host templates for that host is the one that assigns the hostgroup. The other assigned hostgroups are ignored so the host only shows up in one hostgroup in the hostgroup summary and elsewhere. To clarify, the host ends up with multiple free variables but only one hostgroup.
The workaround:
I'd prefer to avoid having to add each host to multiple templates AND multiple hostgroups to work around this issue. I'm trying to make this process as easy as I can on my co-workers when they've adding new hosts. Is there any way to get this working like I want?
Thanks!
32 or 64bit? 64-bit
VMware Image or Manual Install of XI? VMware image
Are there special configurations on your system, ie; is Gnome installed? Are you using a proxy? Are you using SSL? Using SSL
Hello! I've run into an issue with host templates and I'm hoping there's something I'm missing. My apologies if this gets posted twice; I just submitted the post and gave it a minute and it didn't show up so I'm trying again.
What I'm trying to do:
I'm using multiple host templates for each host, each of which assigns one free variable and one hostgroup. For example, I have a host template called "env-prod" that assigns a custom "_ENVIRONMENT" free variable that's set to "Prod" and also assigns a hostgroup membership of "Server Environment - Prod". The free variables are needed for email notifications if you're wondering and they're working great.
The problem:
The above example works perfectly fine. The problem is when I assign the second host template. The free variable is assigned but only one hostgroup is assigned. Whichever host template is ordered at the top of the list of host templates for that host is the one that assigns the hostgroup. The other assigned hostgroups are ignored so the host only shows up in one hostgroup in the hostgroup summary and elsewhere. To clarify, the host ends up with multiple free variables but only one hostgroup.
The workaround:
I'd prefer to avoid having to add each host to multiple templates AND multiple hostgroups to work around this issue. I'm trying to make this process as easy as I can on my co-workers when they've adding new hosts. Is there any way to get this working like I want?
Thanks!