Problem: I created activation keys:
CVID=$(hammer content-view list --composite true | grep -vE ‘LABEL|—’ | awk ‘{ print $1 }’)
if [[ $(hostname -s) == “myproj-*” ]]; then
PROJ=MYPROJ
else
PROJ=OTHERPROJ
fi
for NAM in test develop prod; do
hammer activation-key create --name “${PROJ}-${NAM}” --description “Key to use with ${NAM}”
–lifecycle-environment “${NAM}” --content-view-id ${CVID} --unlimited-hosts
When I register a new host using one of the activation keys, it always puts it into the default location and not my defined location. How do I associate an activation key with a location?
Expected outcome: After registering a new host, it goes into the correct location.
Foreman and Proxy versions: 2.3.3-1
Foreman and Proxy plugin versions: Katello 3.18.2-1
Distribution and version: CentOS 7.9
Other relevant data: