Mismatches for organization and location on production environment and domain
Description of problem:
Mismatches report shows production environment and domain on satellite 6.6 fresh install.
Version-Release number of selected component (if applicable):
Satellite 6.6 snap 9
How reproducible: always
Steps to Reproduce:
1. Install 6.6 satellite
2. Check mismatches on organization/location
Puppet environment and domain is shown under mismatches report.
Expected results: No mismatches on fresh install
Additional info: Similar issue for smart proxy is recently fixed in snap 9 https://bugzilla.redhat.com/show_bug.cgi?id=1709695.
When a host is created from puppet fact import, taxable resources such
as domain and environment are created if they do not exist, but aren't
assigned to the host's taxonomies leading the host to report mismatch.
This commit changes this behaviour so that new resources will be
assigned to the same taxonomies. If a host uses an existing resource,
it does not get assigned to the host's taxonomies to prevent
unexpected modifications of existing resources.