ansible/roles/ansible-ansible-openshift-ansible
2021-03-25 20:14:10 +00:00
..
defaults OSBS: use quay.io for aarch64 OCP images. 2020-04-24 21:34:19 +02:00
tasks cleanup: remove phx2 from ansible-ansible-openshift-ansible 2021-03-25 20:14:10 +00:00
templates cleanup: remove phx2 from ansible-ansible-openshift-ansible 2021-03-25 20:14:10 +00:00
.travis.yml add ansible-ansible-openshift-ansible and groups/osbs-cluster.yml 2016-10-24 15:57:22 +00:00
README.rst add ansible-ansible-openshift-ansible and groups/osbs-cluster.yml 2016-10-24 15:57:22 +00:00

ansible-ansible-openshift-ansible
#################################

Ansible role to run ansible on a remote "openshift control" what will run
`openshift-ansible`_ to deploy a cluster.

This is a Fedora Infrastructure specific adaptation into a role of the original
prototype located in pagure:

    https://pagure.io/ansible-ansible-openshift-ansible/tree/master

What? Why?
----------

The `openshift-ansible`_ playbooks require that various tasks be run on
``localhost`` in order to build their internal abstracted representation of the
inventory list. Running potentially arbitrary code from external sources on a
bastion host (which is what ``localhost`` would be as the ansible control
machine) is often frowned upon. The goal here is to allow for the deployment of
`openshift-ansible`_ via an intermediate host.

.. note::
    There is a requirement to setup the SSH keys such that the bastion host
    can passwordless ssh into the openshift control host and such that the
    openshift control host can passwordless ssh into each of the hosts in
    the openshift cluster. This is outside the scope of this document.


::

    +---------------+                   +-------------------+
    |               |                   |                   |
    | bastion host  +----[ansible]----->| openshift control |
    |               |                   |                   |
    +---------------+                   +---------+---------+
                                                  |
                                                  |
                                              [ansible]
                                                  |
                                                  |
                                                  V
    +--------------------------------------------------------------------------+
    |                                                                          |
    |  openshift cluster                                                       |
    |                                                                          |
    |  +-----------+               +-----------+   +-----------+               |
    |  |           |               |           |   |           |               |
    |  | openshift |  ...[masters] | openshift |   | openshift |   ...[nodes]  |
    |  |  master   |               |   node    |   |   node    |               |
    |  |           |               |           |   |           |               |
    |  +-----------+               +-----------+   +-----------+               |
    |                                                                          |
    +--------------------------------------------------------------------------+