]> git.openstreetmap.org Git - chef.git/blobdiff - roles/gateway.rb
Add roles from the private repository
[chef.git] / roles / gateway.rb
diff --git a/roles/gateway.rb b/roles/gateway.rb
new file mode 100644 (file)
index 0000000..653d686
--- /dev/null
@@ -0,0 +1,18 @@
+name "gateway"
+description "Role applied to all network gateways"
+
+default_attributes(
+  :sysctl => {
+    :network_forwarding => {
+      :comment => "Enable forwarding",
+      :parameters => { "net.ipv4.ip_forward" => "1" }
+    }
+  },
+  :exim => {
+    :relay_from_hosts => [ "10.0.0.0/8"]
+  }
+)
+
+run_list(
+  "recipe[bind]"
+)