dev/modules/sysconfig/manifests/virtualenv.pp
author cavaliet
Thu, 13 Nov 2014 16:27:11 +0100
changeset 157 a3b764f393a0
parent 129 3a7a8607d395
permissions -rw-r--r--
Added tag V00.06.06 for changeset 60917da03414

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