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
0e74497c
Commit
0e74497c
authored
Sep 13, 2017
by
Michael Youngstrom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix problems with jenkins_common role
parent
ee6edcda
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
34 additions
and
16 deletions
+34
-16
playbooks/edx-east/jenkins_test.yml
+0
-1
playbooks/roles/jenkins_build/meta/main.yml
+1
-1
playbooks/roles/jenkins_common/defaults/main.yml
+4
-2
playbooks/roles/jenkins_common/meta/main.yml
+1
-1
playbooks/roles/jenkins_common/tasks/main.yml
+12
-1
playbooks/roles/jenkins_common/templates/config/credentials.yml.j2
+16
-10
No files found.
playbooks/edx-east/jenkins_test.yml
View file @
0e74497c
...
...
@@ -13,7 +13,6 @@
roles
:
-
aws
-
role
:
jenkins_build
build_jenkins_server_name
:
test-jenkins.testeng.edx.org
build_jenkins_configuration_scripts
:
-
1addJarsToClasspath.groovy
-
2checkInstalledPlugins.groovy
...
...
playbooks/roles/jenkins_build/meta/main.yml
View file @
0e74497c
...
...
@@ -16,4 +16,4 @@ dependencies:
jenkins_common_log_list
:
'
{{
build_jenkins_log_list
}}'
jenkins_common_history_max_days
:
'
{{
build_jenkins_history_max_days
}}'
jenkins_common_history_exclude_pattern
:
'
{{
build_jenkins_history_exclude_pattern
}}'
jenkins_common_server_name
:
'
{{
build_jenkins_server_name
}}'
jenkins_common_server_name
:
'
{{
JENKINS_SERVER_NAME
}}'
playbooks/roles/jenkins_common/defaults/main.yml
View file @
0e74497c
...
...
@@ -7,7 +7,8 @@ jenkins_common_version: jenkins_1.651.3
jenkins_common_war_source
:
https://s3.amazonaws.com/edx-testeng-tools/jenkins
jenkins_common_nginx_port
:
80
jenkins_common_protocol_https
:
true
jenkins_common_server_name
:
jenkins.example.org
JENKINS_SERVER_NAME
:
jenkins.example.org
jenkins_common_debian_pkgs
:
-
nginx
...
...
@@ -107,7 +108,8 @@ JENKINS_SECRET_FILES_LIST: []
JENKINS_USERNAME_PASSWORD_LIST
:
[]
JENKINS_SECRET_TEXT_LIST
:
[]
JENKINS_CERTIFICATES_LIST
:
[]
JENKINS_SSH_LIST
:
[]
JENKINS_MASTER_SSH_LIST
:
[]
JENKINS_CUSTOM_SSH_LIST
:
[]
# security
jenkins_common_security_scopes
:
'
read:org,user:email'
...
...
playbooks/roles/jenkins_common/meta/main.yml
View file @
0e74497c
...
...
@@ -14,7 +14,7 @@ dependencies:
nginx_template_dir
:
"
etc/nginx/sites-available"
nginx_sites
:
jenkins
jenkins_nginx_port
:
"
{{
jenkins_common_nginx_port
}}"
jenkins_server_name
:
"
{{
jenkins_common_server_name
}}"
jenkins_server_name
:
"
{{
JENKINS_SERVER_NAME
}}"
jenkins_port
:
"
{{
jenkins_common_port
}}"
jenkins_protocol_https
:
"
{{
jenkins_common_protocol_https
}}"
-
role
:
oraclejdk
...
...
playbooks/roles/jenkins_common/tasks/main.yml
View file @
0e74497c
...
...
@@ -164,7 +164,7 @@
-
install:plugins
-
install:jenkins-configuration
-
name
:
Copy
credentials into file
s
-
name
:
Copy
secret file credential
s
copy
:
content
:
"
{{
item.content
}}"
dest
:
'
{{
jenkins_common_config_path
}}/credentials/{{
item.name
}}'
...
...
@@ -175,6 +175,17 @@
-
install:base
-
install:jenkins-configuration
-
name
:
Copy ssh key credentials
copy
:
content
:
"
{{
item.content
}}"
dest
:
'
{{
jenkins_common_config_path
}}/credentials/{{
item.name
}}'
with_items
:
'
{{
JENKINS_CUSTOM_SSH_LIST
}}'
no_log
:
yes
tags
:
-
install
-
install:base
-
install:jenkins-configuration
-
name
:
Copy ec2 key
copy
:
content
:
'
{{
JENKINS_EC2_PRIVATE_KEY
}}'
...
...
playbooks/roles/jenkins_common/templates/config/credentials.yml.j2
View file @
0e74497c
...
...
@@ -12,7 +12,7 @@
scope: '{{ userPass.scope }}'
username: '{{ userPass.username }}'
password: '{{ userPass.password }}'
description: '{{ userPass.
password
}}'
description: '{{ userPass.
description
}}'
id: '{{ userPass.id }}'
{% endfor %}
{% for text in JENKINS_SECRET_TEXT_LIST %}
...
...
@@ -30,14 +30,20 @@
description: '{{ cert.description }}'
id: '{{ cert.id }}'
{% endfor %}
{% for
ssh in JENKINS
_SSH_LIST %}
{% for
master_ssh in JENKINS_MASTER
_SSH_LIST %}
- credentialType: 'ssh'
scope: '{{ ssh.scope }}'
username: '{{ ssh.username }}'
isJenkinsMasterSsh: '{{ ssh.isJenkinsMasterSsh}}'
{% if not isJenkinsMasterSsh %}
path: '{{ ssh.path }}'
{% endif %}
passphrase: '{{ ssh.passphrase }}'
description: '{{ ssh.description }}'
scope: '{{ master_ssh.scope }}'
username: '{{ master_ssh.username }}'
isJenkinsMasterSsh: true
passphrase: '{{ master_ssh.passphrase }}'
description: '{{ master_ssh.description }}'
{% endfor %}
{% for custom_ssh in JENKINS_CUSTOM_SSH_LIST %}
- credentialType: 'ssh'
scope: '{{ custom_ssh.scope }}'
username: '{{ custom_ssh.username }}'
isJenkinsMasterSsh: false
path: 'credentials/{{ custom_ssh.name }}'
passphrase: '{{ custom_ssh.passphrase }}'
description: '{{ custom_ssh.description }}'
{% endfor %}
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