]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cm-ansible.git/commit
common: Change method of detecting beta distro 285/head
authorDavid Galloway <dgallowa@redhat.com>
Tue, 18 Oct 2016 19:03:02 +0000 (15:03 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Tue, 18 Oct 2016 21:15:33 +0000 (17:15 -0400)
commit089923e7490f138e26b32eb0f0e67377631a2eb3
tree0a20dbfe88967b5cb5712643207aa314a70cd0e8
parentd646886c9c0984a9fefec64b40e055ad7a3a1245
common: Change method of detecting beta distro

It was recently discovered that Release Candidate ISOs of RHEL don't output "Beta" or
"Alpha" in `lsb_release` output.  Therefore, RHEL RC Distros were
registering with CDN and not putting beta_repos in place.

This new method registers every RHEL system with CDN, checks if there are
any available matching repos based on ansible_distribution_version, and
either:
  - Unregisters from CDN and runs beta_distros.yml if there are no CDN repos
  - Continues with setting up desired rhsm_repos

I also added some additional working to task descriptions to hopefully
claer up what's going on in this playbook since there are a lot of when
and if statements.

Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/common/tasks/rhel-entitlements.yml
roles/common/tasks/yum_systems.yml