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
dd1dcee3
Commit
dd1dcee3
authored
Apr 25, 2016
by
Brian Beggs
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2965 from edx/bbeggs/go-server-pr-plugin
Add github PR plugin in to go-server.
parents
38b21c9c
ea686fe8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
5 deletions
+17
-5
playbooks/roles/go-server/defaults/main.yml
+8
-1
playbooks/roles/go-server/tasks/main.yml
+9
-4
No files found.
playbooks/roles/go-server/defaults/main.yml
View file @
dd1dcee3
...
@@ -16,6 +16,7 @@ GO_SERVER_GROUP: "{{ GO_SERVER_USER }}"
...
@@ -16,6 +16,7 @@ GO_SERVER_GROUP: "{{ GO_SERVER_USER }}"
GO_SERVER_VERSION
:
"
16.1.0-2855"
GO_SERVER_VERSION
:
"
16.1.0-2855"
GO_SERVER_HOME
:
"
/var/lib/go-server"
GO_SERVER_HOME
:
"
/var/lib/go-server"
GO_SERVER_CONF_HOME
:
"
/etc/go"
GO_SERVER_CONF_HOME
:
"
/etc/go"
GO_SERVER_PLUGIN_DIR
:
"
{{
GO_SERVER_HOME
}}/plugins/external/"
# Java version settings
# Java version settings
GO_SERVER_ORACLEJDK_VERSION
:
"
7u80"
GO_SERVER_ORACLEJDK_VERSION
:
"
7u80"
...
@@ -36,7 +37,13 @@ GO_SERVER_APT_PKGS: ["apache2-utils"]
...
@@ -36,7 +37,13 @@ GO_SERVER_APT_PKGS: ["apache2-utils"]
GO_SERVER_OAUTH_LOGIN_VERSION
:
"
1.2"
GO_SERVER_OAUTH_LOGIN_VERSION
:
"
1.2"
GO_SERVER_OAUTH_LOGIN_MD5
:
"
31ad9ad1fe08452f73c56a44b035ee91"
GO_SERVER_OAUTH_LOGIN_MD5
:
"
31ad9ad1fe08452f73c56a44b035ee91"
GO_SERVER_OAUTH_LOGIN_JAR_URL
:
"
https://github.com/gocd-contrib/gocd-oauth-login/releases/download/v{{
GO_SERVER_OAUTH_LOGIN_VERSION
}}/github-oauth-login-{{
GO_SERVER_OAUTH_LOGIN_VERSION
}}.jar"
GO_SERVER_OAUTH_LOGIN_JAR_URL
:
"
https://github.com/gocd-contrib/gocd-oauth-login/releases/download/v{{
GO_SERVER_OAUTH_LOGIN_VERSION
}}/github-oauth-login-{{
GO_SERVER_OAUTH_LOGIN_VERSION
}}.jar"
GO_SERVER_OAUTH_LOGIN_JAR_DESTINATION
:
"
{{
GO_SERVER_HOME
}}/plugins/external/"
# gocd github poller
# https://github.com/ashwanthkumar/gocd-build-github-pull-requests
GO_SERVER_GITHUB_PR_PLUGIN_VERSION
:
"
1.2.3"
GO_SERVER_GITHUB_PR_PLUGIN_JAR_URL
:
"
https://github.com/ashwanthkumar/gocd-build-github-pull-requests/releases/download/v{{
GO_SERVER_GITHUB_PR_PLUGIN_VERSION
}}/github-pr-poller-{{
GO_SERVER_GITHUB_PR_PLUGIN_VERSION
}}.jar"
GO_SERVER_GITHUB_PR_PLUGIN_MD5
:
"
557dfd97b243de87fce4c5b48e455bb6"
# go-server credentials
# go-server credentials
GO_SERVER_ADMIN_USERNAME
:
"
"
GO_SERVER_ADMIN_USERNAME
:
"
"
...
...
playbooks/roles/go-server/tasks/main.yml
View file @
dd1dcee3
...
@@ -53,19 +53,24 @@
...
@@ -53,19 +53,24 @@
-
name
:
create go-server plugin directory
-
name
:
create go-server plugin directory
file
:
file
:
path
:
"
{{
GO_SERVER_
OAUTH_LOGIN_JAR_DESTINATION
}}"
path
:
"
{{
GO_SERVER_
PLUGIN_DIR
}}"
state
:
directory
state
:
directory
mode
:
0776
mode
:
0776
owner
:
"
{{
GO_SERVER_USER
}}"
owner
:
"
{{
GO_SERVER_USER
}}"
group
:
"
{{
GO_SERVER_GROUP
}}"
group
:
"
{{
GO_SERVER_GROUP
}}"
-
name
:
install go-server
oauth plugin
-
name
:
install go-server
plugins
get_url
:
get_url
:
url
:
"
{{
GO_SERVER_OAUTH_LOGIN_JAR_URL
}}"
url
:
"
{{
item.url
}}"
dest
:
"
{{
GO_SERVER_
OAUTH_LOGIN_JAR_DESTINATION
}}"
dest
:
"
{{
GO_SERVER_
PLUGIN_DIR
}}"
mode
:
0776
mode
:
0776
owner
:
"
{{
GO_SERVER_USER
}}"
owner
:
"
{{
GO_SERVER_USER
}}"
group
:
"
{{
GO_SERVER_GROUP
}}"
group
:
"
{{
GO_SERVER_GROUP
}}"
# uncomment ansible has been upgraded to 2.0+
# checksum=md5:{{ item.md5 }}
with_items
:
-
{
url
:
"
{{
GO_SERVER_OAUTH_LOGIN_JAR_URL
}}"
,
md5
:
"
{{
GO_SERVER_OAUTH_LOGIN_MD5
}}"
}
-
{
url
:
"
{{
GO_SERVER_GITHUB_PR_PLUGIN_JAR_URL
}}"
,
md5
:
"
{{
GO_SERVER_GITHUB_PR_PLUGIN_MD5
}}"
}
-
name
:
generate line for go-server password file for admin user
-
name
:
generate line for go-server password file for admin user
command
:
>
command
:
>
...
...
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