Add barbican user for barbican-db-manage command
Change-Id: I26ee3260d1a54e455a45babe52e7e6229d1e366f
Related-Prod: PROD-26062
diff --git a/barbican/db/offline_sync.sls b/barbican/db/offline_sync.sls
index 8183277..727096b 100644
--- a/barbican/db/offline_sync.sls
+++ b/barbican/db/offline_sync.sls
@@ -5,6 +5,7 @@
barbican_syncdb:
cmd.run:
- name: barbican-db-manage upgrade
+ - runas: barbican
{%- if grains.get('noservices') or server.get('role', 'primary') == 'secondary' %}
- onlyif: /bin/false
{%- endif %}