GithubHelp home page GithubHelp logo

kryndex / repose-infrastructure-ng Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rackerlabs/repose-infrastructure-ng

0.0 2.0 0.0 3.27 MB

Next Generation of Repose Puppet Manifests

Ruby 2.08% Shell 37.62% Pascal 0.04% Puppet 41.87% Python 3.99% HTML 12.73% Perl 1.66%

repose-infrastructure-ng's Introduction

Repose Puppet Setup

Only manual steps!

For additional details, see Good things to know - Replace Jenkins Slave.

  1. Create a Debian 8 (Jessie) cloud box.
    1. Set up it's local hostname.
  2. Update any DNS records, both IPV4 and IPV6, to point to the new box.
  3. Add it's hostname to the site.pp if necessary.
  4. Download and execute the client bootstrap.sh from this repository
    1. wget https://raw.githubusercontent.com/rackerlabs/repose-infrastructure-ng/master/bootstrap-puppet-client.sh && chmod u+x bootstrap-puppet-client.sh && ./bootstrap-puppet-client.sh
  5. The last step of the bootstrap.sh fires up the puppet agent in test mode.
    1. There may be some additional steps indicated when the bootstrap.sh completes; read them all and do in order.
    2. The client's host certificate will need to be signed on the master: puppet cert sign <FQHN>
    3. Then the puppet agent will need to be executed on the client again: puppet agent --test
    4. Sometimes the package management system needs updated and the puppet agent ran yet again. apt-get update && puppet agent --test
  6. If the new box is a Jenkins slave, then update the Jenkins' node list.
  7. Add it to Nagios
    1. Add a host config to the nagios module
    2. Add it to any relevant host groups
    3. Add any specific host checks

Manual steps for master

  1. Set hostname.
  2. Set up the eyaml backend key/cert.
  3. Run the master bootstrap script.

TODO: UPDATE THIS

Contains puppet manifests and related material for the repose teams project infrastructure

Run locally with

sudo puppet apply --modulepath ./modules manifests/jenkins-slave.pp

Puppet Forge Modules in use

Please refer to the Puppetfile for a full list of the modules currently in use.

Useful references

Setting up eyaml

https://github.com/TomPoulton/hiera-eyaml#configuration-file-for-eyaml

Rebuilding Master

If you need to rebuild a new master you can run these commands on the clients to hook them up to the new master.

puppet resource service puppet ensure=stopped
# puppet config print ssldir                  this will output the directory for use in the next command, for now all our boxes have it in that directory though
rm -rf /var/lib/puppet/ssl
puppet resource service puppet ensure=running
puppet agent --test

repose-infrastructure-ng's People

Contributors

dkowis avatar dmnjohns avatar joelrizner avatar mknocke avatar tylerroyal avatar wdschei avatar

Watchers

 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.