This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script assumes that the git repository is already cloned | |
# App specifics | |
EDXAPP_USER="edxapp" | |
EDXAPP_VENV="/edx/app/edxapp/venvs/edxapp" | |
EDXAPP_DIR="/edx/app/edxapp/edx-platform" | |
# Git specifics | |
export GIT_KEY="/edx/app/course_git_backup/git_backup_deploy" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Update libc6 and reboot | |
hosts: all | |
sudo: yes | |
# Comment out to apply to all servers | |
serial: 1 | |
tasks: | |
- name: "Install packages and update cache" | |
apt: name="{{ item }}" state=latest update_cache=yes | |
with_items: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This script is for devstack | |
INTERACTIVE=true | |
while getopts "y" opt; do | |
case "$opt" in | |
y) | |
INTERACTIVE=false | |
esac | |
done | |
if [ "$INTERACTIVE" = true ] ; then |