]> git.openstreetmap.org Git - chef.git/commitdiff
Add role for pummelzacken
authorTom Hughes <tom@compton.nu>
Mon, 2 Jun 2014 23:04:30 +0000 (00:04 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 2 Jun 2014 23:04:30 +0000 (00:04 +0100)
roles/pummelzacken.rb [new file with mode: 0644]

diff --git a/roles/pummelzacken.rb b/roles/pummelzacken.rb
new file mode 100644 (file)
index 0000000..b172ce0
--- /dev/null
@@ -0,0 +1,43 @@
+name "pummelzacken"
+description "Master role applied to pummelzacken"
+
+default_attributes(
+  :networking => {
+    :interfaces => {
+      :internal_ipv4 => {
+        :interface => "em1",
+        :role => :internal,
+        :family => :inet,
+        :address => "10.0.0.20"
+      }
+    }
+  },
+  :postgresql => {
+    :settings => {
+      :defaults => {
+        :shared_buffers => "24GB",
+        :work_mem => "160MB",
+        :maintenance_work_mem => "10GB",
+        :random_page_cost => "1.5",
+        :effective_cache_size => "48GB"
+      }
+    }
+  },
+  :nominatim => {
+    :fpm_pools => {
+        :www => {
+            :pm => "dynamic",
+            :max_children => "70"
+        },
+        :bulk => {
+            :pm => "static",
+            :max_children => "10"
+        }
+    }
+  }
+)
+
+run_list(
+  "role[ucl-internal]",
+  "role[nominatim]"
+)