agnosticd icon indicating copy to clipboard operation
agnosticd copied to clipboard

Add RHEL lock version

Open marcosmamorim opened this issue 4 years ago • 3 comments

SUMMARY

Add task to lock RHEL in a specific version when using satellite

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

role/set-repositories

marcosmamorim avatar Oct 07 '20 22:10 marcosmamorim

@marcosmamorim Can you give more information on what the problem is and why this is needed? This is a role used by many configs and needs extra care and understanding.

stencell avatar Oct 08 '20 02:10 stencell

This is a common role, can you please explain why it is needed, what feature it gives, what usecase it serves, etc. Can we have documentation along in the readme of the role ? Thanks!

fridim avatar Oct 08 '20 08:10 fridim

Hey guys, I think a cleaner solution to this will be the example below. This should not affect any current deployments and is just an additional option to lock a specific server to a release version within subscription-manager.

- name: Register with activation-key
  when: set_repositories_satellite_activationkey != ''
  redhat_subscription:
    state: present
    consumer_name: "{{ set_repositories_subscription_hostname }}"
    server_hostname: "{{ set_repositories_satellite_hostname }}"
    activationkey: "{{ set_repositories_satellite_activationkey }}"
    org_id: "{{ set_repositories_satellite_org | default(satellite_org) }}"
    release: "{{ set_repositories_release | default(omit) }}"

wilson-walrus avatar Oct 08 '20 13:10 wilson-walrus