Fix endif position introduced by bootstrap flag

This patch fixes endifposition introduced by 66fa4ec04be7df60dd84d14ce8185da86f21c0c2

Change-Id: I04db9b98c709f0769489fcdd26830b725b11bea3
Related-Prod: PROD-24920
diff --git a/galera/master.sls b/galera/master.sls
index 299eb4e..2081ca0 100644
--- a/galera/master.sls
+++ b/galera/master.sls
@@ -214,6 +214,7 @@
     - file: galera_config
 
 {%- endif %}
+{%- endif %}
 
 galera_config:
   file.managed:
@@ -234,4 +235,3 @@
   {%- endif %}
 
 {%- endif %}
-{%- endif %}
diff --git a/galera/slave.sls b/galera/slave.sls
index c9da051..5420424 100644
--- a/galera/slave.sls
+++ b/galera/slave.sls
@@ -213,6 +213,7 @@
     - file: galera_config
 
 {%- endif %}
+{%- endif %}
 
 galera_config:
   file.managed:
@@ -233,5 +234,4 @@
   {%- endif %}
 
 {%- endif %}
-{%- endif %}