title: Is there a way to use config-default.xml globally in Oozie?
body: <p>From the <a href="https://oozie.apache.org/docs/4.1.0/WorkflowFunctionalSpec.html#a4_Parameterization_of_Workflows" rel="nofollow noreferrer">documentation</a>, <code>config-default.xml</code> must be presented in the workflow workspace.</p>
  
  <pre><code>- /workflow.xml
  - /config-default.xml
  |
  - /lib/ (*.jar;*.so)
  </code></pre>
  
  <h2>The problem</h2>
  
  <p>I've created a custom Oozie action and try to add default values for <code>retry-max</code> and <code>retry-interval</code> to all the custom actions.
  So my <code>workflow.xml</code> will look like this:</p>
  
  <pre><code>&lt;workflow-app xmlns="uri:oozie:workflow:0.3" name="wf-name"&gt;
  &lt;action name="custom-action" retry-max="${default_retry_max}" retry-interval="${default_retry_interval}"&gt;
  &lt;/action&gt;
  </code></pre>
  
  <p><code>config-default.xml</code> file contains the values of <code>default_retry_max</code> and <code>default_retry_interval</code>.</p>
  
  <h2>What I've tried</h2>
  
  <ol>
  <li><p>Putting <code>config-default.xml</code> to every workflow workspace. This works, but the problem is there will be this file everywhere.</p></li>
  <li><p>Setting <code>oozie.service.LiteWorkflowStoreService.user.retry.max</code> and <code>oozie.service.LiteWorkflowStoreService.user.retry.inteval</code> also works, but it would affect all action types.</p></li>
  <li><p>I've also looked at <a href="https://oozie.apache.org/docs/4.1.0/WorkflowFunctionalSpec.html#a19_Global_Configurations" rel="nofollow noreferrer">Global Configurations</a>, but it doesn't solve this problem.</p></li>
  </ol>
  
  <p>I think there should be a way to put <code>config-default.xml</code> to <code>oozie.libpath</code> and only those workflows that use this <code>libpath</code> will be affected.</p>