]> git.openstreetmap.org Git - chef.git/commitdiff
Add role for tabaluga
authorTom Hughes <tom@compton.nu>
Thu, 28 Mar 2019 14:04:10 +0000 (14:04 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 28 Mar 2019 14:04:10 +0000 (14:04 +0000)
roles/tabaluga.rb [new file with mode: 0644]

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