Skip to content

Commit

Permalink
Added ability to copy the update_center_certificate from a remote
Browse files Browse the repository at this point in the history
source.
  • Loading branch information
David Roble committed Feb 9, 2018
1 parent 87483c2 commit e84d056
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cinch/roles/jenkins_master/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@
# A list of Jenkins update center URLs to configure. This is the default UC
# provided by the upstream, public infrastructure. If you maintain a local
# mirror for custom plugins or just for mirroring purposes, then override this
# variable with those values.
# variable with those values. Local update centers may require a certificate
# which can be installed with the update_center_certificate variable. By
# default, this path is a local path on the system where Ansible is running,
# but you may set update_center_certificate_remote_src to true to copy the
# certificate from a path on the remote Jenkins master to the proper
# destination in JENKINS_HOME.
update_centers:
- id: default
url: "https://updates.jenkins-ci.org/{{ jenkins_uc_version }}/update-center.json"
Expand Down
1 change: 1 addition & 0 deletions cinch/roles/jenkins_master/tasks/plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
copy:
src: "{{ update_center_certificate }}"
dest: "{{ jenkins_home }}/update-center-rootCAs/update-center.crt"
remote_src: "{{ update_center_certificate_remote_src | default(false) }}"
owner: jenkins
group: jenkins
notify: restart Jenkins
Expand Down

0 comments on commit e84d056

Please sign in to comment.