Commit 21c24e8b by Feanil Patel Committed by GitHub

Merge pull request #3269 from edx/feanil/dont_bin_update_devstack

Don't install `/edx/bin/update` on devstacks.
parents c0f91f02 4f6a5d72
...@@ -22,7 +22,29 @@ ...@@ -22,7 +22,29 @@
- install - install
- install:app-requirements - install:app-requirements
- name: Create update and show-repo-heads script - name: Create update script
template:
dest: "{{ edx_ansible_app_dir}}/update"
src: "update.j2"
owner: "{{ edx_ansible_user }}"
group: "{{ edx_ansible_user }}"
mode: "0755"
when: devstack is not defined or not devstack
tags:
- install
- install:configuration
- name: Create symlinks for update script
file:
src: "{{ edx_ansible_app_dir }}/update"
dest: "{{ COMMON_BIN_DIR }}/update"
state: link
when: devstack is not defined or not devstack
tags:
- install
- install:configuration
- name: Create utility scripts
template: template:
dest: "{{ edx_ansible_app_dir}}/{{ item.dest }}" dest: "{{ edx_ansible_app_dir}}/{{ item.dest }}"
src: "{{ item.src }}" src: "{{ item.src }}"
...@@ -30,19 +52,17 @@ ...@@ -30,19 +52,17 @@
group: "{{ edx_ansible_user }}" group: "{{ edx_ansible_user }}"
mode: "0755" mode: "0755"
with_items: with_items:
- { src: 'update.j2', dest: 'update' }
- { src: 'show-repo-heads.j2', dest: 'show-repo-heads' } - { src: 'show-repo-heads.j2', dest: 'show-repo-heads' }
tags: tags:
- install - install
- install:configuration - install:configuration
- name: Create symlinks for update and show-repo-heads scripts - name: Create symlinks for utility scripts
file: file:
src: "{{ edx_ansible_app_dir }}/{{ item }}" src: "{{ edx_ansible_app_dir }}/{{ item }}"
dest: "{{ COMMON_BIN_DIR }}/{{ item }}" dest: "{{ COMMON_BIN_DIR }}/{{ item }}"
state: link state: link
with_items: with_items:
- update
- show-repo-heads - show-repo-heads
tags: tags:
- install - install
......
...@@ -26,11 +26,6 @@ if [ -n "$OPENEDX_RELEASE" ]; then ...@@ -26,11 +26,6 @@ if [ -n "$OPENEDX_RELEASE" ]; then
-e xqueue_version=$OPENEDX_RELEASE \ -e xqueue_version=$OPENEDX_RELEASE \
" "
CONFIG_VER=$OPENEDX_RELEASE CONFIG_VER=$OPENEDX_RELEASE
# Need to ensure that the configuration repo is updated
# The vagrant-devstack.yml playbook will also do this, but only
# after loading the playbooks into memory. If these are out of date,
# this can cause problems (e.g. looking for templates that no longer exist).
/edx/bin/update configuration $CONFIG_VER
else else
CONFIG_VER="master" CONFIG_VER="master"
fi fi
......
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