Added initial support for MySQL and PostgreSQL database for storeconfigs

This commit is contained in:
Ossi Salmi 2012-06-05 16:26:21 +03:00
parent 6f5f738833
commit 5d4ce37211
2 changed files with 44 additions and 2 deletions

View file

@ -22,7 +22,16 @@
<% if puppet_storeconfigs != 'none' -%>
# Use storeconfigs
storeconfigs = true
<% if puppet_storeconfigs == 'thin' %> thin_storeconfigs = true<% end %>
dbadapter = sqlite3
<% if puppet_storeconfigs == 'thin' -%>
thin_storeconfigs = true
<% end -%>
dbadapter = <%= puppet_dbadapter %>
<% if puppet_dbadapter == 'sqlite3' -%>
dblocation = /srv/puppet/storeconfigs/storeconfigs.db
<% else -%>
dbserver = <%= puppet_dbserver %>
dbname = <%= puppet_dbname %>
dbuser = <%= puppet_dbuser %>
dbpassword = <%= puppet_dbpassword %>
<% end -%>
<% end -%>