Giter VIP home page Giter VIP logo

codeready-containers-hacks's Introduction

Red Hat CodeReady Containers Collection


Use Ansible to deploy Red Hat CodeReady Containers with HACKS

CodeReady Containers brings a minimal, preconfigured OpenShift 4.1 or newer cluster to your local laptop or desktop computer for development and testing purposes. CodeReady Containers is delivered as a Red Hat Enterprise Linux virtual machine that supports native hypervisors for Linux, macOS, and Windows 10.

Requirements


Inspriation

Accessing CodeReady Containers on a Remote Server by Jason Dobies
Overview: running crc on a remote server by Trevor McKay
Deploy Bare-Metal Clusters with CRC by Brandon B. Jozsa

Features


  • CodeReady Containers Remote Server Access
  • CodeReady Containers on local host

Role Variables


Type Description Default Value
crc_version Target CRC version latest
crc_url CRC download URL https://mirror.openshift.com/pub/openshift-v4/clients/crc/
crc_file_name CRC filename crc-linux-amd64.tar.xz
use_all_in_one_haproxy Use current machine as haproxy LB true
haproxy_ip Set ha proxy ip if above is set to flase NOT TESTED ""
log_level Change log level of crc start command info
crc_ip_address Default CRC ip address 192.168.130.11
ocp4_release OCP release folder for cli latest
ocp4_version OCP cli version latest
ocp4_release_url OCP release url "https://mirror.openshift.com/pub/openshift-v4/clients/ocp/{{ ocp4_release }}/"
ocp4_client OCP cli filename "openshift-client-linux-{{ ocp4_version }}.tar.gz"
remove_oc_tool remove oc cli false
delete_crc_deployment delete CodeReady Containers deployment false
forward_server Server to manage external requests 1.1.1.1

Dependencies


Home drive should have 50 Gig or better

On RHEL 8.x

  • Register system
  • Follow system requirements from the code ready containers documentation

On Fedora

  • Follow system requirements from the code ready containers documentation
  • enable and start sshd

Download pull-secret


Download pull-secret to your Downloads folder here. Ansible will look for it in ~/Downloads/pull-secret or change the pull secret variable "{{ pull_secret_path }}"

Deployment Flags


You can use any of these flags individually to run just that part of the playbook.

  • download_crc
  • extract_crc
  • configure_oc_cli
  • setup_crc
  • start_crc_deployment
  • configure_ha_proxy

Start a full deployment for localhost

ansible-playbook localhost.yml --tags download_crc,extract_crc,configure_oc_cli,setup_crc,start_crc_deployment

Get crc url and login info

ansible-playbook localhost.yml --tags get_codeready_info

Delete deployment

ansible-playbook localhost.yml --extra-vars "delete_crc_deployment=true" 

License


GPL-3.0

Author Information


codeready-containers-hacks's People

Contributors

chadmf avatar tosin2013 avatar

Stargazers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.