class sysconfig::virtualenv (
$path_to_virtualenv = hiera('sysconfig::params::path_to_virtualenv', $sysconfig::params::path_to_virtualenv )
) inherits sysconfig::params {
exec {
'create_python_env_script':
command => '/usr/bin/python /srv/spel/virtualenv/web/create_python_env.py',
timeout => 2400,
returns => [ 0, 100 ],
provider => 'shell';
'project_boot_script':
command => "python /srv/spel/virtualenv/web/project-boot.py ${path_to_virtualenv}",
timeout => 2400,
returns => [ 0, 100 ],
provider => 'shell',
require => Exec['create_python_env_script']
}
}