diff --git a/consul/consul.nuspec b/consul/consul.nuspec index 468e9ca0..22627de6 100644 --- a/consul/consul.nuspec +++ b/consul/consul.nuspec @@ -22,15 +22,14 @@ The package parameters can be set - * `/noservice` - Disables installation of Windows service * `/apiaddr` - Sets environment variable `CONSUL_HTTP_ADDR` for easy execute commands on remote agent + * `/agentargs` - Sets up [Consul agent options via commandline](https://developer.hashicorp.com/consul/docs/agent/config/cli-flags) for Consul agent service These parameters can be passed to the installer with the use of `--params`. -For example: `--params="'/noservice /apiaddr=http://10.0.0.1:8500'"`. +For example: + * `--params="'/noservice /apiaddr=http://10.0.0.1:8500'"` + * `--params="'/agentargs=""-config-file %PROGRAMDATA%\consul\dsc-config\default.json -client 10.0.0.1""'"` (be cautious of quotes) -#### Installer Arguments -Consul agent runtime options can also be set via `--ia`: https://developer.hashicorp.com/consul/docs/agent/config/cli-flags - -For example: `--ia='-config-file ""%PROGRAMDATA%\consul\dsc-config\default.json/"" -client 10.0.0.1'` -Or better, drop a `config.hcl` into `%PROGRAMDATA%\consul\config` with your configuration. +For setting Consul agent CLI options, it is better dropping a `config.hcl` into `%PROGRAMDATA%\consul\config` instead of setting them with package parameters.