summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorFotis Gimian <fgimiansoftware@gmail.com>2013-06-03 19:39:41 +1000
committerFotis Gimian <fgimiansoftware@gmail.com>2013-06-03 19:39:41 +1000
commit64de5abe35e71ad85b971bcf9f99a0ea738a41e9 (patch)
treed91f9da8c79aeed8aaf65ea7e09a91731be3dff5 /manifests
parenta0e9b8c1958966d0d783f1d71b7b5fe3be7ba02a (diff)
Specifically looked for the activate script when creating a virtualenv since this is created last. This ensures that a half-created virtualenv will be detected and corrected by Puppet.
Diffstat (limited to 'manifests')
-rw-r--r--manifests/virtualenv.pp2
1 files changed, 1 insertions, 1 deletions
diff --git a/manifests/virtualenv.pp b/manifests/virtualenv.pp
index fc0f45b..9547e27 100644
--- a/manifests/virtualenv.pp
+++ b/manifests/virtualenv.pp
@@ -88,7 +88,7 @@ define python::virtualenv (
exec { "python_virtualenv_${venv_dir}":
command => "mkdir -p ${venv_dir} ${proxy_command} && virtualenv -p `which ${python}` ${system_pkgs_flag} ${venv_dir} && ${venv_dir}/bin/pip install ${pypi_index} ${proxy_flag} --upgrade ${distribute_pkg} pip",
user => $owner,
- creates => $venv_dir,
+ creates => "${venv_dir}/bin/activate",
path => [ '/bin', '/usr/bin', '/usr/sbin' ],
}