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
OpenEdx
configuration
Commits
233e58d5
Commit
233e58d5
authored
Mar 28, 2014
by
Han Su Kim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding spaces to vars; addressing leaving loop expressions bare error
parent
cebbe726
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
33 deletions
+38
-33
playbooks/roles/jenkins_admin/defaults/main.yml
+10
-5
playbooks/roles/jenkins_admin/tasks/main.yml
+20
-20
playbooks/roles/jenkins_admin/templates/edx/var/jenkins/hudson.plugins.s3.S3BucketPublisher.xml.j2
+3
-3
playbooks/roles/jenkins_admin/templates/edx/var/jenkins/jobs/backup-jenkins/config.xml.j2
+1
-1
playbooks/roles/jenkins_admin/templates/edx/var/jenkins/jobs/build-ami/config.xml.j2
+4
-4
No files found.
playbooks/roles/jenkins_admin/defaults/main.yml
View file @
233e58d5
...
@@ -80,15 +80,20 @@ jenkins_admin_debian_pkgs:
...
@@ -80,15 +80,20 @@ jenkins_admin_debian_pkgs:
jenkins_admin_gem_pkgs
:
jenkins_admin_gem_pkgs
:
# for generating status.edx.org
# for generating status.edx.org
-
{
name
:
sass
,
version
:
"
3.2.4"
}
-
name
:
sass,
version
:
"
3.2.4"
jenkins_admin_redhat_pkgs
:
[]
jenkins_admin_redhat_pkgs
:
[]
jenkins_admin_plugins
:
jenkins_admin_plugins
:
-
{
name
:
"
greenballs"
,
version
:
"
1.14"
}
-
name
:
"
greenballs"
-
{
name
:
"
rebuild"
,
version
:
"
1.21"
}
version
:
"
1.14"
-
{
name
:
"
build-user-vars-plugin"
,
version
:
"
1.1"
}
-
name
:
"
rebuild"
-
{
name
:
"
build-token-root"
,
version
:
"
1.1"
}
version
:
"
1.21"
-
name
:
"
build-user-vars-plugin"
version
:
"
1.1"
-
name
:
"
build-token-root"
,
version
:
"
1.1"
jenkins_admin_jobs
:
jenkins_admin_jobs
:
-
'
backup-jenkins'
-
'
backup-jenkins'
...
...
playbooks/roles/jenkins_admin/tasks/main.yml
View file @
233e58d5
...
@@ -66,17 +66,17 @@
...
@@ -66,17 +66,17 @@
-
name
:
configure s3 plugin
-
name
:
configure s3 plugin
template
:
>
template
:
>
src="./{{
jenkins_home
}}/hudson.plugins.s3.S3BucketPublisher.xml.j2"
src="./{{
jenkins_home
}}/hudson.plugins.s3.S3BucketPublisher.xml.j2"
dest="{{
jenkins_home
}}/hudson.plugins.s3.S3BucketPublisher.xml"
dest="{{
jenkins_home
}}/hudson.plugins.s3.S3BucketPublisher.xml"
owner={{
jenkins_user
}}
owner={{
jenkins_user
}}
group={{
jenkins_group
}}
group={{
jenkins_group
}}
mode=0644
mode=0644
-
name
:
create the ssh directory
-
name
:
create the ssh directory
file
:
>
file
:
>
path={{
jenkins_home
}}/.ssh
path={{
jenkins_home
}}/.ssh
owner={{
jenkins_user
}}
owner={{
jenkins_user
}}
group={{
jenkins_group
}}
group={{
jenkins_group
}}
mode=0700
mode=0700
state=directory
state=directory
...
@@ -89,34 +89,34 @@
...
@@ -89,34 +89,34 @@
-
name
:
drop the secure credentials
-
name
:
drop the secure credentials
copy
:
>
copy
:
>
content="{{ JENKINS_ADMIN_GIT_KEY }}"
content="{{ JENKINS_ADMIN_GIT_KEY }}"
dest={{
jenkins_home
}}/.ssh/id_rsa
dest={{
jenkins_home
}}/.ssh/id_rsa
owner={{
jenkins_user
}}
owner={{
jenkins_user
}}
group={{
jenkins_group
}}
group={{
jenkins_group
}}
mode=0600
mode=0600
-
name
:
create job directory
-
name
:
create job directory
file
:
>
file
:
>
path="{{
jenkins_home
}}/jobs"
path="{{
jenkins_home
}}/jobs"
owner="{{
jenkins_user
}}"
owner="{{
jenkins_user
}}"
group="{{
jenkins_group
}}"
group="{{
jenkins_group
}}"
mode=0755
mode=0755
state=directory
state=directory
-
name
:
create admin job directories
-
name
:
create admin job directories
file
:
>
file
:
>
path="{{
jenkins_home}}/jobs/{{item
}}"
path="{{
jenkins_home }}/jobs/{{ item
}}"
owner={{
jenkins_user
}}
owner={{
jenkins_user
}}
group={{
jenkins_group
}}
group={{
jenkins_group
}}
mode=0755
mode=0755
state=directory
state=directory
with_items
:
jenkins_admin_jobs
with_items
:
jenkins_admin_jobs
-
name
:
create admin job config files
-
name
:
create admin job config files
template
:
>
template
:
>
src="./{{
jenkins_home}}/jobs/{{item
}}/config.xml.j2"
src="./{{
jenkins_home }}/jobs/{{ item
}}/config.xml.j2"
dest="{{
jenkins_home}}/jobs/{{item
}}/config.xml"
dest="{{
jenkins_home }}/jobs/{{ item
}}/config.xml"
owner={{
jenkins_user
}}
owner={{
jenkins_user
}}
group={{
jenkins_group
}}
group={{
jenkins_group
}}
mode=0644
mode=0644
with_items
:
jenkins_admin_jobs
with_items
:
jenkins_admin_jobs
...
...
playbooks/roles/jenkins_admin/templates/edx/var/jenkins/hudson.plugins.s3.S3BucketPublisher.xml.j2
View file @
233e58d5
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
<hudson.plugins.s3.S3BucketPublisher_-DescriptorImpl
plugin=
"s3@0.5"
>
<hudson.plugins.s3.S3BucketPublisher_-DescriptorImpl
plugin=
"s3@0.5"
>
<profiles>
<profiles>
<hudson.plugins.s3.S3Profile>
<hudson.plugins.s3.S3Profile>
<name>
{{
JENKINS_ADMIN_S3_PROFILE.name
}}
</name>
<name>
{{
JENKINS_ADMIN_S3_PROFILE.name
}}
</name>
<accessKey>
{{
JENKINS_ADMIN_S3_PROFILE.access_key
}}
</accessKey>
<accessKey>
{{
JENKINS_ADMIN_S3_PROFILE.access_key
}}
</accessKey>
<secretKey>
{{
JENKINS_ADMIN_S3_PROFILE.secret_key
}}
</secretKey>
<secretKey>
{{
JENKINS_ADMIN_S3_PROFILE.secret_key
}}
</secretKey>
</hudson.plugins.s3.S3Profile>
</hudson.plugins.s3.S3Profile>
</profiles>
</profiles>
</hudson.plugins.s3.S3BucketPublisher_-DescriptorImpl>
</hudson.plugins.s3.S3BucketPublisher_-DescriptorImpl>
playbooks/roles/jenkins_admin/templates/edx/var/jenkins/jobs/backup-jenkins/config.xml.j2
View file @
233e58d5
...
@@ -44,7 +44,7 @@ rm -rf $BUILD_ID
...
@@ -44,7 +44,7 @@ rm -rf $BUILD_ID
</builders>
</builders>
<publishers>
<publishers>
<hudson.plugins.s3.S3BucketPublisher
plugin=
"s3@0.5"
>
<hudson.plugins.s3.S3BucketPublisher
plugin=
"s3@0.5"
>
<profileName>
{{
JENKINS_ADMIN_S3_PROFILE.name
}}
</profileName>
<profileName>
{{
JENKINS_ADMIN_S3_PROFILE.name
}}
</profileName>
<entries>
<entries>
<hudson.plugins.s3.Entry>
<hudson.plugins.s3.Entry>
<bucket>
edx-jenkins-backups/{{JENKINS_ADMIN_NAME}}
</bucket>
<bucket>
edx-jenkins-backups/{{JENKINS_ADMIN_NAME}}
</bucket>
...
...
playbooks/roles/jenkins_admin/templates/edx/var/jenkins/jobs/build-ami/config.xml.j2
View file @
233e58d5
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
<hudson.plugins.git.UserRemoteConfig>
<hudson.plugins.git.UserRemoteConfig>
<name></name>
<name></name>
<refspec></refspec>
<refspec></refspec>
<url>
{{
JENKINS_ADMIN_CONFIGURATION_REPO
}}
</url>
<url>
{{
JENKINS_ADMIN_CONFIGURATION_REPO
}}
</url>
</hudson.plugins.git.UserRemoteConfig>
</hudson.plugins.git.UserRemoteConfig>
</userRemoteConfigs>
</userRemoteConfigs>
<branches>
<branches>
...
@@ -99,7 +99,7 @@
...
@@ -99,7 +99,7 @@
<hudson.plugins.git.UserRemoteConfig>
<hudson.plugins.git.UserRemoteConfig>
<name></name>
<name></name>
<refspec></refspec>
<refspec></refspec>
<url>
{{
JENKINS_ADMIN_CONFIGURATION_SECURE_REPO
}}
</url>
<url>
{{
JENKINS_ADMIN_CONFIGURATION_SECURE_REPO
}}
</url>
</hudson.plugins.git.UserRemoteConfig>
</hudson.plugins.git.UserRemoteConfig>
</userRemoteConfigs>
</userRemoteConfigs>
<branches>
<branches>
...
@@ -168,10 +168,10 @@ cd util/vpc-tools/
...
@@ -168,10 +168,10 @@ cd util/vpc-tools/
echo "$refs" > /var/tmp/$BUILD_ID-refs.yml
echo "$refs" > /var/tmp/$BUILD_ID-refs.yml
cat /var/tmp/$BUILD_ID-refs.yml
cat /var/tmp/$BUILD_ID-refs.yml
echo
"$vars"
> /var/tmp/$BUILD_ID-extra-vars.yml
echo
{{ vars }}
> /var/tmp/$BUILD_ID-extra-vars.yml
cat /var/tmp/$BUILD_ID-extra-vars.yml
cat /var/tmp/$BUILD_ID-extra-vars.yml
python -u abbey.py -p $play -t c1.medium -d $deployment -e $environment -i /edx/var/jenkins/.ssh/id_rsa -b $base_ami --vars /var/tmp/$BUILD_ID-extra-vars.yml --refs /var/tmp/$BUILD_ID-refs.yml -c $BUILD_NUMBER --configuration-version $configuration --configuration-secure-version $configuration_secure -k {{
JENKINS_ADMIN_EC2_KEY}} --configuration-secure-repo
"
{{JENKINS_ADMIN_CONFIGURATION_SECURE_REPO
}}
"
python -u abbey.py -p $play -t c1.medium -d $deployment -e $environment -i /edx/var/jenkins/.ssh/id_rsa -b $base_ami --vars /var/tmp/$BUILD_ID-extra-vars.yml --refs /var/tmp/$BUILD_ID-refs.yml -c $BUILD_NUMBER --configuration-version $configuration --configuration-secure-version $configuration_secure -k {{
JENKINS_ADMIN_EC2_KEY }} --configuration-secure-repo
"
{{ JENKINS_ADMIN_CONFIGURATION_SECURE_REPO
}}
"
</command>
</command>
<ignoreExitCode>
false
</ignoreExitCode>
<ignoreExitCode>
false
</ignoreExitCode>
</jenkins.plugins.shiningpanda.builders.VirtualenvBuilder>
</jenkins.plugins.shiningpanda.builders.VirtualenvBuilder>
...
...
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