Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
1c8a6a25
Commit
1c8a6a25
authored
6 years ago
by
Michael Youngstrom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add config needed for splitting security/oauth
parent
9a61056b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
10 deletions
+20
-10
docker/build/jenkins_build/ansible_overrides.yml
+3
-1
playbooks/roles/jenkins_build/defaults/main.yml
+1
-0
playbooks/roles/jenkins_common/defaults/main.yml
+9
-3
playbooks/roles/jenkins_common/templates/config/github_oauth.yml.j2
+6
-0
playbooks/roles/jenkins_common/templates/config/security.yml.j2
+1
-6
No files found.
docker/build/jenkins_build/ansible_overrides.yml
View file @
1c8a6a25
...
...
@@ -18,6 +18,7 @@ build_jenkins_configuration_scripts:
-
4configureJobConfigHistory.groovy
-
4configureMailerPlugin.groovy
-
4configureMaskPasswords.groovy
-
4configureSecurity.groovy
-
5addSeedJob.groovy
# added this
-
5createLoggers.groovy
...
...
@@ -28,6 +29,7 @@ jenkins_common_non_plugin_template_files:
-
ghprb_config
-
git_config
-
github_config
# - github_oauth # intentionally commented out
-
hipchat_config
-
job_config_history
-
log_config
...
...
@@ -35,7 +37,7 @@ jenkins_common_non_plugin_template_files:
-
main_config
-
mask_passwords_config
-
properties_config
# - security # intentionally left commented out
-
security
-
seed_config
# Add the jenkins-worker label so that this jenkins master will work
...
...
This diff is collapsed.
Click to expand it.
playbooks/roles/jenkins_build/defaults/main.yml
View file @
1c8a6a25
...
...
@@ -18,6 +18,7 @@ build_jenkins_configuration_scripts:
-
4configureJobConfigHistory.groovy
-
4configureMailerPlugin.groovy
-
4configureMaskPasswords.groovy
-
4configureSecurity.groovy
-
4configureSplunk.groovy
-
5createLoggers.groovy
...
...
This diff is collapsed.
Click to expand it.
playbooks/roles/jenkins_common/defaults/main.yml
View file @
1c8a6a25
...
...
@@ -30,6 +30,7 @@ jenkins_common_non_plugin_template_files:
-
ghprb_config
-
git_config
-
github_config
-
github_oauth
-
hipchat_config
-
job_config_history
-
log_config
...
...
@@ -123,13 +124,11 @@ JENKINS_MASTER_SSH_LIST: []
JENKINS_CUSTOM_SSH_LIST
:
[]
# security
jenkins_common_dsl_script_security_enabled
:
true
jenkins_common_security_agent_protocols
:
-
'
JNLP4-connect'
jenkins_common_security_agent_jnlp_tcp_port
:
0
jenkins_common_security_scopes
:
'
read:org,user:email'
JENKINS_SECURITY_CLIENT_ID
:
'
'
JENKINS_SECURITY_CLIENT_SECRET
:
'
'
JENKINS_SECURITY_GROUPS
:
[]
# git
...
...
@@ -144,6 +143,13 @@ jenkins_common_github_configs:
GITHUB_API_URL
:
'
'
CACHE_SIZE
:
20
# github oauth settings
jenkins_common_security_scopes
:
'
read:org,user:email'
JENKINS_SECURITY_CLIENT_ID
:
'
'
JENKINS_SECURITY_CLIENT_SECRET
:
'
'
# hipchat
jenkins_common_hipchat_room
:
'
'
jenkins_common_hipchat_v2_enabled
:
true
...
...
This diff is collapsed.
Click to expand it.
playbooks/roles/jenkins_common/templates/config/github_oauth.yml.j2
0 → 100644
View file @
1c8a6a25
---
GITHUB_WEB_URI: 'https://github.com'
GITHUB_API_URI: 'https://api.github.com'
CLIENT_ID: '{{ JENKINS_SECURITY_CLIENT_ID }}'
CLIENT_SECRET: '{{ JENKINS_SECURITY_CLIENT_SECRET }}'
SCOPES: '{{ jenkins_common_security_scopes }}'
This diff is collapsed.
Click to expand it.
playbooks/roles/jenkins_common/templates/config/security.yml.j2
View file @
1c8a6a25
...
...
@@ -5,12 +5,6 @@ AGENT_SETTINGS:
- {{ protocol }}
{% endfor %}
JNLP_TCP_PORT: {{ jenkins_common_security_agent_jnlp_tcp_port }}
OAUTH_SETTINGS:
GITHUB_WEB_URI: 'https://github.com'
GITHUB_API_URI: 'https://api.github.com'
CLIENT_ID: '{{ JENKINS_SECURITY_CLIENT_ID }}'
CLIENT_SECRET: '{{ JENKINS_SECURITY_CLIENT_SECRET }}'
SCOPES: '{{ jenkins_common_security_scopes }}'
SECURITY_GROUPS:
{% for group in JENKINS_SECURITY_GROUPS %}
- NAME: '{{ group.NAME }}'
...
...
@@ -23,3 +17,4 @@ SECURITY_GROUPS:
- {{ user }}
{% endfor %}
{% endfor %}
DSL_SCRIPT_SECURITY_ENABLED: {{ jenkins_common_dsl_script_security_enabled }}
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment