]> git.openstreetmap.org Git - chef.git/blob - roles/lyonix.rb
Convert fail2ban_jail to an LWRP
[chef.git] / roles / lyonix.rb
1 name "lyonix"
2 description "Role applied to all servers at LyonIX"
3
4 default_attributes(
5   :accounts => {
6     :users => {
7       :lyonix => { :status => :administrator }
8     }
9   },
10   :networking => {
11     :nameservers => ["77.95.64.205", "77.95.64.206", "8.8.8.8", "8.8.4.4"],
12     :roles => {
13       :external => {
14         :zone => "ly"
15       }
16     }
17   },
18   :snmpd => {
19     :clients => ["77.95.64.0/24", "77.95.70.0/24"],
20     :community => "lyonix",
21     :location => "LYON",
22     :contact => "noc@lyonix.net"
23   }
24 )
25
26 override_attributes(
27   :ntp => {
28     :servers => ["0.fr.pool.ntp.org", "1.fr.pool.ntp.org", "europe.pool.ntp.org"]
29   }
30 )
31
32 run_list(
33   "role[fr]",
34   "recipe[snmpd]"
35 )