From: Tom Hughes Date: Thu, 19 Dec 2013 13:04:47 +0000 (+0000) Subject: Add role for simurgh X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/11bbd7e0b3bc8427d7df4cdcafcbdee9af266763 Add role for simurgh --- diff --git a/cookbooks/networking/templates/default/shorewall-zones.erb b/cookbooks/networking/templates/default/shorewall-zones.erb index 47e7ee0af..f9cf7b6db 100644 --- a/cookbooks/networking/templates/default/shorewall-zones.erb +++ b/cookbooks/networking/templates/default/shorewall-zones.erb @@ -19,3 +19,4 @@ ly:osm <%= @type %> ov:osm <%= @type %> hz:osm <%= @type %> bh:osm <%= @type %> +dt:osm <%= @type %> diff --git a/roles/az.rb b/roles/az.rb new file mode 100644 index 000000000..037dcb422 --- /dev/null +++ b/roles/az.rb @@ -0,0 +1,10 @@ +name "az" +description "Role applied to all servers located in Azerbaijan" + +override_attributes( + :country => "az" +) + +run_list( + "role[base]" +) diff --git a/roles/delta.rb b/roles/delta.rb new file mode 100644 index 000000000..84c3600ac --- /dev/null +++ b/roles/delta.rb @@ -0,0 +1,23 @@ +name "delta" +description "Role applied to all servers at Delta Telecom" + +default_attributes( + :networking => { + :nameservers => [ "94.20.20.20", "8.8.8.8", "8.8.4.4" ], + :roles => { + :external => { + :zone => "dt" + } + } + } +) + +override_attributes( + :ntp => { + :servers => [ "0.az.pool.ntp.org", "1.az.pool.ntp.org", "europe.pool.ntp.org" ] + } +) + +run_list( + "role[az]" +) diff --git a/roles/simurgh.rb b/roles/simurgh.rb new file mode 100644 index 000000000..acf989730 --- /dev/null +++ b/roles/simurgh.rb @@ -0,0 +1,29 @@ +name "simurgh" +description "Master role applied to simurgh" + +default_attributes( + :networking => { + :interfaces => { + :external_ipv4 => { + :interface => "eth0", + :role => :external, + :family => :inet, + :address => "94.20.20.55", + :prefix => "24", + :gateway => "94.20.20.1" + } + } + }, + :squid => { + :cache_mem => "6400 MB", + :cache_dir => "coss /store/squid/coss-01 128000 block-size=8192 max-size=262144 membufs=80" + }, + :tilecache => { + :tile_parent => "baku.render.openstreetmap.org" + } +) + +run_list( + "role[delta]", + "role[tilecache]" +)