From 2d6d56f75a35f748f19411b043b7fc430bdb3c6e Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 25 Oct 2020 18:45:39 +0000 Subject: [PATCH] Add role for firnen --- roles/epix.rb | 17 +++++++++++++++++ roles/firnen.rb | 38 ++++++++++++++++++++++++++++++++++++++ roles/pl.rb | 11 +++++++++++ 3 files changed, 66 insertions(+) create mode 100644 roles/epix.rb create mode 100644 roles/firnen.rb create mode 100644 roles/pl.rb diff --git a/roles/epix.rb b/roles/epix.rb new file mode 100644 index 000000000..76b6de50f --- /dev/null +++ b/roles/epix.rb @@ -0,0 +1,17 @@ +name "epix" +description "Role applied to all servers at EPIX" + +default_attributes( + :hosted_by => "EPIX", + :location => "Katowice, Poland" +) + +override_attributes( + :ntp => { + :servers => ["0.pl.pool.ntp.org", "1.pl.pool.ntp.org", "europe.pool.ntp.org"] + } +) + +run_list( + "role[pl]" +) diff --git a/roles/firnen.rb b/roles/firnen.rb new file mode 100644 index 000000000..edd924e5d --- /dev/null +++ b/roles/firnen.rb @@ -0,0 +1,38 @@ +name "firnen" +description "Master role applied to firnen" + +default_attributes( + :hardware => { + :shm_size => "36g" + }, + :networking => { + :interfaces => { + :external_ipv4 => { + :interface => "enp6s0", + :role => :external, + :family => :inet, + :address => "188.241.28.82", + :prefix => "29", + :gateway => "188.241.28.81" + } + } + }, + :squid => { + :version => 4, + :cache_mem => "32768 MB", + :cache_dir => [ + "rock /store/squid/rock-4096 20000 swap-timeout=200 slot-size=4096 max-size=3996", + "rock /store/squid/rock-8192 25000 swap-timeout=200 slot-size=8192 min-size=3997 max-size=8092", + "rock /store/squid/rock-16384 35000 swap-timeout=200 slot-size=16384 min-size=8093 max-size=16284", + "rock /store/squid/rock-32768 45000 swap-timeout=200 slot-size=32768 min-size=16285 max-size=262144" + ] + }, + :tilecache => { + :tile_parent => "katowice.render.openstreetmap.org" + } +) + +run_list( + "role[epix]", + "role[tilecache]" +) diff --git a/roles/pl.rb b/roles/pl.rb new file mode 100644 index 000000000..ad8a61d0f --- /dev/null +++ b/roles/pl.rb @@ -0,0 +1,11 @@ +name "pl" +description "Role applied to all servers located in Poland" + +override_attributes( + :country => "pl", + :timezone => "Europe/Warsaw" +) + +run_list( + "role[base]" +) -- 2.39.5