Add ability to disable intialise accounts
Related-PROD:20906
Change-Id: Ic3a70e515c967fcbb0b946716077c61957a81897
diff --git a/gerrit/server/service.sls b/gerrit/server/service.sls
index 61f511f..7ec4456 100644
--- a/gerrit/server/service.sls
+++ b/gerrit/server/service.sls
@@ -209,6 +209,8 @@
- file: gerrit_server_service_symlink
- cmd: gerrit_server_initial_index
+{%- if not server.get('initial_accounts_disable', False) %}
+
{%- set initial_accounts_queries = [
"insert into ACCOUNTS values (NULL, 'admin', NULL, NULL, 'N', NULL, NULL, NULL, NULL, 25, 'N', 'N', 'Y', 'N', NULL, 'Y', 'N', 'admin@ci.localdomain', '2015-05-28 11:00:30.001', 1)",
"insert into ACCOUNT_GROUP_MEMBERS values (1, 1)",
@@ -235,6 +237,7 @@
- file: gerrit_server_configured
{%- endfor %}
+{%- endif %}
gerrit_server_configured:
file.touch: