From: Tom Hughes Date: Wed, 19 Feb 2014 09:04:00 +0000 (+0000) Subject: Add role for longma X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/39319c70a19a6d2576ac8d87acebd559de39bb53 Add role for longma --- diff --git a/cookbooks/networking/templates/default/shorewall-zones.erb b/cookbooks/networking/templates/default/shorewall-zones.erb index f9cf7b6db..cdeacf52c 100644 --- a/cookbooks/networking/templates/default/shorewall-zones.erb +++ b/cookbooks/networking/templates/default/shorewall-zones.erb @@ -20,3 +20,4 @@ ov:osm <%= @type %> hz:osm <%= @type %> bh:osm <%= @type %> dt:osm <%= @type %> +nc:osm <%= @type %> diff --git a/roles/longma.rb b/roles/longma.rb new file mode 100644 index 000000000..398f5b334 --- /dev/null +++ b/roles/longma.rb @@ -0,0 +1,39 @@ +name "longma" +description "Master role applied to longma" + +default_attributes( + :networking => { + :interfaces => { + :external_ipv4 => { + :interface => "eth0", + :role => :external, + :family => :inet, + :address => "140.110.240.7", + :prefix => "24", + :gateway => "140.110.240.254" + }, + :external_ipv6 => { + :interface => "eth0", + :role => :external, + :family => :inet6, + :address => "2001:e10:2000:240::7", + :prefix => "64", + :gateway => "2001:e10:2000:240::254" + } + } + }, + :squid => { + :cache_mem => "12500 MB", + :cache_dir => "coss /store/squid/coss-01 128000 block-size=8192 max-size=262144 membufs=80" + }, + :tilecache => { + :ip_bucket_refill => "6144", + :net_bucket_refill => "24576", + :tile_parent => "hsinchu.render.openstreetmap.org" + } +) + +run_list( + "role[nchc]", + "role[tilecache]" +) diff --git a/roles/nchc.rb b/roles/nchc.rb new file mode 100644 index 000000000..ebc9487bb --- /dev/null +++ b/roles/nchc.rb @@ -0,0 +1,23 @@ +name "nchc" +description "Role applied to all servers at NCHC" + +default_attributes( + :networking => { + :nameservers => [ "8.8.8.8", "8.8.4.4" ], + :roles => { + :external => { + :zone => "nc" + } + } + } +) + +override_attributes( + :ntp => { + :servers => [ "0.tw.pool.ntp.org", "1.tw.pool.ntp.org", "europe.pool.ntp.org" ] + } +) + +run_list( + "role[tw]" +) diff --git a/roles/tw.rb b/roles/tw.rb new file mode 100644 index 000000000..a52541dfc --- /dev/null +++ b/roles/tw.rb @@ -0,0 +1,10 @@ +name "tw" +description "Role applied to all servers located in Taiwan" + +override_attributes( + :country => "tw" +) + +run_list( + "role[base]" +)