Skip to content

Instantly share code, notes, and snippets.

View johnpmitsch's full-sized avatar

John Mitsch johnpmitsch

View GitHub Profile
@johnpmitsch
johnpmitsch / regenerate_subscription_queues.txt
Created November 13, 2017 16:46 — forked from jlsherrill/regenerate_subscription_queues.txt
Re-generate candlepin event queues
CERT=/etc/pki/katello/certs/katello-apache.crt
KEY=/etc/pki/katello/private/katello-apache.key
#create exchange:
qpid-config --ssl-certificate $CERT --ssl-key $KEY -b "amqps://localhost:5671" add exchange topic event --durable
#view exchange:
qpid-config --ssl-certificate $CERT --ssl-key $KEY -b "amqps://localhost:5671" exchanges
#create queue:
qpid-config --ssl-certificate $CERT --ssl-key $KEY -b 'amqps://localhost:5671' add queue katello_event_queue --durable
@johnpmitsch
johnpmitsch / gist:8dad04c22fd93eacbf44baea950996ad
Last active October 24, 2022 06:47
regenerate certs in foreman
rm -rfv /etc/foreman-proxy/*ssl*
rm -rfv /etc/foreman/old-certs
rm -rfv /etc/foreman/*.pem
rm -rfv /var/lib/puppet/ssl
rm -rfv /root/ssl-build
foreman-installer -v --certs-regenerate-ca=true --certs-regenerate=true \
--foreman-foreman-url "https://bread.usersys.redhat.com" \
--foreman-servername sat6.example.com \
--certs-ca-common-name sat6.example.com \
@johnpmitsch
johnpmitsch / 00-readme.md
Created December 8, 2015 20:58 — forked from omaciel/00-readme.md
Create Host Collection and Activation Keys, associating them as well as adding all available subscriptions to the Activation Key for a scenario where you have enabled and synchronized RHEL 5/6/7 i386, x86_64, ppc64 and s390x repositories.

Instructions

Please update 01-credentials.sh to include your credentials, and run these scripts in the order shown below:

  • 01-credentials.sh
  • 02-os-versions.sh
  • 03-initial-configuration.sh
  • 04-enable-content.sh
  • 05-content-views.sh