Giter Club home page Giter Club logo

hoist's Introduction

Hoist

BuildStatus_

Installer for running CI as a service.

Running

1. Add dns entries for nodepool and zuul (possibly using /etc/hosts) and use the inventory file at inventory/ci. Services may be deployed onto one node or across mulitple nodes.

2. Setup a secrets yaml (see secrets.yml.example). TODO: Store these somewhere sane.

  1. Run playbook:

    $ ansible-playbook -i hosts -e @secrets.yml install-ci.yml

Bastion

To create a new bastion in a cloud for automating things follow these steps:

1. Setup your local (to your development enviroment) clouds.yml with access to the new cloud.

  1. Add new bastion to provision.yml, adding a tag for the new cloud.

    Bastion nodes should be Ubuntu Xenial 16.04

  2. Run this to just provision the new one:

    $ ansible-playbook -i localhost, provision.yml -t new_cloud_tag
  3. SSH to the new instance and put /etc/secrets.yml in place.
  4. Set ownership on secrets files:

    $ sudo chown root.root /etc/secrets.yml
  5. Add the new bastion host to inventory/bastions
  6. Run bastion.yml playbook:

    $ ansible-playbook -i inventory/bastions bastion.yml -e @secrets.yml

After that the bastion should self-manage, and logs should be visible at http://<<bastion>>/cron-logs/

Updating Secrets

As we add or adjust secrets, we'll need to update the secrets file that lives on bastion hosts. As always, if introducing a new secret, update our example secrets file in this repo first. Then update the running bastion.

Testing with Vagrant

See our documentation on testing with vagrant.

Contributing

See our documentation on contributing.

hoist's People

Contributors

aedocw avatar anne-bonny avatar bonnyci[bot] avatar edunham avatar gandelman-a avatar greghaynes avatar jamielennox avatar jesusaurus avatar loafyloaf avatar missaugustina avatar mlangbehn avatar nibalizer avatar omgjlk avatar pschwartz avatar rattboi avatar spamaps 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.