@define('CONST_Postgresql_Version', '<%= @postgres_version %>');
@define('CONST_Postgis_Version', '<%= node[:nominatim][:database][:postgis] %>');
+@define('CONST_Osm2pgsql_Flatnode_File', '<%= node[:nominatim][:flatnode_file] %>');
+
+<% node[:nominatim][:tablespaces].each do |part,name| -%>
+@define('CONST_Tablespace_<%= part %>', '<%= name %>');
+<% end -%>
+
@define('CONST_Log_File', '/var/log/nominatim/query.log');
@define('CONST_Log_DB', false);
},
:nominatim => {
:enabled => true,
- :repository => "git://git.openstreetmap.org/nominatim.git"
+ :repository => "git://git.openstreetmap.org/nominatim.git",
+ :tablespaces => {
+ "Osm2pgsql_Data" => "aux",
+ "Osm2pgsql_Index" => "data",
+ "Place_Data" => "ssd2",
+ "Place_Index" => "ssd1",
+ "Address_Data" => "ssd2",
+ "Address_Index" => "ssd1",
+ "Search_Data" => "ssd1",
+ "Search_Index" => "ssd1",
+ "Aux_Data" => "aux",
+ "Aux_Index" => "aux",
+ }
}
)