*** Bug 1391824 has been marked as a duplicate of this bug. ***
A host can be in more then one host collection.
If there is a host in host collection A and host collection B, and there was a possibility to add these matchers:
host_collection=A will get the value A
host_vollection=B will get the value B
which value should the host get? A or B?
In smart variables you can define the order of which value to use but it's by the type in the matcher e.g if these matchers are defined:
hostgroup=My_hostgroup will get value A
os=My_os will get value B
and a host has hostgoup My_hostgroup and os My_os then for the order: hostgroup,os
the host will get value A
and for the order: os,hostgroup
the host will get value B.
The order creates a priority of which value to use but if host_collection is added to the order there is still no way to prioritize when a host is connected to more then one host collection.
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in product in the forseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you.
Customers can use custom facts on the machine to drive this sort of robust logic in the puppet classes.