Code Monkey home page Code Monkey logo

content-host-d's Introduction

content-host-d

A Docker-ized Centos Content Host for Red Hat Satellite 6

Current automated tags are: centos5, centos6, centos7, sles11, sles12, opensuse

Manual tags are: rhel6, rhel72, rhel7

Installation

docker pull jacobcallahan/content-host-d:<tag>

or specify a directory and build the image manually

docker build -t ch-d:sles11 SLES11/.

Usage

docker run <arguments> jacobcallahan/content-host-d:<tag>

Accepted Arguments

-e (e.g. -e "SATHOST=my.hostname.domain.com")

  • AK - Name of the Activation Key to use.
  • AUTH - Satellite username and password. (AUTH=username/password)
  • ENV - Name of the Environment to use.
  • KILL - If this is not passed, then the container will be kept alive and goferd running.
  • ORG - Name of the Organization to use.
  • SATHOST(Required) - Hostname of the Satellite (not url).
  • LOCAL - IP Address of the Satellite Server when we are not able to retrieve the correct info via DNS.

Note

If you want to be able to use katello-agent, you must mount your /dev/log to the container at runtime. (i.e. -v /dev/log:/dev/log)

Examples

docker run -e "SATHOST=my.host.domain.com" jacobcallahan/content-host-d:5

docker run -e "SATHOST=my.host.domain.com" -e "LOCAL=192.168.0.10" jacobcallahan/content-host-d:5

docker run -e "SATHOST=my.host.domain.com" -e "ENV=Dev" -e "AUTH=username/password" jacobcallahan/content-host-d:6

docker run -d -e "SATHOST=my.host.domain.com" -e "AK=sat62" -e "KILL=1" jacobcallahan/content-host-d:7

docker run -h DockerCH -v /dev/log:/dev/log -d -e "SATHOST=my.host.domain.com" -e "AK=sat62" jacobcallahan/content-host-d:5

for i in {1..10}; do docker run -d -e "SATHOST=my.host.domain.com" -e "AK=sat62" -e "KILL=1" jacobcallahan/content-host-d:6; done;

for i in {1..10}; do docker run -d -h Docker$i -e "SATHOST=my.host.domain.com" -e "AK=sat62" jacobcallahan/content-host-d:7; done;

Flood Script

This repo also contains a flood.py helper script to orchestrate container creation and deletion. You will need python and docker-py (via pip) installed locally.

See python flood.py -h for usage.

There are two primary modes:

  • Traditional - Create normal content host containers.
  • Virt - Create fake hypervisors on the Satellite, then create guest container hosts.

Ansible-playbook run

You can also use the available playbooks in playbooks folder of this project to setup a container host or run the flood.py script.

Examples

container host setup

ansible-playbook --inventory=containerhost.example.com, --extra-vars 'WORKSPACE=/home/testlab/workspace/content-host-d CONTAINER_OS=RHEL7' chd-setup.yaml

Run flood.py

ansible-playbook --inventory=containerhost.example.com, --extra-vars 'SATELLITE_HOST=satellite.example.com CONTENT_HOST_PREFIX=testhost ACTIVATION_KEY=rhel7ak NUMBER_OF_HOSTS=3 EXIT_CRITERIA=registration CONTAINER_TAG=rhel7' chd-run.yaml

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.