Git Product home page Git Product logo

docker-puppetserver's Introduction

Puppetserver on Openshift

Goal

Having a Puppetserver running as a container on Openshift. Using autoscaling the Puppetserver can dynamically adapt to differences in load.

Todo: create a build-pipeline with promotion towards different environments.

Usage

  • Copy ocp/config/templates/secrets.template to ocp/config/secrets.yaml and configure your certificates & deploy key in the base64 format. The certificates are used to configure the Puppetserver CA. The public key of the deploy key should be added to the git-repo containing all the puppet code.

  • Configure foreman configuration: opc/config/foreman.yaml

  • Configure PIM configuration: ocp/config/thycotic.conf

  • Deploy the secrets

oc create -f ocp/config/secrets.yaml
  • Setup environments ** PROJECT = The OpenShift project to create the puppetserver deployment ** ZONE = The DNS ZONE that will host your puppetserver. Used to create Routes (.openshift-puppetmaster.domain.tld) ** DOCKERREPO = The GitHub repository hosting this code (https://github.com//docker-puppetserver.git) ** MONOREPO = The GitHub repository hosting your puppet code ([email protected]:/puppet-monorepo.git) ** METRICSSERVER = The Grapite server to send puppetserver metrics to
cd ocp
./setup_environment.sh $PROJECT $ZONE $DOCKERREPO $MONOREPO $METRICSSERVER
  • Setup Jenkins
cd ocp
./jenkins.sh $PROJECT

Contents

The following modules will be configured within your Openshift project:

  • Imagestreams for:

    • The RHEL7 base image
    • The puppetserver base image
    • All subsequent puppetserver images containing puppet code
  • Buildconfig for:

    • Building the puppetserver image
    • S2I build from the repository containing your puppet code
  • DeploymentConfig for:

    • Deploying the puppet server image
    • Healthchecks to see if the puppetserver is up & running
  • Service for:

    • Portforwarding the public port 443 towards 8140 in the container
  • Route for:

    • Exposing the service to the internet with a custom hostname

Tips

Deployment pipelines can be created in openshift itself, see this video for more information on how to do this: Using OpenShift Pipelines with Webhook Triggers

docker-puppetserver's People

Contributors

andrei-asan avatar bartwo avatar cegeka-jenkins avatar fdammeke avatar kimausloos avatar nickindeherberge avatar paulherbosch avatar robbevaes2 avatar stanbog avatar t-v avatar thomasmeeus avatar timvandevoort avatar

Stargazers

 avatar

Watchers

 avatar  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.