biemond-oradb icon indicating copy to clipboard operation
biemond-oradb copied to clipboard

timeout parameter

Open pmpetit opened this issue 6 years ago • 1 comments

Hello, Do you think we could add a parameter timeout, to change "timeout => 0" value

exec { "oracle database ${title}":
  command     => $command,
  creates     => "${oracle_base}/admin/${db_name}",
  timeout     => 0,
  path        => $exec_path,
  user        => 'root',
  group       => 'root',
  cwd         => $oracle_base,
  environment => ["USER=${user}",],
  logoutput   => true,

}

to prevent infinite waiting for puppet agent, that can impact some other configuration ?

I will do it and propose a Pull Request

Thanks

pmpetit avatar Aug 23 '18 15:08 pmpetit

Hi,

Is this code for a db based on a dbt template because that 1 can take ages. And maybe we should make it a parameter with 0 as default value which you can override.

Thanks

biemond avatar Aug 23 '18 18:08 biemond