]> git.openstreetmap.org Git - chef.git/commitdiff
Add role for culebre
authorTom Hughes <tom@compton.nu>
Sun, 9 Oct 2016 16:37:08 +0000 (17:37 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 9 Oct 2016 16:37:08 +0000 (17:37 +0100)
cookbooks/networking/templates/default/shorewall-zones.erb
roles/culebre.rb [new file with mode: 0644]
roles/es.rb [new file with mode: 0644]
roles/unizar.rb [new file with mode: 0644]

index c1ba829fe9a8d83eea41912f4b080b57f22836d0..345ebd8605414c5a7a87a6f4a0b78fd3e86e4609 100644 (file)
@@ -30,3 +30,4 @@ ex:osm                <%= @type %>
 dh:osm         <%= @type %>
 aws:osm                <%= @type %>
 ds:osm         <%= @type %>
 dh:osm         <%= @type %>
 aws:osm                <%= @type %>
 ds:osm         <%= @type %>
+uz:osm          <%= @type %>
diff --git a/roles/culebre.rb b/roles/culebre.rb
new file mode 100644 (file)
index 0000000..502816b
--- /dev/null
@@ -0,0 +1,43 @@
+name "culebre"
+description "Master role applied to culebre"
+
+default_attributes(
+  :networking => {
+    :interfaces => {
+      :external_ipv4 => {
+        :interface => "ens3",
+        :role => :external,
+        :family => :inet,
+        :address => "155.210.4.103",
+        :prefix => "28",
+        :gateway => "155.210.4.110"
+      },
+      :internal_ipv4 => {
+        :interface => "ens4",
+        :role => :internal,
+        :family => :inet,
+        :address => "10.148.97.151",
+        :prefix => "24"
+      }
+    }
+  },
+  :squid => {
+    :cache_mem => "6100 MB",
+    :cache_dir => "coss /store/squid/coss-01 80000 block-size=8192 max-size=262144 membufs=80"
+  },
+  :tilecache => {
+    :tile_parent => "london.render.openstreetmap.org",
+    :tile_siblings => [
+      "trogdor.openstreetmap.org",
+      "katie.openstreetmap.org",
+      "konqi.openstreetmap.org",
+      "ridgeback.openstreetmap.org",
+      "gorynych.openstreetmap.org"
+    ]
+  }
+)
+
+run_list(
+  "role[unizar]",
+  "role[tilecache]"
+)
diff --git a/roles/es.rb b/roles/es.rb
new file mode 100644 (file)
index 0000000..4c66e53
--- /dev/null
@@ -0,0 +1,10 @@
+name "es"
+description "Role applied to all servers located in Spain"
+
+override_attributes(
+  :country => "es"
+)
+
+run_list(
+  "role[base]"
+)
diff --git a/roles/unizar.rb b/roles/unizar.rb
new file mode 100644 (file)
index 0000000..1d91a06
--- /dev/null
@@ -0,0 +1,23 @@
+name "unizar"
+description "Role applied to all servers at University of Zaragoza"
+
+default_attributes(
+  :accounts => {
+    :users => {
+    }
+  },
+  :hosted_by => "University of Zaragoza",
+  :location => "Zaragoza, Spain",
+  :networking => {
+    :nameservers => ["155.210.12.9", "155.210.3.12"],
+    :roles => {
+      :external => {
+        :zone => "uz"
+      }
+    }
+  }
+)
+
+run_list(
+  "role[es]"
+)