Skip to content

Instantly share code, notes, and snippets.

View ianballou's full-sized avatar

Ian Ballou ianballou

View GitHub Profile
@ianballou
ianballou / gist:342b53e1c3de6dec07a8c430b984f4a1
Created April 29, 2021 17:47
Install or update Pulp 3 from PyPI on a Katello system
sudo pip3 install scikit-build nose
sudo yum install -y gcc make cmake bzip2-devel expat-devel file-devel glib2-devel libcurl-devel libmodulemd2-devel ninja-build libxml2-devel python36-devel python36-gobject rpm-devel openssl-devel sqlite-devel xz-devel zchunk-devel zlib-devel swig3
sudo pip3 install "git+https://github.com/pulp/pulpcore.git" \
"git+https://github.com/pulp/pulp_file.git" \
"git+https://github.com/pulp/pulp_rpm.git" \
"git+https://github.com/pulp/pulp_container.git" \
"git+https://github.com/pulp/pulp-2to3-migration.git"
cd /tmp
@ianballou
ianballou / 99-local.yaml
Created May 21, 2021 14:35
forklift 99-local.yaml
---
centos8:
box: centos8
cpus: 4
memory: 10000
centos7-katello-devel:
primary: true
box: centos7
cpus: 4
@ianballou
ianballou / start_foreman_puma_server.txt
Created February 15, 2024 21:06
Start Foreman Puma server
cd /home/vagrant/foreman && source .env && BIND=0.0.0.0 bundle exec puma -w 3 -p $PORT --preload
@ianballou
ianballou / gist:c888991038fa2d941abcd9ac9ff4e86f
Created October 30, 2024 15:31
"Clone" a Foreman host for testing
uuid=$(uuidgen)
short=$(hostname -s)
domain=YOUR.DOMAIN
echo "{\"dmi.system.uuid\": \"${uuid}\"}" > /etc/rhsm/facts/uuid.facts
hostnamectl set-hostname ${short}.${uuid%%-*}.${domain}
subscription-manager clean
subscription-manager register --activationkey YOUR_AK --org YOUR_ORG