Browse Source

Fix data_dir for 3.0 deployments

Jason DeTiberus 9 years ago
parent
commit
9e1bfdda77
1 changed files with 2 additions and 0 deletions
  1. 2 0
      roles/openshift_facts/library/openshift_facts.py

+ 2 - 0
roles/openshift_facts/library/openshift_facts.py

@@ -551,6 +551,8 @@ def set_deployment_facts_if_unset(facts):
             facts['common']['config_base'] = config_base
         if 'data_dir' not in facts['common']:
             data_dir = '/var/lib/origin'
+            if deployment_type in ['enterprise', 'online']:
+                data_dir = '/var/lib/openshift'
             facts['common']['data_dir'] = data_dir
 
     for role in ('master', 'node'):