2         // DO NOT EDIT - This file is being maintained by Chef
 
   5          * Central phpPgAdmin configuration.  As a user you may modify the
 
   6          * settings here for your particular configuration.
 
   8          * $Id: config.inc.php-dist,v 1.55 2008/02/18 21:10:31 xzilla Exp $
 
  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'] = '';
 
  24         // Example of groups definition.
 
  25         // Groups allow administrators to logicaly group servers together under group nodes in the left browser tree
 
  27         // The group '0' description
 
  28         //$conf['srv_groups'][0]['desc'] = 'group one';
 
  30         // Add here servers indexes belonging to the group '0' seperated by comma
 
  31         //$conf['srv_groups'][0]['servers'] = '0,1,2'; 
 
  33         // A server can belong to multi groups
 
  34         //$conf['srv_groups'][1]['desc'] = 'group two';
 
  35         //$conf['srv_groups'][1]['servers'] = '3,1';
 
  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';
 
  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';
 
  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;
 
  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;
 
  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;
 
  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;
 
  74         // Display "system" objects?
 
  75         $conf['show_system'] = false;
 
  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;
 
  81         // Database and table for reports
 
  82         $conf['reports_db'] = 'phppgadmin';
 
  83         $conf['reports_schema'] = 'public';
 
  84         $conf['reports_table'] = 'ppa_reports';
 
  86         // Only show owned reports?
 
  87         // Note: This does not prevent people from accessing other reports by
 
  89         $conf['owned_reports_only'] = false;
 
  91         // Minimum length users can set their password to.
 
  92         $conf['min_password_length'] = 1;
 
  94         // Width of the left frame in pixels (object browser)
 
  95         $conf['left_width'] = 200;
 
  97         // Which look & feel theme to use
 
  98         $conf['theme'] = 'default';
 
 100         // Show OIDs when browsing tables?
 
 101         $conf['show_oids'] = false;
 
 103         // Max rows to show on a page when browsing record sets
 
 104         $conf['max_rows'] = 30;
 
 106         // Max chars of each field to display by default in browse mode
 
 107         $conf['max_chars'] = 50;
 
 109         // Send XHTML strict headers?
 
 110         $conf['use_xhtml_strict'] = false;
 
 112         // Base URL for PostgreSQL documentation.
 
 113         // '%s', if present, will be replaced with the PostgreSQL version
 
 115         $conf['help_base'] = 'http://www.postgresql.org/docs/%s/interactive/';
 
 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;
 
 121         /*****************************************
 
 122          * Don't modify anything below this line *
 
 123          *****************************************/
 
 125         $conf['version'] = 19;