From: Tom Hughes Date: Tue, 17 Oct 2017 11:19:28 +0000 (+0100) Subject: Add role for komodo X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/2bdabd94d2080c7320c2716fc34db32bba8358cb Add role for komodo --- diff --git a/cookbooks/networking/templates/default/shorewall-zones.erb b/cookbooks/networking/templates/default/shorewall-zones.erb index 6b54a5930..01f819f1d 100644 --- a/cookbooks/networking/templates/default/shorewall-zones.erb +++ b/cookbooks/networking/templates/default/shorewall-zones.erb @@ -35,3 +35,4 @@ ovh:osm <%= @type %> ffr:osm <%= @type %> ixz:osm <%= @type %> grn:osm <%= @type %> +g5s:osm <%= @type %> diff --git a/roles/g5solutions.rb b/roles/g5solutions.rb new file mode 100644 index 000000000..b7985382c --- /dev/null +++ b/roles/g5solutions.rb @@ -0,0 +1,28 @@ +name "g5solutions" +description "Role applied to all servers at G5 Solutions" + +default_attributes( + :hosted_by => "G5 Solutions", + :location => "Indonesia", + :networking => { + :nameservers => [ + "8.8.8.8", + "8.8.4.4" + ], + :roles => { + :external => { + :zone => "g5s" + } + } + } +) + +override_attributes( + :ntp => { + :servers => ["0.id.pool.ntp.org", "1.id.pool.ntp.org", "asia.pool.ntp.org"] + } +) + +run_list( + "role[id]" +) diff --git a/roles/id.rb b/roles/id.rb new file mode 100644 index 000000000..3ddd34b6e --- /dev/null +++ b/roles/id.rb @@ -0,0 +1,10 @@ +name "id" +description "Role applied to all servers located in Indonesia" + +override_attributes( + :country => "id" +) + +run_list( + "role[base]" +) diff --git a/roles/komodo.rb b/roles/komodo.rb new file mode 100644 index 000000000..004ce50a8 --- /dev/null +++ b/roles/komodo.rb @@ -0,0 +1,33 @@ +name "komodo" +description "Master role applied to komodo" + +default_attributes( + :networking => { + :interfaces => { + :external_ipv4 => { + :interface => "enp0s3", + :role => :external, + :family => :inet, + :address => "103.253.107.131", + :prefix => "24", + :gateway => "103.253.107.1" + } + } + }, + :squid => { + :cache_mem => "12500 MB", + :cache_dir => "coss /store/squid/coss-01 128000 block-size=8192 max-size=262144 membufs=80" + }, + :tilecache => { + :tile_parent => "indonesia.render.openstreetmap.org", + :tile_siblings => [ + "longma.openstreetmap.org" + ] + } +) + +run_list( + "role[g5solutions]", + "role[geodns]", + "role[tilecache]" +)