theforeman.operations.foreman_repositories

Sets up the Foreman and plugin repositories.

Role Variables

Optional:

  • foreman_repositories_version: Version of Foreman to setup repositories for (default: 3.5)

  • foreman_repositories_katello_version: Version of Katello to setup repositories for, set a value for this to configure Katello repositories otherwise no Katello repositories will be configured (default: null)

Example Playbooks

Setup repositories for Foreman 3.5:

---
- hosts: all
  gather_facts: true
  vars:
    foreman_repositories_version: "3.5"
  roles:
    - foreman_repositories

Setup repositories for Katello 4.7 and Foreman 3.5:

---
- hosts: all
  gather_facts: true
  vars:
    foreman_repositories_version: "3.5"
    foreman_repositories_katello_version: "4.7"
  roles:
    - foreman_repositories