Skip to content

Commit

Permalink
fix parsing of RHSM proxy configuration (kubernetes-sigs#10060) (kube…
Browse files Browse the repository at this point in the history
…rnetes-sigs#10228)

Remove URL scheme part from http_proxy for server.proxy_hostname
  • Loading branch information
tmurakam authored and maciej-markowski committed Jun 23, 2023
1 parent 04d1524 commit e50f112
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/bootstrap-os/tasks/bootstrap-redhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
when: not skip_http_proxy_on_os_packages

- name: Add proxy to RHEL subscription-manager if http_proxy is defined
command: /sbin/subscription-manager config --server.proxy_hostname={{ http_proxy | regex_replace(':\d+$') }} --server.proxy_port={{ http_proxy | regex_replace('^.*:') }}
command: /sbin/subscription-manager config --server.proxy_hostname={{ http_proxy | regex_replace(':\d+$') | regex_replace('^.*://') }} --server.proxy_port={{ http_proxy | regex_replace('^.*:') }}
become: true
when:
- not skip_http_proxy_on_os_packages
Expand Down

0 comments on commit e50f112

Please sign in to comment.