Skip to content

Commit

Permalink
fix: invert user data tracing flag (#517)
Browse files Browse the repository at this point in the history
* fix: fix user data tracing flag

* invert the default value of the variable

* empty commit to trigger workflows

Co-authored-by: Matthias Kay <[email protected]>
Co-authored-by: kayma <[email protected]>
  • Loading branch information
3 people committed Dec 24, 2022
1 parent cc2bb9b commit 61c7805
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion template/user-data.tpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash -e
exec > >(tee /var/log/user-data.log | logger -t user-data -s 2>/dev/console) 2>&1

if [[ $(echo ${user_data_trace_log}) == false ]]; then
if [[ $(echo ${user_data_trace_log}) == true ]]; then
set -x
fi

Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ variable "cache_bucket" {
variable "enable_runner_user_data_trace_log" {
description = "Enable bash xtrace for the user data script that creates the EC2 instance for the runner agent. Be aware this could log sensitive data such as you GitLab runner token."
type = bool
default = false
default = true
}

variable "enable_schedule" {
Expand Down

0 comments on commit 61c7805

Please sign in to comment.