Greetings,
we are wondering if there is a way to split a long variable into multiple lines within a template block.
Context:
We are running a gitlab omnibus container with nomad. To configure the container we want to put the variable GITLAB_OMNIBUS_CONFIG
into the enviroment variables. So far so good. When the variable is put into the template block with env = true
is only works, if the whole configuration are written in a single line as key = value
pair. Since the configuration contains multiple configuration, we want to write the configuration in multiline for readability. Something like:
template {
data = <<-EOT
GITLAB_OMNIBUS_CONFIG="gitlab_rails['gitlab_shell_ssh_port'] = ssh_port;
gitlab_rails['db_host'] = 'db_host';
gitlab_rails['db_port'] = 'db_port';
<...>"
EOT
destination = "secrets/.env"
change_mode = "restart"
env = true
Is there a way to split the variable in multilines?