]> git.openstreetmap.org Git - chef.git/commitdiff
Add role for necrosan
authorTom Hughes <tom@compton.nu>
Mon, 7 Jan 2019 15:04:23 +0000 (15:04 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 7 Jan 2019 15:04:23 +0000 (15:04 +0000)
roles/milkywan.rb [new file with mode: 0644]
roles/necrosan.rb [new file with mode: 0644]
roles/nepomuk.rb
roles/noomoahk.rb
roles/norbert.rb

diff --git a/roles/milkywan.rb b/roles/milkywan.rb
new file mode 100644 (file)
index 0000000..dbfae9f
--- /dev/null
@@ -0,0 +1,30 @@
+name "milkywan"
+description "Role applied to all servers at MilkyWan"
+
+default_attributes(
+  :accounts => {
+    :users => {
+      :milkywan => { :status => :administrator }
+    }
+  },
+  :hosted_by => "MilkyWan",
+  :location => "France",
+  :networking => {
+    :nameservers => ["130.117.11.11", "2a0b:cbc0:42::42"],
+    :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/necrosan.rb b/roles/necrosan.rb
new file mode 100644 (file)
index 0000000..f042dd7
--- /dev/null
@@ -0,0 +1,44 @@
+name "necrosan"
+description "Master role applied to necrosan"
+
+default_attributes(
+  :networking => {
+    :interfaces => {
+      :external_ipv4 => {
+        :interface => "ens18",
+        :role => :external,
+        :family => :inet,
+        :address => "80.67.167.77",
+        :prefix => "32",
+        :gateway => "10.0.6.1"
+      },
+      :external_ipv6 => {
+        :interface => "ens18",
+        :role => :external,
+        :family => :inet6,
+        :address => "2a0b:cbc0:110d:1::1c",
+        :prefix => "64",
+        :gateway => "2a0b:cbc0:110d:1::1"
+      }
+    }
+  },
+  :squid => {
+    :cache_mem => "7500 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",
+      "ladon.openstreetmap.org",
+      "culebre.openstreetmap.org"
+    ]
+  }
+)
+
+run_list(
+  "role[milkywan]",
+  "role[tilecache]"
+)
index 362bc513a5136b3781c9addf89244b0f2d2918ac..46a199b94d823718f3defddfc0c3950b1eabbce4 100644 (file)
@@ -62,6 +62,7 @@ default_attributes(
     :tile_siblings => [
       "noomoahk.openstreetmap.org",
       "norbert.openstreetmap.org",
+      "necrosan.openstreetmap.org",
       "trogdor.openstreetmap.org",
       "katie.openstreetmap.org",
       "konqi.openstreetmap.org",
index ebeea8409784e8f40f6f50d7f7e5416c0d3454a7..61876296a4877c47f5717b46dd1035ea4e4cbf7e 100644 (file)
@@ -31,6 +31,7 @@ default_attributes(
     :tile_siblings => [
       "nepomuk.openstreetmap.org",
       "norbert.openstreetmap.org",
+      "necrosan.openstreetmap.org",
       "ladon.openstreetmap.org",
       "culebre.openstreetmap.org"
     ]
index d9dcd9365612161d912655da8385cdfcd952b34a..d90f8602dc60177e4916778a12d5cb256e094dde 100644 (file)
@@ -31,6 +31,7 @@ default_attributes(
     :tile_siblings => [
       "noomoahk.openstreetmap.org",
       "nepomuk.openstreetmap.org",
+      "necrosan.openstreetmap.org",
       "ladon.openstreetmap.org",
       "culebre.openstreetmap.org"
     ]