-
Notifications
You must be signed in to change notification settings - Fork 26
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
The user_data
field in the gitlab_unner role's config.toml
template incorrectly double-encodes JSON content when using Ansible 2.19, causing the autoscaler configuration to fail.
The template line:
user_data = '{{ __ignition_content | to_json }}'
Produces incorrectly formatted output:
user_data = '"{\"ignition\":{\"version\":\"3.4.0\"},\"passwd\":{\"users\":[...]}}"'
This triple-wraps the JSON content:
- TOML string wrapper (
'...'
) - JSON string encoding (
"..."
) - Escaped JSON content (
{\"ignition\"...}
)
__ignition_content
is already valid JSON from base64-decoding ignition.json
. The | to_json
filter double-encodes it, which Ansible 2.19's stricter template handling now rejects.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working