Rework glance config files permissions
Remove the correct_permissions_files and correct_permissions_dirs
states.
Change-Id: I48d8248cab46db77cf152c1d9351958fb41aa983
Related-Prod: PROD-22092
diff --git a/glance/server.sls b/glance/server.sls
index 8a7830c..e94dd0f 100644
--- a/glance/server.sls
+++ b/glance/server.sls
@@ -420,14 +420,4 @@
{%- endif %}
{%- endif %}
-correct_permissions_files:
- cmd.run:
- - name: find /etc/glance/ -type f \( \! -perm 640 -o \! -user root -o \! -group glance \) -execdir chmod 640 {} + -execdir chown root:glance {} +
- - onlyif: find /etc/glance/ -type f \( \! -perm 640 -o \! -user root -o \! -group glance \) -printf found | grep -q found
-
-correct_permissions_dirs:
- cmd.run:
- - name: find /etc/glance/ -type d \( \! -perm 750 -o \! -user root -o \! -group glance \) -execdir chmod 750 {} + -execdir chown root:glance {} +
- - onlyif: find /etc/glance/ -type d \( \! -perm 750 -o \! -user root -o \! -group glance \) -printf found | grep -q found
-
{%- endif %}