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
6d98a4df
Commit
6d98a4df
authored
Jun 20, 2014
by
Feanil Patel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add boto credentials to jenkins.
parent
8dc35307
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
0 deletions
+18
-0
playbooks/roles/jenkins_admin/defaults/main.yml
+4
-0
playbooks/roles/jenkins_admin/tasks/main.yml
+8
-0
playbooks/roles/jenkins_admin/templates/edx/var/jenkins/boto.j2
+6
-0
No files found.
playbooks/roles/jenkins_admin/defaults/main.yml
View file @
6d98a4df
...
...
@@ -17,6 +17,10 @@
JENKINS_ADMIN_NAME
:
'
default_jenkins_name'
# A dictionary of AWS credentials to use to make
# a boto file for jenkins.
JENKINS_ADMIN_AWS_CREDENTIALS
:
!!null
# jenkins_admin also requires other variables that are not defined by default.
# JENKINS_ADMIN_S3_PROFILE: !!null
...
...
playbooks/roles/jenkins_admin/tasks/main.yml
View file @
6d98a4df
...
...
@@ -60,6 +60,14 @@
group={{ jenkins_group }}
mode=0644
-
name
:
configure the boto profiles for jenkins
template
:
>
src="./{{ jenkins_home }}/boto.j2"
dest"{{ jenkins_home }}/.boto"
owner="{{ jenkins_user }}"
group="{{ jenkins_group }}"
mode="0600"
-
name
:
create the ssh directory
file
:
>
path={{ jenkins_home }}/.ssh
...
...
playbooks/roles/jenkins_admin/templates/edx/var/jenkins/boto.j2
0 → 100644
View file @
6d98a4df
{% for deployment, creds in JENKINS_ADMIN_AWS_CREDENTIALS.iteritems() %}
[profile {{deployment}}]
aws_access_key_id = {{ creds.ACCESS_ID }}
aws_secret_access_key = {{ creds.SECRET_KEY }}
{% 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