Following [1], the right way to disable the feature is to set the env
var value to an empty string.
Until now, whatever the value was (even False), it was enabled, because
the var was in the env.
[1] https://github.com/candlepin/subscription-manager/pull/3097
Change-Id: I54e1452dc4bb6e2e25fa9567335b62b730000e83
subscription-manager will fail if run from within a container. Since
some nodes are bindmounting /run, a .containerenv file is exposed
inside /run on the hosts and this breaks subscription-manager on
overcloud nodes.
We can bypass this validation from subscription-manager by enabling the
SMDEV_CONTAINER_OFF environment boolean as described here [1].
We need to give the hability to operators to bypass this check as well
on all subscription-manager calls.
Related: https://bugzilla.redhat.com/show_bug.cgi?id=2058540
[1] https://github.com/candlepin/subscription-manager/pull/2652/files
Change-Id: If564089fb1cb77366fa6d6f8e4086691a4dfcf37
For a node to communicate correctly with Katello, it needs the right SSL
certificates in place, and facts configured in RHSM.
It is provided by katello-ca-consumer-latest.noarch.rpm with
katello-rhsm-consumer script.
This patch installs the rpm and runs the script.
Change-Id: I180eb65a01832da76d5c433d9b13f8e410e24d04
Closes-Bug: #1805249
- remove rhsm_repository module since it is included with Ansible 2.5
- improve test environment
- convert katello-rhsm-consumer script to Ansible tasks
- gather service and package facts
- use ansible_facts dictionary for facts rather than ansible_[fact]
- set rhsm_server_prefix, rhsm_repo_ca_cert, and rhsm_full_refresh_on_yum
based on portal or satellite registration
Change-Id: Ifdbcc3b23d5f6ea68dcf904e40a7f44c4b61622e