Installs and configures Consul.
CentOS 5.10, 6.5 Ubuntu 12.04, 14.04
Key | Type | Description | Default |
---|---|---|---|
['consul']['version'] | String | Version to install | 0.2.0 |
['consul']['base_url'] | String | Base URL for binary downloads | https://dl.bintray.com/mitchellh/consul/ |
['consul']['install_method'] | String | Method to install consul with when using default recipe: binary or source | binary |
['consul']['install_dir'] | String | Directory to install binary to. | /usr/local/bin |
['consul']['service_mode'] | String | Mode to run consul as: bootstrap, server, or client | bootstrap |
['consul']['data_dir'] | String | Location to store consul's data in | /var/lib/consul |
['consul']['servers'] | Array Strings | Consul servers to join | [] |
Key | Type | Description | Default |
---|---|---|---|
['consul']['client_address'] | String | Address to bind to | 0.0.0.0 |
['consul']['ui_dir'] | String | Location to download the UI to | /var/lib/consul/ui |
['consul']['serve_ui'] | Boolean | Determines whether the consul service also serve's the UI | false |
This uses the binary installation recipe by default. It also starts consul at boot time.
Include consul::binary_install
in your node's run_list
:
{
"run_list": [
"recipe[consul::binary_install]"
]
}
Include consul::source_install
in your node's run_list
:
{
"run_list": [
"recipe[consul::source_install]"
]
}
This installs the UI into a specified directory.
Include consul::ui
in your node's run_list
:
{
"run_list": [
"recipe[consul::ui]"
]
}
Author:: John Bellone @johnbellone (jbellone@bloomberg.net)