Skip to content

Commit

Permalink
Expose log_level variable for mill and set the default to INFO. (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbernstein authored Sep 18, 2023
1 parent 2486042 commit 45b2a95
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions mill/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ locals {
efs_dns_name = aws_efs_file_system.duracloud_mill.dns_name
mill_docker_container = var.mill_docker_container
mill_version = var.mill_version
log_level = var.log_level
instance_prefix = var.stack_name
domain = "test.org"
max_worker_threads = var.max_worker_threads
Expand Down
2 changes: 1 addition & 1 deletion mill/resources/cloud-init.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,6 @@ aws s3 cp --recursive s3://${mill_s3_config_location} $millHome/

instanceId=`ls /var/lib/cloud/instances`

docker run -d -it -v /sys/fs/cgroup/:/sys/fs/cgroup:ro --cap-add SYS_ADMIN -e HOST_NAME="${instance_prefix}-${node_type}-$instanceId" -e DOMAIN=${domain} -e NODE_TYPE="${node_type}" -e MAX_WORKER_THREADS="${max_worker_threads}" -e AWS_REGION="${aws_region}" -v $millHome:/mill-home -v /efs:/efs --name=duracloud-mill ${mill_docker_container}:${mill_version};
docker run -d -it -v /sys/fs/cgroup/:/sys/fs/cgroup:ro --cap-add SYS_ADMIN -e HOST_NAME="${instance_prefix}-${node_type}-$instanceId" -e LOG_LEVEL="${log_level}" -e DOMAIN=${domain} -e NODE_TYPE="${node_type}" -e MAX_WORKER_THREADS="${max_worker_threads}" -e AWS_REGION="${aws_region}" -v $millHome:/mill-home -v /efs:/efs --name=duracloud-mill ${mill_docker_container}:${mill_version};

--===============2205584129673038508==--
5 changes: 5 additions & 0 deletions mill/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ variable "mill_version" {
default = "latest"
}

variable "log_level" {
description = "The java logging level for the mill nodes."
default = "INFO"
}

variable "mill_s3_config_path" {
default = "/"
description = "An optional path within the config bucket to a sub-directory containing your mill config files e.g. /optional/path"
Expand Down

0 comments on commit 45b2a95

Please sign in to comment.