Code Monkey home page Code Monkey logo

hashicorpathome's Introduction

Hashicorp at Home

This is the code to accompany the "Hashicorp At Home" series on our website.

How to use this repository

  1. Clone the repository onto the machine you'll use to deploy the software to the server
  2. Install Ansible
  3. Use Ansible Galaxy to install the following roles:
  1. Update inventory/hosts and set the target IP Address to the ip address you are using for your server
  2. Update plays/home_server.yml and set the following4
  • All variables ending in _domain must be set to the same value

This is the domain that you will use to look up services on your network. It defaults to consul

  • consul_recursors - The DNS servers you want to use for external lookups, we use the Google ones by default.
  • nomad_vault_address - Whilst we set this up, we won't have DNS running, so we need to hard-code the IP Address for the Vault server here.
  1. Overwrite ansible/roles/kibatic.traefik/templates/traefik.toml based on the details in part 2 of the series
  2. Follow the instructions on the blog post to create a Vault token for Nomad
  3. Create two encrypted files using Ansible vault in the following locations (replacing the dummy values with the actual text):
  • inventory/group_vars/all containing datadog_api_key: "My DataDog API Key"
  • inventory/group_vars/docker_instances containing nomad_vault_token: "My Vault Nomad Token"
  1. Execute Ansible against the playbook in plays

Copyright and Licensing

All code in this repository remains the copyright of Mockingbird Consulting Ltd, however it is released to the community under the MIT License to allow adaptation and reuse.

If you find the code useful, please credit us in the project that you reuse it for.

Hashicorp, Vault, Consul, and Nomad are trademarks of Hashicorp Inc. and are used here to reference their product line only. This project has not been endorsed by Hashicorp, nor is there any implied support, endorsement, or liability on Hashicorp's part to anyone who uses this software.

hashicorpathome's People

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.