Giter VIP home page Giter VIP logo

ansible-role-katello-client's Introduction

Build Status Ansible Galaxy

pescobar.katello_client

register a node with Katello

this role would only disable the default yum repos in CentOS . It's not tested with RedHat

Role Variables

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 is deprecated so you probably don't want this

# set this var to true in case you want to use upstream repos for katello-client
# you usually won't do this because your katello instance also provides this 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

# list of upstream repostories we will disable in the katello client
katello_client_repos_to_update:
  - name: base
    file: CentOS-Base
    description: default base yum repo
    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: default updates yum repo
    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: default extras yum repo
    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

Example Playbook

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

License

GPLv3

Molecule Tests

The repo includes some molecule tests to check the complete process or registering a node. Once you define the required variables you can try molecule test to verify it's working. Travis-CI in github only does a syntax check.

Author Information

Pablo Escobar Lopez

ansible-role-katello-client's People

Contributors

jaescartin1 avatar pescobar avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

jaescartin1

ansible-role-katello-client's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.