File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4444# [*log_dir*]
4545# String. Log directory.
4646#
47+ # [*timeout*]
48+ # The maximum time in seconds the "pip install" command should take. Default: 1800
49+ #
4750# === Examples
4851#
4952# python::requirements { '/var/www/project1/requirements.txt':
7073 $extra_pip_args = ' ' ,
7174 $fix_requirements_owner = true ,
7275 $log_dir = ' /tmp' ,
76+ $timeout = 1800,
7377) {
7478
7579 if $virtualenv == ' system' and ($owner != ' root' or $group != ' root' ) {
122126 provider => shell,
123127 command => " ${pip_env} --log ${log} /pip.log install ${proxy_flag} ${src_flag} -r ${requirements} ${extra_pip_args} " ,
124128 refreshonly => !$forceupdate ,
125- timeout => 1800 ,
129+ timeout => $timeout ,
126130 cwd => $cwd ,
127131 user => $owner ,
128132 subscribe => File [$requirements ],
Original file line number Diff line number Diff line change 1212python::requirements { '/var/www/project1/requirements.txt' :
1313 virtualenv => ' system' ,
1414 proxy => ' http://proxy.domain.com:3128' ,
15+ timeout => 2400,
1516}
You can’t perform that action at this time.
0 commit comments