Giter Club home page Giter Club logo

consul-rpm's Introduction

RPM Spec for Consul

Originally forked from CiscoCloud/consul-rpm and modified for the ENA environment.

Building

The RPMs may be built with Docker, Vagrant, or manual.

Whatever way you choose you will need to do a few basic things first.

git clone https://github.com/myENA/consul-rpm  ## check out this code
cd consul-rpm                                  ## uhh... you should know
mkdir -p artifacts                             ## prep the artifacts location

With Docker

docker build -t ena/consul-rpm .                                ## build the image
docker run -v $PWD/artifacts:/tmp/artifacts -it ena/consul-rpm  ## run the image and build the RPMs

With Vagrant

vagrant up                         ## provision and build the RPMs

Manual

cat build.sh     ## read the script

Result

Five RPMs will be copied to the artifacts folder:

  1. consul-<version>-<release>.rpm - The binary and systemd service definition (required)
  2. consul-checks-<version>-<release>.rpm - Example check scripts (optional)
  3. consul-config-<version>-<release>.rpm - Example agent configuration (recommended)
  4. consul-services-<version>-<release>.rpm - Example service definitions (optional)
  5. consul-webui-<version>-<release>.rpm - Web UI files (optional - latest consul includes these in binary)

Running

  1. Install the RPM(s) that you need
  2. Review and edit (if needed) /etc/sysconfig/consul and associated config under /etc/consul.d/* (config package)
  3. Start the service and tail the logs: systemctl start consul.service and journalctl -f --no-pager -u consul
  4. Optionally start on reboot with: systemctl enable consul.service

Configuring

Config files are loaded in lexicographical order from the config-dir specified in /etc/sysconfig/consul (config package). You may modify and/or add to the provided configuration as needed.

Further reading

See the consul.io website.

consul-rpm's People

Contributors

aaronhurt avatar dcarbone avatar nathanejohnson 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.