]> git.openstreetmap.org Git - chef.git/blob - cookbooks/dev/templates/default/phppgadmin.conf.erb
Remove some unused APT sources
[chef.git] / cookbooks / dev / templates / default / phppgadmin.conf.erb
1 <?php
2         // DO NOT EDIT - This file is being maintained by Chef
3
4         /**
5          * Central phpPgAdmin configuration.  As a user you may modify the
6          * settings here for your particular configuration.
7          *
8          * $Id: config.inc.php-dist,v 1.55 2008/02/18 21:10:31 xzilla Exp $
9          */
10
11 <% node[:postgresql][:clusters].sort.each_with_index do |cluster,index| -%>
12         $conf['servers'][<%= index %>]['desc'] = '<%= cluster[0] %>';
13         $conf['servers'][<%= index %>]['host'] = '127.0.0.1';
14         $conf['servers'][<%= index %>]['port'] = <%= cluster[1][:port] %>;
15         $conf['servers'][<%= index %>]['sslmode'] = 'allow';
16         $conf['servers'][<%= index %>]['defaultdb'] = 'template1';
17         $conf['servers'][<%= index %>]['pg_dump_path'] = '/usr/lib/postgresql/<%= cluster[1][:version] %>/bin/pg_dump';
18         $conf['servers'][<%= index %>]['pg_dumpall_path'] = '/usr/lib/postgresql/<%= cluster[1][:version] %>/bin/pg_dumpall';
19         $conf['servers'][<%= index %>]['slony_support'] = false;
20         $conf['servers'][<%= index %>]['slony_sql'] = '';
21 <% end -%>
22
23
24         // Example of groups definition.
25         // Groups allow administrators to logicaly group servers together under group nodes in the left browser tree
26         //
27         // The group '0' description
28         //$conf['srv_groups'][0]['desc'] = 'group one';
29         //
30         // Add here servers indexes belonging to the group '0' seperated by comma
31         //$conf['srv_groups'][0]['servers'] = '0,1,2'; 
32         //
33         // A server can belong to multi groups
34         //$conf['srv_groups'][1]['desc'] = 'group two';
35         //$conf['srv_groups'][1]['servers'] = '3,1';
36         
37
38         // Default language. E.g.: 'english', 'polish', etc.  See lang/ directory
39         // for all possibilities. If you specify 'auto' (the default) it will use 
40         // your browser preference.
41         $conf['default_lang'] = 'auto';
42
43         // AutoComplete uses AJAX interaction to list foreign key values 
44         // on insert fields. It currently only works on single column 
45         // foreign keys. You can choose one of the following values:
46         // 'default on' enables AutoComplete and turns it on by default.
47         // 'default off' enables AutoComplete but turns it off by default.
48         // 'disable' disables AutoComplete.
49         $conf['autocomplete'] = 'default on';
50         
51         // If extra login security is true, then logins via phpPgAdmin with no
52         // password or certain usernames (pgsql, postgres, root, administrator)
53         // will be denied. Only set this false once you have read the FAQ and
54         // understand how to change PostgreSQL's pg_hba.conf to enable
55         // passworded local connections.
56         $conf['extra_login_security'] = true;
57
58         // Only show owned databases?
59         // Note: This will simply hide other databases in the list - this does
60         // not in any way prevent your users from seeing other database by
61         // other means. (e.g. Run 'SELECT * FROM pg_database' in the SQL area.)
62         $conf['owned_only'] = false;
63
64         // Display comments on objects?  Comments are a good way of documenting
65         // a database, but they do take up space in the interface.
66         $conf['show_comments'] = true;
67
68         // Display "advanced" objects? Setting this to true will show 
69         // aggregates, types, operators, operator classes, conversions, 
70         // languages and casts in phpPgAdmin. These objects are rarely 
71         // administered and can clutter the interface.
72         $conf['show_advanced'] = false;
73
74         // Display "system" objects?
75         $conf['show_system'] = false;
76
77         // Display reports feature?  For this feature to work, you must
78         // install the reports database as explained in the INSTALL file.
79         $conf['show_reports'] = true;
80
81         // Database and table for reports
82         $conf['reports_db'] = 'phppgadmin';
83         $conf['reports_schema'] = 'public';
84         $conf['reports_table'] = 'ppa_reports';
85
86         // Only show owned reports?
87         // Note: This does not prevent people from accessing other reports by
88         // other means.
89         $conf['owned_reports_only'] = false;
90
91         // Minimum length users can set their password to.
92         $conf['min_password_length'] = 1;
93
94         // Width of the left frame in pixels (object browser)
95         $conf['left_width'] = 200;
96         
97         // Which look & feel theme to use
98         $conf['theme'] = 'default';
99         
100         // Show OIDs when browsing tables?
101         $conf['show_oids'] = false;
102         
103         // Max rows to show on a page when browsing record sets
104         $conf['max_rows'] = 30;
105
106         // Max chars of each field to display by default in browse mode
107         $conf['max_chars'] = 50;
108
109         // Send XHTML strict headers?
110         $conf['use_xhtml_strict'] = false;
111
112         // Base URL for PostgreSQL documentation.
113         // '%s', if present, will be replaced with the PostgreSQL version
114         // (e.g. 8.4 )
115         $conf['help_base'] = 'http://www.postgresql.org/docs/%s/interactive/';
116         
117         // Configuration for ajax scripts
118         // Time in seconds. If set to 0, refreshing data using ajax will be disabled (locks and activity pages)
119         $conf['ajax_refresh'] = 3;
120         
121         /*****************************************
122          * Don't modify anything below this line *
123          *****************************************/
124
125         $conf['version'] = 19;
126
127 ?>