]> git.openstreetmap.org Git - chef.git/commitdiff
Add roles for fume and grisu
authorTom Hughes <tom@compton.nu>
Sat, 23 Sep 2023 23:24:33 +0000 (00:24 +0100)
committerTom Hughes <tom@compton.nu>
Sat, 23 Sep 2023 23:24:33 +0000 (00:24 +0100)
roles/fume.rb [new file with mode: 0644]
roles/grisu.rb [new file with mode: 0644]

diff --git a/roles/fume.rb b/roles/fume.rb
new file mode 100644 (file)
index 0000000..2f9902f
--- /dev/null
@@ -0,0 +1,36 @@
+name "fume"
+description "Master role applied to fume"
+
+default_attributes(
+  :networking => {
+    :interfaces => {
+      :internal => {
+        :interface => "bond0",
+        :role => :internal,
+        :inet => {
+          :address => "10.0.64.16"
+        },
+        :bond => {
+          :mode => "802.3ad",
+          :lacprate => "fast",
+          :xmithashpolicy => "layer3+4",
+          :slaves => %w[eno1 eno2 eno3 eno4 eno5 eno6]
+        }
+      },
+      :external => {
+        :interface => "bond0.101",
+        :role => :external,
+        :inet => {
+          :address => "184.104.226.112"
+        },
+        :inet6 => {
+          :address => "2001:470:1:b3b::10"
+        }
+      }
+    }
+  }
+)
+
+run_list(
+  "role[equinix-dub]"
+)
diff --git a/roles/grisu.rb b/roles/grisu.rb
new file mode 100644 (file)
index 0000000..c34fe2f
--- /dev/null
@@ -0,0 +1,36 @@
+name "grisu"
+description "Master role applied to grisu"
+
+default_attributes(
+  :networking => {
+    :interfaces => {
+      :internal => {
+        :interface => "bond0",
+        :role => :internal,
+        :inet => {
+          :address => "10.0.64.17"
+        },
+        :bond => {
+          :mode => "802.3ad",
+          :lacprate => "fast",
+          :xmithashpolicy => "layer3+4",
+          :slaves => %w[eno1 eno2 eno3 eno4 eno5 eno6]
+        }
+      },
+      :external => {
+        :interface => "bond0.101",
+        :role => :external,
+        :inet => {
+          :address => "184.104.226.113"
+        },
+        :inet6 => {
+          :address => "2001:470:1:b3b::11"
+        }
+      }
+    }
+  }
+)
+
+run_list(
+  "role[equinix-dub]"
+)