<commit_before>{{- define "ironic_conductor_conf" -}}
{{- $envAll    :=  index . 0 -}}
{{- $conductor :=  index . 1 -}}
{{- with $envAll -}}
{{- $tftp_ip :=  $conductor.tftp_ip | default .Values.tftp_ip | default .Values.global.ironic_tftp_ip }}
{{- $deploy_port :=  $conductor.tftp_ip | default .Values.tftp_ip | default .Values.global.ironic_tftp_ip }}
[DEFAULT]
{{- if $conductor.enabled_drivers }}
enabled_drivers = {{ $conductor.enabled_drivers}}
{{- end }}
{{- range $k, $v :=  $conductor.default }}
{{ $k }} = {{ $v }}
{{- end }}

[conductor]
{{- range $k, $v :=  $conductor.conductor }}
{{ $k }} = {{ $v }}
{{- end }}
{{- if $conductor.conductor_group }}
conductor_group = {{ $conductor.conductor_group }}
{{- else }}

[console]
terminal_pid_dir = /shellinabox
terminal_url_scheme = https://{{ include "ironic_console_endpoint_host_public" . }}/{{$conductor.name}}/%(uuid)s/%(expiry)s/%(digest)s
socket_permission = 0666
ssh_command_pattern = sshpass -f %(pw_file)s ssh -oLogLevel={{ .Values.console.ssh_loglevel | default "error" }} -oUserKnownHostsFile=/dev/null -oStrictHostKeyChecking=no -oKexAlgorithms=+diffie-hellman-group1-sha1 -c 'aes128-cbc','aes256-cbc','3des-cbc' -l %(username)s %(address)s
url_auth_digest_secret = {{.Values.console.secret}}

[deploy]
# We expose this directory over http and tftp
http_root = /tftpboot
http_url = {{ .Values.conductor.deploy.protocol }}://{{ $tftp_ip }}:{{ .Values.conductor.deploy.port }}/tftpboot
{{- range $k, $v :=  $conductor.deploy }}<commit_msg>[ironic] typo: end, not else<commit_after>{{- define "ironic_conductor_conf" -}}
{{- $envAll    :=  index . 0 -}}
{{- $conductor :=  index . 1 -}}
{{- with $envAll -}}
{{- $tftp_ip :=  $conductor.tftp_ip | default .Values.tftp_ip | default .Values.global.ironic_tftp_ip }}
{{- $deploy_port :=  $conductor.tftp_ip | default .Values.tftp_ip | default .Values.global.ironic_tftp_ip }}
[DEFAULT]
{{- if $conductor.enabled_drivers }}
enabled_drivers = {{ $conductor.enabled_drivers}}
{{- end }}
{{- range $k, $v :=  $conductor.default }}
{{ $k }} = {{ $v }}
{{- end }}

[conductor]
{{- range $k, $v :=  $conductor.conductor }}
{{ $k }} = {{ $v }}
{{- end }}
{{- if $conductor.conductor_group }}
conductor_group = {{ $conductor.conductor_group }}
{{- end }}

[console]
terminal_pid_dir = /shellinabox
terminal_url_scheme = https://{{ include "ironic_console_endpoint_host_public" . }}/{{$conductor.name}}/%(uuid)s/%(expiry)s/%(digest)s
socket_permission = 0666
ssh_command_pattern = sshpass -f %(pw_file)s ssh -oLogLevel={{ .Values.console.ssh_loglevel | default "error" }} -oUserKnownHostsFile=/dev/null -oStrictHostKeyChecking=no -oKexAlgorithms=+diffie-hellman-group1-sha1 -c 'aes128-cbc','aes256-cbc','3des-cbc' -l %(username)s %(address)s
url_auth_digest_secret = {{.Values.console.secret}}

[deploy]
# We expose this directory over http and tftp
http_root = /tftpboot
http_url = {{ .Values.conductor.deploy.protocol }}://{{ $tftp_ip }}:{{ .Values.conductor.deploy.port }}/tftpboot
{{- range $k, $v :=  $conductor.deploy }}
{'fraction_non_alphanumeric': 0.20264026402640264, 'fraction_numerical': 0.009900990099009901, 'mean_word_length': 4.708097928436912, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '824885', 'n_tokens_mistral': 1267, 'n_tokens_neox': 1105, 'n_words': 200}