Skip to content

consul job from consul/23.0.2

Github source: ab8e4e60 or master branch

Properties

consul

agent_config

override hash for the consul agent.json configuration

client_addr

The IP to use for client communication

datacenter

The datacenter consul is a part of

default_recursor

DNS recursor to use if BOSH not providing DNS

Default
8.8.8.8

domain

All DNS queries for this domain will be handled by consul.

Default
consul

encrypt

A key to encrypt the traffic between the consul agents (use consul keygen)

http_port

Enable listening on an alternative http port (also active when ssl is configured). It is advised only to set this when also setting client_addr to ‘127.0.0.1’ to only allow local http access.

leave_on_terminate

If enabled, gracefully leave the cluster when the process shuts down.

Default
false

resolvconf_override

Force the host to use only the local consul agent for dns.

Default
false

server

Should the agent run in server or client mode

Default
true

services

a map of service configurations, keyed by service name

ssl_ca

The content of the ca file

ssl_cert

The content of the cert file

ssl_key

The content of the key file

user

User that consul is ran under

Default
vcap

verify_incoming

Should requests coming in to the consul servers be verified

Default
true

networks

apps

Deployment’s internal name for the network interface to discover own IP

Templates

Templates are rendered and placed onto corresponding instances during the deployment process. This job's templates will be placed into /var/vcap/jobs/consul/ directory (learn more).

  • bin/consul_ctl (from bin/consul_ctl)
  • bin/monit_debugger (from bin/monit_debugger)
  • consul/agent.json (from consul/agent.json.erb)
  • consul/ca.cert (from consul/ca.cert.erb)
  • consul/consul.cert (from consul/consul.cert.erb)
  • consul/consul.key (from consul/consul.key.erb)
  • data/properties.sh (from data/properties.sh.erb)
  • helpers/ctl_setup.sh (from helpers/ctl_setup.sh)
  • helpers/ctl_utils.sh (from helpers/ctl_utils.sh)

Packages

Packages are compiled and placed onto corresponding instances during the deployment process. Packages will be placed into /var/vcap/packages/ directory.