Skip to content

Commit 61c7805

Browse files
ravenolfkayman-mk
andauthored
fix: invert user data tracing flag (#517)
* 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]>
1 parent cc2bb9b commit 61c7805

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

template/user-data.tpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash -e
22
exec > >(tee /var/log/user-data.log | logger -t user-data -s 2>/dev/console) 2>&1
33

4-
if [[ $(echo ${user_data_trace_log}) == false ]]; then
4+
if [[ $(echo ${user_data_trace_log}) == true ]]; then
55
set -x
66
fi
77

variables.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ variable "cache_bucket" {
635635
variable "enable_runner_user_data_trace_log" {
636636
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."
637637
type = bool
638-
default = false
638+
default = true
639639
}
640640

641641
variable "enable_schedule" {

0 commit comments

Comments
 (0)