]> git.openstreetmap.org Git - chef.git/commitdiff
Add role for naga
authorTom Hughes <tom@compton.nu>
Tue, 3 Dec 2019 19:24:19 +0000 (19:24 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 3 Dec 2019 19:37:57 +0000 (19:37 +0000)
roles/fullsave.rb [new file with mode: 0644]
roles/naga.rb [new file with mode: 0644]

diff --git a/roles/fullsave.rb b/roles/fullsave.rb
new file mode 100644 (file)
index 0000000..5341819
--- /dev/null
@@ -0,0 +1,25 @@
+name "fullsave"
+description "Role applied to all servers at FullSave"
+
+default_attributes(
+  :hosted_by => "FullSave",
+  :location => "Toulouse, France",
+  :networking => {
+    :nameservers => ["141.0.202.202", "141.0.202.203"],
+    :roles => {
+      :external => {
+        :zone => "osm"
+      }
+    }
+  }
+)
+
+override_attributes(
+  :ntp => {
+    :servers => ["0.fr.pool.ntp.org", "1.fr.pool.ntp.org", "europe.pool.ntp.org"]
+  }
+)
+
+run_list(
+  "role[fr]"
+)
diff --git a/roles/naga.rb b/roles/naga.rb
new file mode 100644 (file)
index 0000000..8c09f2d
--- /dev/null
@@ -0,0 +1,38 @@
+name "naga"
+description "Master role applied to naga"
+
+default_attributes(
+  :hardware => {
+    :shm_size => "38g"
+  },
+  :networking => {
+    :interfaces => {
+      :external_ipv4 => {
+        :interface => "eth0",
+        :role => :external,
+        :family => :inet,
+        :address => "185.116.130.151",
+        :prefix => "24",
+        :gateway => "185.116.130.151"
+      }
+    }
+  },
+  :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 => "france.render.openstreetmap.org"
+  }
+)
+
+run_list(
+  "role[fullsave]",
+  "role[tilecache]"
+)