Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ability to copy the update_center_certificate from a remote #214

Merged
merged 1 commit into from
Feb 9, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/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