Commit Graph

10 Commits

Author SHA1 Message Date
Ghanshyam Mann 340d059ee5 Retire Tripleo: remove repo content
TripleO project is retiring
- https://review.opendev.org/c/openstack/governance/+/905145

this commit remove the content of this project repo

Change-Id: I6b367027aff77f4bf9810903e62ccb59bca0ff38
2024-02-24 11:41:15 -08:00
Kevin Carter da50e0e267
Fix Ansible Lint
Ansible lint is currently broken for this role. This change updates to
Ansible Core for the dependencies and then adjusts the role files to
ensure that the role can pass lint checks.

Change-Id: Id19209ca0a939bd669b25f9aad7dd5b011e34922
Signed-off-by: Kevin Carter <kecarter@redhat.com>
2022-04-29 14:12:31 -05:00
Jose Luis Franco Arza 93dbc5167d Rename rhsm_repository module to avoid conflict.
The rhsm_repository is now part of the Ansible installation,
however, the version used inside the redhat_subscription role
contains changes the defaul module from Ansible doesn't contain.

As a consequence, if in the playbook execution, some task makes
use of the rhsm_repository module Ansible will locate it inside
its default module libraries and when we get to the point of invoking
the module from ansible-role-redhat-subscription/tasks/portal.yml
it will find out that the module is already loaded and make use
of the Ansible one, instead of the module stored under library/
rhsm_repository.py. This is a temporary solution until we'll update
into Ansible 2.8 for queens and rocky, then both modules will be
in sync and the one from ansible-role-redhat-subscription/library
could be removed.

Change-Id: Id53ebefff1f992781171a1e760fbf5306020cb56
Closes-Bug: #1833519
2019-06-20 12:21:43 +02:00
Sam Doran b6cc4a511d Add resiliency to subscription management role
* When registration, fails automatically run recovery tasks to ensure a
  successful registration
* Add rhsm_repository module to role to allow using the role with Anisble < 2.5
* Add feature to rhsm_repository module to purge repos not listed in the task
* Change how the role handles multiple repositories for much faster
  execution time
* Update README with information on new repo behavior and purge option

Change-Id: I8a0b20bf72fb56426b51b94e9936f6174d43c248
2018-11-06 10:51:30 -05:00
Sam Doran f2385c2aa2 Configure Satellite using Ansible instead of a script
- 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
2018-10-22 17:27:21 -04:00
Sam Doran 00defe7fc2 Update RHSM role to allow Satellite or Portal registration
- Fix line widths in rhsm_repository.py
- Unify variable names: they all have rhsm_ prefix now

Change-Id: I64e8d7ee201ec9b21ef7c513cf2231994b31c6a6
2018-02-07 16:53:01 -05:00
Sam Doran d4e81a1af9 Lay groundwork for selection input methods
Change-Id: I9adf771ce5fe72efeb3225b6c2329ada479ca4d3
2017-12-28 09:39:58 -08:00
Emilien Macchi 93aa321a66 Initial commit
* .gitignore
* .gitreview
* Re-licensing to Apache 2.0
* ansible-requirements
* python dependencies (tox, setup, requirements)
* Fix some pep8 errors
* CI scripts

Depends-On: Ief06ef2fde45851df0c9cea4764dfe38c1777e46
Change-Id: Ibe4042308606e7ca2334f214d5b6bca006633adb
2017-12-13 20:53:08 +00:00
Stanley Karunditu 4f4fd32e0c
Update redhat_repos.py
add idempotence
2017-11-16 22:06:19 -05:00
Sam Doran d1417155c6 Use redhat_repos module for mananging repos.
The module needs some work in order to operate efficiently. Currently
it always runs and reports a change. Additionally, calling it using a loop
results in multiple runs of the subscription-manager tool, which is quite
slow.
2016-11-11 13:38:41 -05:00