Skip to content

Instantly share code, notes, and snippets.

@jlsherrill
Last active March 12, 2018 20:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jlsherrill/a0f1735bf00e4ecfa07e to your computer and use it in GitHub Desktop.
Save jlsherrill/a0f1735bf00e4ecfa07e to your computer and use it in GitHub Desktop.
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
#view queue:
qpid-config --ssl-certificate $CERT --ssl-key $KEY -b "amqps://localhost:5671" queues katello_event_queue
#bind queue to exchange:
qpid-config --ssl-certificate $CERT --ssl-key $KEY -b "amqps://localhost:5671" bind event katello_event_queue '*.*'
@tchellomello
Copy link

tchellomello commented Sep 23, 2016

Justin,
There is a typo at line 10. It should be:

qpid-config --ssl-certificate $CERT --ssl-key $KEY -b 'amqps://localhost:5671' add queue katello_event_queue --durable

This is fixed above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment