diff --git a/modules/run-consul/run-consul b/modules/run-consul/run-consul index 56c5054f..fd46bc86 100755 --- a/modules/run-consul/run-consul +++ b/modules/run-consul/run-consul @@ -51,6 +51,7 @@ function print_usage { echo -e " --ca-path\t\tPath to the directory of CA files used to verify outgoing connections. Optional. Must be specified with --enable-rpc-encryption." echo -e " --cert-file-path\tPath to the certificate file used to verify incoming connections. Optional. Must be specified with --enable-rpc-encryption and --key-file-path." echo -e " --key-file-path\tPath to the certificate key used to verify incoming connections. Optional. Must be specified with --enable-rpc-encryption and --cert-file-path." + echo -e " --enable-auto-encryption\t\tEnable auto_encrypt setting for servers and clients." echo -e " --environment\t\tA single environment variable in the key/value pair form 'KEY=\"val\"' to pass to Consul as environment variable when starting it up. Repeat this option for additional variables. Optional." echo -e " --skip-consul-config\tIf this flag is set, don't generate a Consul configuration file. Optional. Default is false." echo -e " --recursor\tThis flag provides address of upstream DNS server that is used to recursively resolve queries if they are not inside the service domain for Consul. Repeat this option for additional variables. Optional." @@ -231,9 +232,10 @@ function generate_consul_config { local -r redundancy_zone_tag="${17}" local -r disable_upgrade_migration="${18}" local -r upgrade_version_tag=${19} + local -r enable_auto_encryption="${20}" local -r config_path="$config_dir/$CONSUL_CONFIG_FILE" - shift 19 + shift 20 local -r recursors=("$@") local instance_id="" @@ -302,13 +304,56 @@ EOF rpc_encryption_configuration=$(cat <