Skip to content

Commit

Permalink
Merge remote-tracking branch 'github/pull/688'
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Aug 30, 2024
2 parents a8e08a1 + 24310af commit d996203
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
11 changes: 11 additions & 0 deletions roles/cloudferro-waw3-2.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name "cloudferro-waw3-2"
description "Role applied to all servers at CloudFerro WAW3-2"

run_list(
"role[pl]",
"role[cloudferro]"
)

default_attributes(
:location => "Warsaw"
)
6 changes: 6 additions & 0 deletions roles/cloudferro.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name "cloudferro"
description "Role applied to all servers at Cloudferro"

default_attributes(
:hosted_by => "CloudFerro"
)
40 changes: 40 additions & 0 deletions roles/wawel.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name "wawel"
description "Master role applied to wawel"

default_attributes(
:postgresql => {
:settings => {
:defaults => {
:effective_cache_size => "16GB"
}
}
},
:sysctl => {
:postgres => {
:comment => "Increase shared memory for postgres",
:parameters => {
"kernel.shmmax" => 9 * 1024 * 1024 * 1024,
"kernel.shmall" => 9 * 1024 * 1024 * 1024 / 4096
}
}
},
:tile => {
:database => {
:cluster => "16/main",
:postgis => "3"
},
:mapnik => "3.1",
:styles => {
:default => {
:tile_directories => [
{ :name => "/store/tiles/default", :min_zoom => 0, :max_zoom => 19 }
]
}
}
}
)

run_list(
"role[cloudferro-waw3-2]",
"role[tile]"
)

0 comments on commit d996203

Please sign in to comment.