]> git.openstreetmap.org Git - chef.git/commitdiff
Add role for cherufe
authorTom Hughes <tom@compton.nu>
Tue, 25 Sep 2018 13:50:40 +0000 (14:50 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 25 Sep 2018 13:53:44 +0000 (14:53 +0100)
cookbooks/networking/templates/default/shorewall-zones.erb
roles/altavoz.rb [new file with mode: 0644]
roles/cherufe.rb [new file with mode: 0644]
roles/cl.rb [new file with mode: 0644]

index ef126ade188bac79f54e8da443daf3308103e24e..45fb5faf3735f9965a6edebf53c046c1c3b88b8c 100644 (file)
@@ -39,3 +39,4 @@ grn:osm         <%= @type %>
 g5s:osm         <%= @type %>
 na:osm          <%= @type %>
 tnn:osm         <%= @type %>
+av:osm          <%= @type %>
diff --git a/roles/altavoz.rb b/roles/altavoz.rb
new file mode 100644 (file)
index 0000000..78f6712
--- /dev/null
@@ -0,0 +1,28 @@
+name "altavoz"
+description "Role applied to all servers at AltaVoz"
+
+default_attributes(
+  :hosted_by => "AltaVoz",
+  :location => "ViƱa del Mar, Chile",
+  :networking => {
+    :nameservers => [
+      "200.91.44.10",
+      "200.91.41.10"
+    ],
+    :roles => {
+      :external => {
+        :zone => "av"
+      }
+    }
+  }
+)
+
+override_attributes(
+  :ntp => {
+    :servers => ["0.cl.pool.ntp.org", "1.cl.pool.ntp.org", "america.pool.ntp.org"]
+  }
+)
+
+run_list(
+  "role[cl]"
+)
diff --git a/roles/cherufe.rb b/roles/cherufe.rb
new file mode 100644 (file)
index 0000000..ebf272e
--- /dev/null
@@ -0,0 +1,35 @@
+name "cherufe"
+description "Master role applied to cherufe"
+
+default_attributes(
+  :networking => {
+    :interfaces => {
+      :external_ipv4 => {
+        :interface => "ens18",
+        :role => :external,
+        :family => :inet,
+        :address => "200.91.44.37",
+        :prefix => "23",
+        :gateway => "200.91.44.1"
+      }
+    }
+  },
+  :squid => {
+    :cache_mem => "6000 MB",
+    :cache_dir => "coss /store/squid/coss-01 128000 block-size=8192 max-size=262144 membufs=80"
+  },
+  :tilecache => {
+    :tile_parent => "vinadelmar.render.openstreetmap.org",
+    :tile_siblings => [
+      "ascalon.openstreetmap.org",
+      "stormfly-02.openstreetmap.org",
+      "jakelong.openstreetmap.org"
+    ]
+  }
+)
+
+run_list(
+  "role[altavoz]",
+  "role[geodns]",
+  "role[tilecache]"
+)
diff --git a/roles/cl.rb b/roles/cl.rb
new file mode 100644 (file)
index 0000000..8686bd5
--- /dev/null
@@ -0,0 +1,10 @@
+name "cl"
+description "Role applied to all servers located in Chile"
+
+override_attributes(
+  :country => "cl"
+)
+
+run_list(
+  "role[base]"
+)