-
Notifications
You must be signed in to change notification settings - Fork 18
/
main.yml
93 lines (76 loc) · 3.24 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
---
# Variables in this file are automatically included into the role's context,
# and can be overridden by the active play.
# (Other files in this directory must be included via an `include_vars` task.)
# Which Jenkins release line to use: must be either 'long_term_support' or
# 'weekly'.
# FIXME: Default should probably be Long Term Support, but that would not be
# backwards compatible with earlier versions of this role.
jenkins_release_line: 'weekly'
# If `true`, the Jenkins package (YUM, APT, etc.) will be upgraded to the latest
# version when this role is run.
jenkins_release_update: true
# The directory that will be used as the home directory for the Jenkins service
# account. Cannot be modified, due to limitations in the Jenkins installers.
jenkins_home_default: '/var/lib/jenkins'
# The location that will be used to store the Jenkins configuration and data.
jenkins_home: "{{ jenkins_home_default }}"
# Jenkins doesn't (and shouldn't) run as root, so this must be over 1024.
jenkins_port: 8080
# The context path that Jenkins will be hosted at, e.g. '/foo' in
# 'http://localhost:8080/foo'. Leave as '' to host at root path.
jenkins_context_path: ''
# The external URL that users will use to access Jenkins. Gets set in the
# Jenkins config and used in emails, webhooks, etc.
# If this is left empty/None, the configuration will not be set and Jenkins
# will try to auto-discover this (which won't work correctly if it's proxied).
jenkins_url_external: ''
# The number of minutes before Jenkins sessions timeout, i.e. how long logins
# are valid for. Defaults to 30 minutes. Can be set to `0` to never timeout.
# Reference: <https://stackoverflow.com/a/31809977/1851299>
jenkins_session_timeout: '30'
# The plugins that the Jenkins 2.0 setup wizard installs by default. Currently,
# the best place to find this list seems to be in the source, here:
# https://github.com/jenkinsci/jenkins/blob/master/core/src/main/resources/jenkins/install/platform-plugins.json
jenkins_plugins_recommended:
- cloudbees-folder
- antisamy-markup-formatter
- build-timeout
- credentials-binding
- timestamper
- ws-cleanup
- ant
- gradle
- workflow-aggregator
- github-branch-source
- pipeline-github-lib
- pipeline-stage-view
- git
- subversion
- ssh-slaves
- matrix-auth
- pam-auth
- ldap
- email-ext
- mailer
# The additional plugins that users of this role would like to be installed
# (must be overridden).
jenkins_plugins_extra: []
# Timeout when installing/updating plugins (in seconds).
jenkins_plugins_timeout: 60
# How many times to retry failed plugin installs/upgrades.
jenkins_plugins_retries: 3
# If `true`, the Jenkins plugins will be updated when this role is run.
# (Note that missing plugins will always be installed.)
jenkins_plugins_update: true
# Additional options that will be added to JAVA_ARGS
jenkins_java_args_extra: ''
##
# These should only be modified if custom/local mirrors of the YUM, APT, and/or
# plugins repositories are being used.
##
# The base URL of the custom YUM/APT repo to be used (the portion that's shared
# by the signing key and packages).
jenkins_packages_url_base: 'https://pkg.jenkins.io'
# Set to `true` to add a `proxy: _none_` setting for the YUM repo.
jenkins_packages_repo_yum_disable_proxy: false