Code Monkey home page Code Monkey logo

katello-rapidnode's Introduction

katello-rapidnode

katello_rapidnode.py is a script which automates the process of setting up one or more systems as capsules.

Setup

A Satellite 6 system must be available, and the following should be true:

  1. A Red Hat Subscription is active. In other words, an appropriate manifest file has been downloaded from access.redhat.com and uploaded to the Satellite.

  2. Repositories containing capsule packages are enabled and synced. The following are mandatory:

    • Red Hat Enterprise Linux X Server
    • Red Hat Satellite Capsule for RHEL X Server
    • Red Hat Satellite Tools for RHEL X Server

    The enabled and synced repositories should match the system the capsule is being installed on. For example, the "Red Hat Enterprise Linux 6 Server RPMs x86_64 6.6" repository should be enabled if a capsule is being installed on a RHEL 6.6 x86_64 system.

  3. A content view exists and has been published. It should provide the repositories from the previous step.

  4. An activation key exists. It should provide the content view from the previous step.

Note: Please choose between entering a content view or an activation key. If both content view and activation key are entered in katello_rapidnode.ini, the script first attempts to register with content view and subsequently tries to register again with activation key.

katello_rapidnode.py can be run on any machine where:

  • Python 2.7 or 3.x is installed. The Python development packages should also be installed, or else the extra modules listed in requirements.txt may not compile correctly. (On RPM-based systems, try yum install python-devel.)
  • The modules listed in requirements.txt are installed. These modules may be installed via any of the usual methods: your package manager, manually, or with a PyPi helper such as easy_install or pip. (On many systems, pip install -r requirements.txt will work.)
  • The katello_rapidnode.ini file is present and populated. The katello_rapidnode.sample.ini file serves as a template.
  • (optional) The myrepofile.repo file is present and populated. The myrepofile.sample.repo file serves as a template.

Usage

Execute the katello_rapidnode.py script. The script will configure the [servers] listed in katello_rapidnode.ini via SSH.

To Contribute

Submitting a pull request on GitHub is an easy way to contribute. Please check your code with flake8 and pylint before submitting any contributions:

flake8 .
pylint *.py
./test.py

These tools are listed in requirements-optional.txt, which makes it easy to install them:

pip install -r requirements-optional.txt

katello-rapidnode's People

Contributors

cswiii avatar elyezer avatar ichimonji10 avatar jacobcallahan avatar sthirugn avatar

Watchers

 avatar  avatar

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.