Fix puppet provisioning failing on first attempt

This commit is contained in:
Mauro Doglio 2014-05-27 15:52:36 +01:00
Родитель 9a6679725e
Коммит 1d1897193f
1 изменённых файлов: 7 добавлений и 6 удалений

Просмотреть файл

@ -7,14 +7,15 @@ class dev{
}
exec{"init_master_db":
cwd => '/home/vagrant/treeherder-service',
command => "${VENV_DIR}/bin/python manage.py init_master_db --noinput",
cwd => "${PROJ_DIR}",
command => "bash -c 'source /etc/profile.d/treeherder.sh; ${VENV_DIR}/bin/python manage.py init_master_db --noinput'",
user => "${APP_USER}",
}
exec{"init_datasources":
cwd => '/home/vagrant/treeherder-service',
command => "${VENV_DIR}/bin/python manage.py init_datasources",
cwd => "${PROJ_DIR}",
command => "bash -c 'source /etc/profile.d/treeherder.sh; ${VENV_DIR}/bin/python manage.py init_datasources'",
require => Exec["init_master_db"],
user => "${APP_USER}",
}
}
}