Skip to content

Commit 5beafb0

Browse files
committed
Fix puppet dependencies so machine comes up correctly
Also adjust migration test script.
1 parent 4b99f64 commit 5beafb0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

sites/puppet/manifests/site.pp

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"python-memcache",
1515
"postgresql-server-dev-9.1",
1616
"libmysqlclient-dev",
17+
"git-core",
1718
]
1819
package {
1920
$packages: ensure => installed,
@@ -78,6 +79,7 @@
7879
}
7980
python::pip::requirements {"/vagrant/requirements_vagrant.txt":
8081
venv => $virtualenv,
82+
require => Python::Venv::Isolate[$virtualenv]
8183
}
8284
exec {"install-oscar":
8385
command => "$virtualenv/bin/python /vagrant/setup.py develop",

sites/sandbox/test_migrations.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ mysql -u root --password=root_password -e "DROP DATABASE IF EXISTS oscar_vagrant
77

88
# Postgres
99
sudo -u postgres psql -c "DROP DATABASE IF EXISTS oscar_vagrant"
10-
sudo -u postgres psql -c "CREATE DATABASE oscar_vagrant ENCODING UTF8"
10+
sudo -u postgres psql -c "CREATE DATABASE oscar_vagrant"
1111
./manage.py syncdb --noinput --settings=settings_postgres > /dev/null
1212
./manage.py migrate --noinput --settings=settings_postgres

0 commit comments

Comments
 (0)