Skip to content

sonofspike/cluster_mgnt_roles

Repository files navigation

ATTENTION this repository is being deprecated

##############################################################################
DEVELOPMENT FOR THIS REPO WILL BE ENDED, FUTHER DEVELOPMENT WILL CONTINUE IN 
THE CRUCIBLE REPO

##############################################################################

OpenShift 4 Management Cluster Seed Playbook

Red Hat does not provide commercial support for the content of this repo

##############################################################################
DISCLAIMER: THE CONTENT OF THIS REPO IS PROVIDED "AS-IS"

THE CONTENT IS PROVIDED AS REFERENCE WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
##############################################################################

This playbook is responsible for automating the creation of an OpenShift Container Platform (4.6) cluster using the Developer Preview version of the OpenShift Assisted Installer. Virtual and bare metal machines have been tested in a regular deployment (where systems can reach registry.redhat.io and redhat.com directly without a proxy), as well as a restricted network installation.

The typical installation and utilization of this playbook is to launch it from the system architect's laptop, outside of the environment that is desired to be provisioned. The pre-requisite services required are typically hosted on a "bastion" or infrastructure system that hosts system services required by this playbook. It is up to the system architect to provide these services at this time.

Pre-requisites before you get started

Services

  1. On premise version of the Assisted Installer, deployed and available.
  2. An available HTTP server, such as Nginx or Apache, deployed and available
  3. An available container registry if a restricted network installation is desired, to be deployed and available with OpenShift content mirrored to it

The Usual OpenShift Infrastructure Requirements

  1. NTP server, use chrony
  2. DHCP (dnsmasq) for giving out addresses to nodes that will become part of the cluster
    • Future updates to this playbook will support static IP address assignment
  3. API endpoint (API Virtual IP)
  4. Wildcard domain *.apps.<clusterName>.<baseDomain> (Ingress VIP)

Files to have available for the playbook

You can check the file prerequisites have been fulfilled by running ansible-playbook -i localhost, prerequisites.yml.

  1. Your OpenShift pull secret https://cloud.redhat.com/openshift/install
    • Store this as pull_secret.txt in the playbook base directory
  2. Your SSH Public Key that will be injected into the nodes ~/.ssh/authorized_keys directory
    • Store this as ssh_public_key.txt in the playbook base directory
  3. The trusted SSL signed self-certificate to be used for the registry, which must be injected into the installation as a trusted repository
    • Store this as mirror_certificate.txt in the playbook base directory. Do not forget to pad this entire file with four spaces for every line, even the BEGIN and END CERTIFICATE lines

Running

When you're ready to execute this, do the following

  1. Modify the provided inventory file. Add appropriate values that suit your environment in the various sections
  2. Modify deploy_cluster.yml and input the Assisted Installer Host and port that matches your environment

The following command launches the playbook:

ansible-playbook -i inventory deploy_cluster.yml

About

OpenShift 4 Management Cluster Seed Playbook

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published