Commit dd1dcee3 by Brian Beggs

Merge pull request #2965 from edx/bbeggs/go-server-pr-plugin

Add github PR plugin in to go-server.
parents 38b21c9c ea686fe8
......@@ -16,6 +16,7 @@ GO_SERVER_GROUP: "{{ GO_SERVER_USER }}"
GO_SERVER_VERSION: "16.1.0-2855"
GO_SERVER_HOME: "/var/lib/go-server"
GO_SERVER_CONF_HOME: "/etc/go"
GO_SERVER_PLUGIN_DIR: "{{ GO_SERVER_HOME }}/plugins/external/"
# Java version settings
GO_SERVER_ORACLEJDK_VERSION: "7u80"
......@@ -36,7 +37,13 @@ GO_SERVER_APT_PKGS: ["apache2-utils"]
GO_SERVER_OAUTH_LOGIN_VERSION: "1.2"
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_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_ADMIN_USERNAME: ""
......
......@@ -53,19 +53,24 @@
- name: create go-server plugin directory
file:
path: "{{ GO_SERVER_OAUTH_LOGIN_JAR_DESTINATION }}"
path: "{{ GO_SERVER_PLUGIN_DIR }}"
state: directory
mode: 0776
owner: "{{ GO_SERVER_USER }}"
group: "{{ GO_SERVER_GROUP }}"
- name: install go-server oauth plugin
- name: install go-server plugins
get_url:
url: "{{ GO_SERVER_OAUTH_LOGIN_JAR_URL }}"
dest: "{{ GO_SERVER_OAUTH_LOGIN_JAR_DESTINATION }}"
url: "{{ item.url }}"
dest: "{{ GO_SERVER_PLUGIN_DIR }}"
mode: 0776
owner: "{{ GO_SERVER_USER }}"
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
command: >
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment