]> git.openstreetmap.org Git - chef.git/blob - roles/yevaud.rb
Update carto stylesheet to v2.10.0
[chef.git] / roles / yevaud.rb
1 name "yevaud"
2 description "Master role applied to yevaud"
3
4 default_attributes(
5   :devices => {
6     :osdisktune1 => {
7       :comment => "Tune os disk",
8       :type => "block",
9       :bus => "scsi",
10       :serial => "20004d927fffff800",
11       :attrs => {
12         "queue/scheduler" => "deadline",
13         "queue/nr_requests" => "512"
14       }
15     },
16     :disktune2 => {
17       :comment => "Tune database array",
18       :type => "block",
19       :bus => "scsi",
20       :serial => "20004d927fffff802",
21       :attrs => {
22         "queue/scheduler" => "deadline",
23         "queue/nr_requests" => "512"
24       }
25     },
26     :disktune3 => {
27       :comment => "Tune os disk",
28       :type => "block",
29       :bus => "scsi",
30       :serial => "20004d927fffff803",
31       :attrs => {
32         "queue/scheduler" => "deadline",
33         "queue/nr_requests" => "512"
34       }
35     },
36     :ssdtune1 => {
37       :comment => "Tune ssd disk",
38       :type => "block",
39       :bus => "ata",
40       :serial => "INTEL_SSDSA2CW600G3_CVPR111401HP600FGN",
41       :attrs => {
42         "queue/scheduler" => "deadline",
43         "queue/nr_requests" => "512"
44       }
45     }
46   },
47   :munin => {
48     :plugins => {
49       :cpu => {
50         :system => { 
51           :warning => 500,
52           :critical => 600
53         }
54       },
55       :load => {
56         :load => { 
57           :warning => 150,
58           :critical => 200
59         }
60       },
61       :ipmi_fans => {
62         :contacts => "null",
63       },
64       :ipmi_temp => {
65         :contacts => "null",
66       },
67       :sensors_fan => {
68         :contacts => "null"
69       },
70       :sensors_temp => {
71         :contacts => "null"
72       },
73       :sensors_volt => {
74         :contacts => "null"
75       }
76     }
77   },
78   :networking => {
79     :interfaces => {
80       :internal_ipv4 => {
81         :interface => "eth0",
82         :role => :internal,
83         :family => :inet,
84         :address => "10.0.0.15"
85       },
86       :external_ipv4 => {
87         :interface => "eth1",
88         :role => :external,
89         :family => :inet,
90         :address => "128.40.168.104"
91       }
92     }
93   },
94   :postgresql => {
95     :versions => [ "9.1" ],
96     :settings => {
97       :defaults => {
98         :shared_buffers => "3GB",
99         :maintenance_work_mem => "7144MB",
100         :effective_cache_size => "8GB"
101       }
102     }
103   },
104   :sysctl => {
105     :postgres => {
106       :comment => "Increase shared memory for postgres",
107       :parameters => { 
108         "kernel.shmmax" => 4 * 1024 * 1024 * 1024,
109         "kernel.shmall" => 4 * 1024 * 1024 * 1024 / 4096
110       }
111     }
112   },
113   :tile => {
114     :node_file => "/store/database/nodes",
115     :styles => {
116       :default => {
117         :tile_directories => [
118           { :name => "/store/tiles/default-low", :min_zoom => 0, :max_zoom => 16 },
119           { :name => "/store/tiles/default-high", :min_zoom => 17, :max_zoom => 19 }
120         ]
121       }
122     }
123   }
124 )
125
126 run_list(
127   "role[ucl-internal]",
128   "role[tile]"
129 )