]> git.openstreetmap.org Git - chef.git/commitdiff
Add role for naga
authorTom Hughes <tom@compton.nu>
Mon, 14 Jan 2019 17:25:24 +0000 (17:25 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 14 Jan 2019 17:25:24 +0000 (17:25 +0000)
roles/naga.rb [new file with mode: 0644]
roles/proxgroup.rb [new file with mode: 0644]

diff --git a/roles/naga.rb b/roles/naga.rb
new file mode 100644 (file)
index 0000000..8045a51
--- /dev/null
@@ -0,0 +1,37 @@
+name "naga"
+description "Master role applied to naga"
+
+default_attributes(
+  :networking => {
+    :interfaces => {
+      :external_ipv4 => {
+        :interface => "ens18",
+        :role => :external,
+        :family => :inet,
+        :address => "185.216.27.232",
+        :prefix => "24",
+        :gateway => "185.216.27.253"
+      }
+    }
+  },
+  :squid => {
+    :cache_mem => "12500 MB",
+    :cache_dir => "coss /store/squid/coss-01 128000 block-size=8192 max-size=262144 membufs=80"
+  },
+  :tilecache => {
+    :tile_parent => "france.render.openstreetmap.org",
+    :tile_siblings => [
+      "noomoahk.openstreetmap.org",
+      "nepomuk.openstreetmap.org",
+      "norbert.openstreetmap.org",
+      "necrosan.openstreetmap.org",
+      "ladon.openstreetmap.org",
+      "culebre.openstreetmap.org"
+    ]
+  }
+)
+
+run_list(
+  "role[proxgroup]",
+  "role[tilecache]"
+)
diff --git a/roles/proxgroup.rb b/roles/proxgroup.rb
new file mode 100644 (file)
index 0000000..31b7dc5
--- /dev/null
@@ -0,0 +1,25 @@
+name "proxgroup"
+description "Role applied to all servers at ProxGroup"
+
+default_attributes(
+  :hosted_by => "ProxGroup",
+  :location => "Paris, France",
+  :networking => {
+    :nameservers => ["8.8.8.8", "8.8.4.4"],
+    :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]"
+)