]> git.openstreetmap.org Git - chef.git/commitdiff
Add initial configuration for OSUOSL machines
authorTom Hughes <tom@compton.nu>
Thu, 10 Jul 2014 12:42:33 +0000 (13:42 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 10 Jul 2014 12:42:48 +0000 (13:42 +0100)
cookbooks/networking/templates/default/shorewall-zones.erb
roles/osuosl.rb [new file with mode: 0644]
roles/stormfly-01.rb [new file with mode: 0644]
roles/stormfly-02.rb [new file with mode: 0644]

index cdeacf52c32744ef9dba444d07b9ae3cacbf926c..048d5ae76d96142424a9ca154b4ee4e8d2d50c2f 100644 (file)
@@ -21,3 +21,4 @@ hz:osm                <%= @type %>
 bh:osm         <%= @type %>
 dt:osm         <%= @type %>
 nc:osm         <%= @type %>
 bh:osm         <%= @type %>
 dt:osm         <%= @type %>
 nc:osm         <%= @type %>
+osuosl:osm     <%= @type %>
diff --git a/roles/osuosl.rb b/roles/osuosl.rb
new file mode 100644 (file)
index 0000000..285c829
--- /dev/null
@@ -0,0 +1,29 @@
+name "osuosl"
+description "Role applied to all servers at OSUOSL"
+
+default_attributes(
+  :networking => {
+    :nameservers => [ "8.8.8.8", "8.8.4.4" ],
+    :roles => {
+      :internal => {
+        :inet => {
+          :prefix => "22",
+          :gateway => "10.0.0.0"
+        }
+      },
+      :external => {
+        :zone => "osuosl"
+      }
+    }
+  }
+)
+
+override_attributes(
+  :ntp => {
+    :servers => [ "ntp.osuosl.org" ]
+  }
+)
+
+run_list(
+  "role[us]"
+)
diff --git a/roles/stormfly-01.rb b/roles/stormfly-01.rb
new file mode 100644 (file)
index 0000000..8ee92c4
--- /dev/null
@@ -0,0 +1,19 @@
+name "stormfly-01"
+description "Master role applied to stormfly-01"
+
+default_attributes(
+  :networking => {
+    :interfaces => {
+      :internal_ipv4 => {
+        :interface => "eth0",
+        :role => :internal,
+        :family => :inet,
+        :address => "10.0.0.99"
+      }
+    }
+  }
+)
+
+run_list(
+  "role[osuosl]"
+)
diff --git a/roles/stormfly-02.rb b/roles/stormfly-02.rb
new file mode 100644 (file)
index 0000000..579874d
--- /dev/null
@@ -0,0 +1,19 @@
+name "stormfly-02"
+description "Master role applied to stormfly-02"
+
+default_attributes(
+  :networking => {
+    :interfaces => {
+      :internal_ipv4 => {
+        :interface => "eth0",
+        :role => :internal,
+        :family => :inet,
+        :address => "10.0.0.108"
+      }
+    }
+  }
+)
+
+run_list(
+  "role[osuosl]"
+)