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 b3fdc7a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cinch/roles/jenkins_master/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@
update_centers:
- id: default
url: "https://updates.jenkins-ci.org/{{ jenkins_uc_version }}/update-center.json"
# If necessary, you may upload an update center certificate file by defining
# a local filesystem path to the certificate on the the system running Ansible.
# This is not necessary for the upstream Jenkins update center, but may be
# useful for deployments where custom downstream update centers are in use.
#update_center_certificate: /tmp/plugin-data/redhat-update-center.crt
# If update_center_certificate is defined, you may wish to override the default
# behavior of uploading the certificate from the local system running Ansible
# and instead copy the file from a location on the remote Jenkins master to the
# proper destination in JENKINS_HOME by setting this variable to true:
update_center_certificate_remote_src: false
# If set to true, Jenkins will be run over HTTPS. If you set this value to true,
# you can override jenkins_ssl_cert and jenkins_ssl_key if you want to use custom
# SSL certificate, otherwise a self signed certificate will be used.
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 }}"
owner: jenkins
group: jenkins
notify: restart Jenkins
Expand Down

0 comments on commit b3fdc7a

Please sign in to comment.