Skip to content

Commit d0bca32

Browse files
committed
Fix user_data template JSON encoding
* Add combined from_json and to_json filter combination * Activate diffs for testing with Molecule
1 parent 52fac04 commit d0bca32

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

molecule/gitlab_runner/molecule.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ platforms:
2727
tty: true
2828
provisioner:
2929
name: "ansible"
30+
options:
31+
diff: true
3032
playbooks:
3133
prepare: "prepare.yml"
3234
converge: "converge.yml"
@@ -35,6 +37,7 @@ provisioner:
3537
all:
3638
vars:
3739
gitlab_runner_concurrent: 4
40+
gitlab_runner_hide_sensitive_changes: false
3841
host_vars:
3942
instancegitlabciopenstack1:
4043
gitlab_runner_version: "18.0.2"

roles/gitlab_runner/templates/config.toml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ sentry_dsn = "{{ gitlab_runner_sentry_dsn }}"
114114
networks = [ { uuid = "{{ runner.autoscaler_network_id }}" } ]
115115
security_groups = [ "{{ runner.autoscaler_security_group }}" ]
116116
scheduler_hints = { group = "{{ runner.autoscaler_scheduler_hint }}" }
117-
user_data = '{{ __ignition_content | to_json }}'
117+
user_data = '{{ __ignition_content | from_json | to_json }}'
118118

119119
[runners.autoscaler.connector_config]
120120
username = "{{ runner.autoscaler_username }}"

0 commit comments

Comments
 (0)