Git Product home page Git Product logo

ansible-role-consul's Introduction

ansible-role-consul

Build Status

RHEL/CentOS - A tool for discovering and configuring services

Requirements

None

Role Variables

Available variables are listed below, along with default values:

consul_datacenter: local
consul_data_dir: /var/lib/consul
consul_log_level: INFO
consul_node_name: localhost
consul_server: True
consul_ui: False

Additional variables available, not defined by default:

consul_bin: /usr/sbin/consul
consul_client_addr: 0.0.0.0
consul_config_file: /etc/consul/consul.json
consul_enable_syslog: True
consul_leader: localhost
consul_log_file: /var/log/consul/consul.log
consul_opts: ""
consul_pid_file: /var/run/consul/consul.pid
consul_start_join:
  - consul1.host.com
  - consul2.host.com
  - consul3.host.com
consul_syslog_facility: LOCAL0
consul_telemetry:
  disable_hostname: False
  dogstatsd_addr: 127.0.0.1:8125
  dogstatsd_tags:
    - "my_tag_name1:my_tag_value1"
    - "my_tag_name2:my_tag_value2"
  statsd_address: 127.0.0.1
  statsite_address: 127.0.0.1:2180
  statsite_prefix: consul
consul_user: consul
consul_watches:
  - handler: /usr/bin/health-check-handler.sh
    prefix: foo/
    type: checks

Dependencies

Example Playbooks

Playbook for building a standalone consul server

- hosts: localhost
  connection: local
  roles:
    - role: linuxhq.consul
      consul_client_addr: 0.0.0.0
      consul_datacenter: phx
      consul_node_name: "{{ inventory_hostname }}"
      consul_server: True
      consul_telemetry: {}
      consul_ui: True
      consul_watches: []

Playbook for building a three node consul cluster

- hosts: consul
  connection: ssh
  roles:
    - role: linuxhq.consul
      consul_client_addr: 0.0.0.0
      consul_datacenter: phx
      consul_leader: consul1.host.com
      consul_node_name: "{{ inventory_hostname }}"
      consul_server: True
      consul_start_join:
        - consul1.host.com
        - consul2.host.com
        - consul3.host.com
      consul_telemetry: {}
      consul_ui: True
      consul_watches: []

Partners

packagecloud

Do you need trustworthy hosted package repositories? Then packagecloud is for you.

A big thank you to packagecloud for supporting the open source community!

License

BSD

Author Information

This role was created by Taylor Kimball.

ansible-role-consul's People

Watchers

James Cloos 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.