2015-Middleware-Keynote / demo-ansible

Apache License 2.0
18 stars 24 forks source link

Enable use of PEM/SSL certificates with the yum repos #85

Closed thoraxe closed 8 years ago

thoraxe commented 8 years ago

This PR adds the ability for specifying PEM certificate files for use with yum repositories so that subscription management can be skipped. It adds several options to run.py:

  1. --use-certificate-repos: sets the boolean
  2. --certificate-file: specifies a path to a local file that will be used remotely as client-cert.pem
  3. --certificate-key: specifies a path to a local file that will be used remotely as client-key.pem

A change was introduced by @juhoffma to fix ControlPath for El Capitan/MacOS which unfortunately breaks things on Linux, so this reverts that change back. I don't know how this is going to be resolved.

This was tested using both the new certificate method as well as using the existing RHSM method successfully.