pescobar.katello_client

Status budowy Ansible Galaxy

pescobar.katello_client

rejestracja węzła w Katello

ta rola wyłącznie dezaktywuje domyślne repozytoria yum w CentOS. Nie była testowana z RedHat

Zmienne roli

katello_client_katello_server_hostname: katello.example.com
katello_client_activationkey: compute_nodes_production
katello_client_org_id: sciCORE
katello_client_rhsm_baseurl: "https://{{ katello_client_katello_server_hostname }}/pulp/repos"
katello_client_force_register: false

katello_client_extra_packages:
  - katello-host-tools
  - katello-host-tools-tracer
  - katello-host-tools-fact-plugin

katello_client_install_agent: false  # katello-agent jest przestarzały, więc prawdopodobnie nie chcesz tego

# ustaw tę zmienną na true, jeśli chcesz używać repozytoriów upstream dla katello-client
# zazwyczaj tego nie robisz, ponieważ twoja instancja katello również dostarcza to repo
katello_client_yum_repo_add: false
katello_client_yum_repo_rpm: https://yum.theforeman.org/client/2.4/el7/x86_64/foreman-client-release.rpm

katello_client_disable_yum_fastest_mirror_plugin: true

# lista upstreamowych repozytoriów, które wyłączymy w kliencie katello
katello_client_repos_to_update:
  - name: base
    file: CentOS-Base
    description: domyślne repozytorium yum
    mirrorlist: http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
    gpgcheck: true
    gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
    enabled: false
  - name: updates
    file: CentOS-Base
    description: domyślne repozytorium aktualizacji yum
    mirrorlist: http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
    gpgcheck: true
    gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
    enabled: false
  - name: extras
    file: CentOS-Base
    description: domyślne repozytorium extras yum
    mirrorlist: http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra
    gpgcheck: true
    gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
    enabled: false
  - name: epel
    file: epel
    description: epel
    metalink: https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch
    gpgcheck: 1
    gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
    enabled: false

Przykładowy plik playbook

- hosts: serwery
  roles:
     - { role: pescobar.katello_agent }

Licencja

GPLv3

Testy Molecule

Repozytorium zawiera testy molekularne do sprawdzenia całego procesu rejestracji węzła. Po zdefiniowaniu wymaganych zmiennych można spróbować molecule test, aby zweryfikować, że działa. Travis-CI w github tylko wykonuje sprawdzenie składni.

Informacje o autorze

Pablo Escobar Lopez

O projekcie

Register a katello client with a katello server

Zainstaluj
ansible-galaxy install pescobar.katello_client
Licencja
Unknown
Pobrania
60.6k
Właściciel
Systems engineer. Linux/HPC/Cloud/BioInfo