Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump consul_connect plugin version and add it as a variable #14

Merged
merged 1 commit into from
Sep 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion conf/nomad/presto.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ job "${nomad_job_name}" {
artifact {
# Download custom certificate authenticator plugin
# TODO: add variable for this and make it optional
source = "https://oss.sonatype.org/service/local/repositories/releases/content/io/github/gugalnikov/presto-consul-connect/2.1.0/presto-consul-connect-2.1.0-jar-with-dependencies.jar"
source = "https://oss.sonatype.org/service/local/repositories/releases/content/io/github/gugalnikov/presto-consul-connect/${consul_connect_plugin_version}/presto-consul-connect-${consul_connect_plugin_version}-jar-with-dependencies.jar"
mode = "file"
destination = "local/presto/plugin/presto-consul-connect.jar"
}
Expand Down
3 changes: 3 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ data "template_file" "template-nomad-job-presto" {
memory = var.memory
consul_http_addr = var.consul_http_addr

#Custom plugin for consul connect integration
consul_connect_plugin_version = var.consul_connect_plugin_version

#hivemetastore
hivemetastore_service_name = var.hivemetastore.service_name
hivemetastore_port = var.hivemetastore.port
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ variable "docker_image" {
default = "prestosql/presto:341"
}

variable "consul_connect_plugin_version" {
type = string
description = "Version of the consul connect plugin for presto (on maven central) src here: https://github.com/gugalnikov/presto-consul-connect"
default = "2.2.0"
}

variable "container_environment_variables" {
type = list(string)
description = "Presto environment variables"
Expand Down