<% end -%>
<% end -%>
<% end -%>
+<% unless @frontends.empty? && @backends.empty? -%>
# Configure compound graphs for www.openstreetmap.org
[www.openstreetmap]
memcached_multi_bytes.bytes_written.negative bytes_read
memcached_multi_bytes.bytes_written.label Traffic in (-) / out (+)
memcached_multi_bytes.bytes_written.cdef bytes_written,8,*
+<% end -%>
+<% unless @tilecaches.empty? -%>
# Configure compound graphs for tile.openstreetmap.org
[tile.openstreetmap]
squid_byte_hitrates.<%= tc[:name].tr("-", "_") %>_hits.label <%= tc[:name] %>
squid_byte_hitrates.<%= tc[:name].tr("-", "_") %>_hits.draw LINE1
<% end -%>
+<% end -%>
+<% unless @renderers.empty? -%>
# Configure compound graphs for render.openstreetmap.org
[render.openstreetmap]
renderd_zoom_time.zoomtime6.cdef zoomtime6,1000,/
renderd_zoom_time.zoomtime6.draw STACK
renderd_zoom_time.zoomtime6.info Time for Metatiles for z19 - z20
+<% end -%>
<% unless @geocoders.empty? -%>
# Configure compound graphs for nominatim.openstreetmap.org
--- /dev/null
+require "serverspec"
+
+# Required by serverspec
+set :backend, :exec
+
+describe package("apache2") do
+ it { should be_installed }
+end
+
+describe service("apache2") do
+ it { should be_enabled }
+ it { should be_running }
+end
+
+describe port(80) do
+ it { should be_listening }
+end
+
+describe port(443) do
+ it { should_not be_listening }
+end
--- /dev/null
+require "serverspec"
+
+# Required by serverspec
+set :backend, :exec
+
+describe package("rrdcached") do
+ it { should be_installed }
+end
+
+describe service("rrdcached") do
+ it { should be_enabled }
+ it { should be_running }
+end