]> git.openstreetmap.org Git - chef.git/commitdiff
Add role for longma
authorTom Hughes <tom@compton.nu>
Mon, 6 Dec 2021 18:03:49 +0000 (18:03 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 6 Dec 2021 18:03:49 +0000 (18:03 +0000)
roles/longma.rb [new file with mode: 0644]

diff --git a/roles/longma.rb b/roles/longma.rb
new file mode 100644 (file)
index 0000000..d0c79ee
--- /dev/null
@@ -0,0 +1,37 @@
+name "longma"
+description "Master role applied to longma"
+
+default_attributes(
+  :networking => {
+    :interfaces => {
+      :internal_ipv4 => {
+        :interface => "bond0",
+        :role => :internal,
+        :family => :inet,
+        :address => "10.0.64.13",
+        :bond => {
+          :mode => "802.3ad",
+          :lacprate => "fast",
+          :xmithashpolicy => "layer3+4",
+          :slaves => %w[]
+        }
+      },
+      :external_ipv4 => {
+        :interface => "bond0.101",
+        :role => :external,
+        :family => :inet,
+        :address => "184.104.226.109"
+      },
+      :external_ipv6 => {
+        :interface => "bond0.101",
+        :role => :external,
+        :family => :inet6,
+        :address => "2001:470:1:b3b::d"
+      }
+    }
+  }
+)
+
+run_list(
+  "role[equinix-dub]"
+)