dev/modules/sysconfig/manifests/virtualenv.pp
author cavaliet
Fri, 03 Oct 2014 11:39:46 +0200
changeset 145 80aa2d85fd01
parent 129 3a7a8607d395
permissions -rw-r--r--
Added tag V00.06.03 for changeset 1a2754d155aa

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']
            }
    
}