Commit 809170c9 by John Jarvis

Merge pull request #1746 from edx/jarv/fix-cert-checkout

change the repo for certificates and fix checkout
parents 1428f8ff b98c4f37
...@@ -35,7 +35,7 @@ CERTS_LOCAL_PRIVATE_KEY: "example-private-key.txt" ...@@ -35,7 +35,7 @@ CERTS_LOCAL_PRIVATE_KEY: "example-private-key.txt"
# This defaults to the public certificates repo which is # This defaults to the public certificates repo which is
# used for open-edx # used for open-edx
CERTS_REPO: "https://github.com/edx/read-only-certificate-code" CERTS_REPO: "https://github.com/edx/edx-certificates"
CERTS_NGINX_PORT: 18090 CERTS_NGINX_PORT: 18090
CERTS_WEB_ROOT: "{{ certs_data_dir }}/www-data" CERTS_WEB_ROOT: "{{ certs_data_dir }}/www-data"
CERTS_URL: "http://localhost:{{ CERTS_NGINX_PORT }}" CERTS_URL: "http://localhost:{{ CERTS_NGINX_PORT }}"
......
...@@ -53,6 +53,16 @@ ...@@ -53,6 +53,16 @@
environment: environment:
GIT_SSH: "{{ certs_git_ssh }}" GIT_SSH: "{{ certs_git_ssh }}"
register: certs_checkout register: certs_checkout
when: CERTS_GIT_IDENTITY != "none"
notify: restart certs
- name: checkout certificates repo into {{ certs_code_dir }}
git: >
dest={{ certs_code_dir }} repo={{ CERTS_REPO }} version={{ certs_version }}
accept_hostkey=yes
sudo_user: "{{ certs_user }}"
register: certs_checkout
when: CERTS_GIT_IDENTITY == "none"
notify: restart certs notify: restart certs
- name: remove read-only ssh key for the certs repo - name: remove read-only ssh key for the certs repo
......
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