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 | [] |
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]"
]
}
Author:: John Bellone @johnbellone ([email protected])