Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
Kill edx-east (#4596)
Browse files Browse the repository at this point in the history
* Remove edx-east folder, replace with symlink.
  • Loading branch information
coryleeio authored Jun 6, 2018
1 parent 5629ea5 commit 3e51c86
Show file tree
Hide file tree
Showing 123 changed files with 25 additions and 55 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ vagrant_ansible_inventory_default

## Make artifacts
.build
playbooks/edx-east/travis-test.yml
playbooks/travis-test.yml

## Local virtualenv
/venv
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ install:

env:
- MAKE_TARGET=test.syntax SHARD=0 SHARDS=1
- MAKE_TARGET=test.edx_east_roles SHARD=0 SHARDS=1
- MAKE_TARGET=test.playbooks SHARD=0 SHARDS=1
- MAKE_TARGET=docker.test.shard SHARD=0 SHARDS=3
- MAKE_TARGET=docker.test.shard SHARD=1 SHARDS=3
- MAKE_TARGET=docker.test.shard SHARD=2 SHARDS=3
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions playbooks/ansible.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
jinja2_extensions=jinja2.ext.do
host_key_checking = False
roles_path=../../ansible-roles/roles:../../ansible-private/roles:../../ansible-roles/
retries=5
ansible_managed=This file is created and updated by ansible, edit at your peril

[ssh_connection]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions playbooks/edx-east
9 changes: 0 additions & 9 deletions playbooks/edx-east/README.rst

This file was deleted.

14 changes: 0 additions & 14 deletions playbooks/edx-east/ansible.cfg

This file was deleted.

1 change: 0 additions & 1 deletion playbooks/edx-east/callback_plugins

This file was deleted.

1 change: 0 additions & 1 deletion playbooks/edx-east/ec2.py

This file was deleted.

1 change: 0 additions & 1 deletion playbooks/edx-east/group_vars

This file was deleted.

1 change: 0 additions & 1 deletion playbooks/edx-east/inventory.ini

This file was deleted.

1 change: 0 additions & 1 deletion playbooks/edx-east/library

This file was deleted.

1 change: 0 additions & 1 deletion playbooks/edx-east/roles

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 0 additions & 2 deletions playbooks/group_vars/tag_environment_prod
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---
secure_dir: '../../configuration-secure/ansible'
# this indicates the path to site-specific (with precedence)
# things like nginx template files
local_dir: '../../configuration-secure/ansible/local'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion playbooks/roles/edx_ansible/templates/update.j2
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,5 @@ if [[ -z ${repos_to_cmd[$1]} ]]; then
exit 1
fi

cd {{ edx_ansible_code_dir }}/playbooks/edx-east
cd {{ edx_ansible_code_dir }}/playbooks
eval "sudo ${repos_to_cmd["$1"]} $verbose"
2 changes: 1 addition & 1 deletion playbooks/roles/edx_notes_api/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# For a complete picture of dependencies, see:
#
# configuration/playbooks/role/edx-notes-api/meta/main.yml
# configuration/playbooks/edx-east/notes.yml
# configuration/notes.yml
#
# Example play:
#
Expand Down
4 changes: 2 additions & 2 deletions playbooks/sample_vars/test-mongo.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Example ansible commands
# Three node replica set
# ansible-playbook -i '203.0.113.12,203.0.113.20,203.0.113.68' -u ubuntu edx-east/mongo_3_2.yml -e@sample_vars/test-mongo.yml
# ansible-playbook -i '203.0.113.12,203.0.113.20,203.0.113.68' -u ubuntu mongo_3_2.yml -e@sample_vars/test-mongo.yml
# Single node
# ansible-playbook -i '203.0.113.12' -u ubuntu edx-east/mongo_3_2.yml -e@sample_vars/test-mongo.yml
# ansible-playbook -i '203.0.113.12' -u ubuntu mongo_3_2.yml -e@sample_vars/test-mongo.yml

# Passwords and relication keys in this file are examples and must be changed.
# You must change any variable with the string "CHANGEME" in it
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ test.help:
@echo ' test.syntax.json Run syntax tests on .json files'
@echo ' test.syntax.yml Run syntax tests on .yml files'
@echo ' test.syntax.jinja Run syntax tests on .j2 files'
@echo ' test.edx_east_roles Run validation on edx-east roles'
@echo ' test.playbooks Run validation on playbooks'
@echo ''

test: test.syntax test.edx_east_roles
test: test.syntax test.playbooks

test.syntax: test.syntax.yml test.syntax.json test.syntax.dockerfiles

Expand All @@ -30,10 +30,10 @@ test.syntax.json/%:
test.syntax.dockerfiles:
python util/check_dockerfile_coverage.py "$(images)"

test.edx_east_roles:
tests/test_edx_east_roles.sh
test.playbooks:
tests/test_playbooks.sh

clean: test.clean

test.clean:
rm -rf playbooks/edx-east/test_output
rm -rf playbooks/test_output
2 changes: 1 addition & 1 deletion tests/test_edx_east_roles.sh → tests/test_playbooks.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
set -e

ROOT_DIR=$PWD
cd playbooks/edx-east
cd playbooks
ROLE_DIRS=$(/bin/ls -d roles/*)
cat <<EOF >travis-test.yml
- name: Play to test all roles
Expand Down
2 changes: 1 addition & 1 deletion util/baked_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ fi

mkdir -p $WORKSPACE/baked-config-secure/${E_D}

cd ../playbooks/edx-east/
cd ../playbooks/
ansible-playbook -vvv -c local -i 'localhost,' --tags edxapp_cfg ./edxapp.yml ${VARS} -e edxapp_user=$(whoami) -e common_web_group=$(whoami) -e edxapp_app_dir=$WORKSPACE/baked-config-secure/${E_D} -e edxapp_code_dir=$WORKSPACE/edx-platform -s --ask-sudo-pass --diff
2 changes: 1 addition & 1 deletion util/install/ansible-bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ if [[ "true" == "${RUN_ANSIBLE}" ]]; then
git checkout ${CONFIGURATION_VERSION}
make requirements

cd "${CONFIGURATION_DIR}"/playbooks/edx-east
cd "${CONFIGURATION_DIR}"/playbooks
"${PYTHON_BIN}"/ansible-playbook edx_ansible.yml -i '127.0.0.1,' -c local -e "configuration_version=${CONFIGURATION_VERSION}"

# cleanup
Expand Down
2 changes: 1 addition & 1 deletion util/jenkins/ansible-provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ dns_name="${dns_name,,}"
deploy_host="${dns_name}.${dns_zone}"
ssh-keygen -f "/var/lib/jenkins/.ssh/known_hosts" -R "$deploy_host"

cd playbooks/edx-east
cd playbooks

cat << EOF > $extra_vars_file
edx_platform_version: $edxapp_version
Expand Down
4 changes: 2 additions & 2 deletions util/jenkins/build-ami.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ if [[ "$use_blessed" == "true" ]]; then
blessed_params="--blessed"
fi

if [[ -e "configuration/playbooks/edx-east/${play}.yml" ]]; then
playbookdir_params="--playbook-dir configuration/playbooks/edx-east"
if [[ -e "configuration/playbooks/${play}.yml" ]]; then
playbookdir_params="--playbook-dir configuration/playbooks"
else
playbookdir_params="--playbook-dir ansible-private"
fi
Expand Down
2 changes: 1 addition & 1 deletion util/jenkins/run-ansible.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if [[
exit 1
fi

cd $WORKSPACE/configuration/playbooks/edx-east
cd $WORKSPACE/configuration/playbooks

ansible_extra_vars+=" -e serial_count=$serial_count -e elb_pre_post=$elb_pre_post"

Expand Down
2 changes: 1 addition & 1 deletion util/packer/jenkins_worker.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"sudo bash ./ansible-bootstrap.sh" ]
}, {
"type": "ansible-local",
"playbook_file": "../../playbooks/edx-east/jenkins_worker.yml",
"playbook_file": "../../playbooks/jenkins_worker.yml",
"playbook_dir": "../../playbooks",
"command": ". {{user `venv_dir`}}/bin/activate && ansible-playbook",
"inventory_groups": "jenkins_worker",
Expand Down
2 changes: 1 addition & 1 deletion util/packer/jenkins_worker_android.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"sudo bash ./ansible-bootstrap.sh" ]
}, {
"type": "ansible-local",
"playbook_file": "../../playbooks/edx-east/jenkins_worker_android.yml",
"playbook_file": "../../playbooks/jenkins_worker_android.yml",
"playbook_dir": "../../playbooks",
"command": ". {{user `venv_dir`}}/bin/activate && ansible-playbook",
"inventory_groups": "jenkins_worker",
Expand Down
2 changes: 1 addition & 1 deletion util/packer/jenkins_worker_loadtest.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"sudo bash ./ansible-bootstrap.sh" ]
}, {
"type": "ansible-local",
"playbook_file": "../../playbooks/edx-east/jenkins_worker_loadtest_driver.yml",
"playbook_file": "../../playbooks/jenkins_worker_loadtest_driver.yml",
"playbook_dir": "../../playbooks",
"command": ". {{user `venv_dir`}}/bin/activate && ansible-playbook",
"inventory_groups": "jenkins_worker",
Expand Down
2 changes: 1 addition & 1 deletion util/packer/jenkins_worker_simple.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"sudo bash ./ansible-bootstrap.sh" ]
}, {
"type": "ansible-local",
"playbook_file": "../../playbooks/edx-east/jenkins_worker.yml",
"playbook_file": "../../playbooks/jenkins_worker.yml",
"playbook_dir": "../../playbooks",
"command": ". {{user `venv_dir`}}/bin/activate && ansible-playbook",
"inventory_groups": "jenkins_worker",
Expand Down
1 change: 0 additions & 1 deletion util/parsefiles_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ roles_paths:
- playbooks/roles
aws_plays_paths:
- playbooks
- playbooks/edx-east
docker_plays_paths:
- docker/plays
weights:
Expand Down
2 changes: 1 addition & 1 deletion util/vpc-tools/abbey.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def parse_args():
metavar="PLAY", required=True)
parser.add_argument('--playbook-dir',
help='directory to find playbooks in',
default='configuration/playbooks/edx-east',
default='configuration/playbooks',
metavar="PLAYBOOKDIR", required=False)
parser.add_argument('-d', '--deployment', metavar="DEPLOYMENT",
required=True)
Expand Down

0 comments on commit 3e51c86

Please sign in to comment.