From c0719abe0fb574b96d583ea991131dd2db797178 Mon Sep 17 00:00:00 2001 From: Paul Norman Date: Thu, 12 Sep 2024 11:51:11 -0700 Subject: [PATCH] Add cmok server This is for the new vector tile server that will be running at CloudFerro --- roles/cmok.rb | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 roles/cmok.rb diff --git a/roles/cmok.rb b/roles/cmok.rb new file mode 100644 index 000000000..09bbffd5c --- /dev/null +++ b/roles/cmok.rb @@ -0,0 +1,38 @@ +name "cmok" +description "Master role applied to cmok" + +default_attributes( + :networking => { + :intefaces => { + :external => { + :interface => "ens3", + :role => :external, + :inet => { + :prefix => "24", + :gateway => "10.0.0.1", + :public_address => "64.225.143.127" + } + } + } + }, + :postgresql => { + :settings => { + :defaults => { + :effective_cache_size => "400GB" + } + } + }, + :sysctl => { + :postgres => { + :comment => "Increase shared memory for postgres", + :parameters => { + "kernel.shmmax" => 9 * 1024 * 1024 * 1024, + "kernel.shmall" => 9 * 1024 * 1024 * 1024 / 4096 + } + } + } +) + +run_list( + "role[cloudferro-waw3-2]" +) -- 2.39.5