Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1 from sky-uk/dto-20297-use-local-services
Browse files Browse the repository at this point in the history
Adding proxy settings to vm options
  • Loading branch information
steven-edgar authored Jul 12, 2019
2 parents 52af551 + 2df5a50 commit 32af282
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tasks/nexus_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,27 @@
regexp: "^-Djava.io.tmpdir=.*"
line: "-Djava.io.tmpdir={{ nexus_tmp_dir }}"

- name: Setup Nexus proxy host
lineinfile:
dest: "{{ nexus_installation_dir }}/nexus-latest/bin/nexus.vmoptions"
regexp: "^-Dhttp.proxyHost=.*"
line: "-Dhttp.proxyHost={{ nexus_http_proxy_host }}"
when: nexus_http_proxy_host is defined

- name: Setup Nexus proxy port
lineinfile:
dest: "{{ nexus_installation_dir }}/nexus-latest/bin/nexus.vmoptions"
regexp: "^-Dhttp.proxyPort=.*"
line: "-Dhttp.proxyPort={{ nexus_http_proxy_port }}"
when: nexus_http_proxy_port is defined

- name: Setup Nexus proxy host excludes
lineinfile:
dest: "{{ nexus_installation_dir }}/nexus-latest/bin/nexus.vmoptions"
regexp: "^-Dhttp.nonProxyHosts=.*"
line: "-Dhttp.nonProxyHosts=\"{{ nexus_proxy_exclude_hosts | join('|') }}\""
when: nexus_proxy_exclude_hosts is defined

- name: Set NEXUS_HOME for the service user
lineinfile:
dest: "/home/{{ nexus_os_user }}/.bashrc"
Expand Down

0 comments on commit 32af282

Please sign in to comment.