]> git.openstreetmap.org Git - chef.git/blob - cookbooks/munin/recipes/server.rb
Remove munin
[chef.git] / cookbooks / munin / recipes / server.rb
1 #
2 # Cookbook:: munin
3 # Recipe:: server
4 #
5 # Copyright:: 2010, OpenStreetMap Foundation
6 #
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
10 #
11 #     https://www.apache.org/licenses/LICENSE-2.0
12 #
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
18 #
19
20 include_recipe "apache"
21
22 file "/etc/default/rrdcached" do
23   action :delete
24 end
25
26 directory "/var/lib/munin/rrdcached" do
27   action :delete
28   recursive true
29 end
30
31 service "rrdcached" do
32   action [:stop, :disable]
33 end
34
35 file "/etc/munin/munin.conf" do
36   action :delete
37 end
38
39 directory "/srv/munin.openstreetmap.org" do
40   action :delete
41   recursive true
42 end
43
44 ssl_certificate "munin.openstreetmap.org" do
45   action :delete
46 end
47
48 apache_site "munin.openstreetmap.org" do
49   action :delete
50 end
51
52 file "/etc/cron.daily/munin-backup" do
53   action :delete
54 end
55
56 package "munin" do
57   action :purge
58 end
59
60 package "rrdcached" do
61   action :purge
62 end
63
64 package "libcgi-fast-perl" do
65   action :purge
66 end