]> git.openstreetmap.org Git - chef.git/commitdiff
Add role for odin
authorTom Hughes <tom@compton.nu>
Wed, 3 Apr 2019 12:26:45 +0000 (13:26 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 3 Apr 2019 12:26:45 +0000 (13:26 +0100)
roles/odin.rb [new file with mode: 0644]

diff --git a/roles/odin.rb b/roles/odin.rb
new file mode 100644 (file)
index 0000000..e31bc69
--- /dev/null
@@ -0,0 +1,34 @@
+name "odin"
+description "Master role applied to odin"
+
+default_attributes(
+  :networking => {
+    :interfaces => {
+      :internal_ipv4 => {
+        :interface => "bond0",
+        :role => :internal,
+        :family => :inet,
+        :address => "10.0.48.15",
+        :bond => {
+          :slaves => %w[eno1 eno2]
+        }
+      },
+      :external_ipv4 => {
+        :interface => "bond0.2",
+        :role => :external,
+        :family => :inet,
+        :address => "130.117.76.15"
+      },
+      :external_ipv6 => {
+        :interface => "bond0.2",
+        :role => :external,
+        :family => :inet6,
+        :address => "2001:978:2:2C::172:F"
+      }
+    }
+  }
+)
+
+run_list(
+  "role[equinix]"
+)