From 64de5abe35e71ad85b971bcf9f99a0ea738a41e9 Mon Sep 17 00:00:00 2001 From: Fotis Gimian Date: Mon, 3 Jun 2013 19:39:41 +1000 Subject: 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. --- manifests/virtualenv.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'manifests') 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' ], } -- cgit v1.2.3