All Projects → candlepin → subscription-manager

candlepin / subscription-manager

Licence: GPL-2.0 license
A GUI and CLI client for Candlepin

Programming Languages

python
139335 projects - #7 most used programming language
c
50402 projects - #5 most used programming language
shell
77523 projects
Euphoria
14 projects
Makefile
30231 projects
CMake
9771 projects

Labels

Projects that are alternatives of or similar to subscription-manager

Oracle Java
Ansible role to install Oracle Java 8/11 on Debian and RedHat based distributions.
Stars: ✭ 144 (+171.7%)
Mutual labels:  redhat
clowder
Operator for operating cloud.redhat.com
Stars: ✭ 21 (-60.38%)
Mutual labels:  redhat
ansible-redhat satellite6
Ansible playbooks for Red Hat Satellite 6.
Stars: ✭ 19 (-64.15%)
Mutual labels:  redhat
Terrible
An Ansible playbook that apply the principle of the Infrastructure as Code on a QEMU/KVM environment.
Stars: ✭ 161 (+203.77%)
Mutual labels:  redhat
Stacki
Linux Cluster Builder - Bare Metal Red Hat & SUSE
Stars: ✭ 223 (+320.75%)
Mutual labels:  redhat
ansible-role-backup
Ansible Role - Backup for simple servers
Stars: ✭ 122 (+130.19%)
Mutual labels:  redhat
Mattermost Ansible
Ansible playbook to provide a turnkey solution for the Team Edition of Mattermost
Stars: ✭ 126 (+137.74%)
Mutual labels:  redhat
docker env
Personal working log and md documents. Currently forcus on openshift4.
Stars: ✭ 95 (+79.25%)
Mutual labels:  redhat
docker-java
Intro Level Lab for Docker Development for Java Developers
Stars: ✭ 34 (-35.85%)
Mutual labels:  redhat
performance
Collection of documents related tunings for performance of Java low-latency trading systems: from hardware up to application level
Stars: ✭ 65 (+22.64%)
Mutual labels:  redhat
Spring Boot Keycloak Tutorial
Easily Secure your Spring Boot Apps with Keycloak
Stars: ✭ 165 (+211.32%)
Mutual labels:  redhat
Helloworld Msa
Main repository with documentation and support files
Stars: ✭ 218 (+311.32%)
Mutual labels:  redhat
commons.openshift.org
Repository for OpenShift Commons Community Site
Stars: ✭ 31 (-41.51%)
Mutual labels:  redhat
Ansible Role Repo Epel
Ansible Role - EPEL Repository for RHEL/CentOS
Stars: ✭ 149 (+181.13%)
Mutual labels:  redhat
s2i-build
Github Action to build an OCI-compatible container image from source code.
Stars: ✭ 26 (-50.94%)
Mutual labels:  redhat
Mbp Fedora
Stars: ✭ 129 (+143.4%)
Mutual labels:  redhat
php-freeipa
FreeIPA SDK for PHP
Stars: ✭ 20 (-62.26%)
Mutual labels:  redhat
ansible-traininglab
Dockerized Ansible Training Lab
Stars: ✭ 16 (-69.81%)
Mutual labels:  redhat
kubernetes-lab
Kubernetes - Basics to Advanced
Stars: ✭ 44 (-16.98%)
Mutual labels:  redhat
amqv7-workshop
No description or website provided.
Stars: ✭ 22 (-58.49%)
Mutual labels:  redhat

subscription-manager

The Subscription Manager package provides programs and libraries to allow users to manage subscriptions and yum repositories from the Candlepin.

Local Installation

In order to build, develop, and test locally, please follow instructions at candlepinproject.org.

For instructions on building the debian-packages of this project, see instructions in contrib/debian/README.source.

Due to unintuitive behavior with sys.path (see https://github.com/asottile/scratch/wiki/PythonPathSadness), python src/subscription_manager/scripts/subscription_manager.py does not work as expected. One can run the script like this instead:

PYTHONPATH=./src python -m subscription_manager.scripts.subscription_manager

Similar for other bin scripts:

PYTHONPATH=./src python -m subscription_manager.scripts.rct
# ... etc.

(You can also just export PYTHONPATH instead of setting it in each command).

To ignore bulk commits that only change the format of the code, not the code itself (e.g. blacking whole codebase), add .git-blame-ignore-revs to your git configuration:

git config blame.ignoreRevsFile .git-blame-ignore-revs

Pipenv

There is experimental support for installation of subscription-manager using Pipenv. We tested installing subscription-manager using Pipenv only on following operating systems:

  • Fedora 30
  • RHEL/CentOS 7
  • RHEL/CentOS 8

We tested pipenv with Python 2 and Python 3. It is necessary to install following packages to your system, because binary module have to be compiled in virtual environment:

Python 2

dnf install -y pipenv gcc make python2-devel \
    openssl-devel libnl3-devel

Python 3

dnf install -y pipenv gcc make python3-devel \
    openssl-devel libnl3-devel

You can create virtual environment using following steps:

  1. Create virtual environment using Python 2 or Python 3 and it is necessary to use --site-packages argument, because virtual environment has to use rpm Python package installed in your system. It is not possible to install rpm Python package to virtual environment using pip/pipenv.

    Python 2:

    pipenv --site-packages --two

    Python 3:

    pipenv --site-packages --three
  2. Install required Python packages defined in Pipfile into virtual environment:

    pipevn install
  3. Start virtual environment:

    pipenv shell
  4. Build binary modules in virtual environment:

    python ./setup.py build
  5. Install subscription-manager into virtual environment:

    python ./setup.py install
  6. It should be possible to run subscription-manager in virtual environment

    sudo subscription-manager version

Development of the Subscription-Manager Deployment Ansible role

The Ansible role that is used for deploying subscription-manager can be found at https://github.com/candlepin/ansible-role-subman-devel. In order to test changes for this Ansible role you will need to check it out locally. This will pull the latest commit from this path and use it for deployment.

Testing

We run tests using pytest. See TESTING.md for more details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].