]> git.openstreetmap.org Git - chef.git/commitdiff
Add roles for snap-01 and snap-02
authorTom Hughes <tom@compton.nu>
Wed, 20 May 2020 16:50:55 +0000 (17:50 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 20 May 2020 16:50:55 +0000 (17:50 +0100)
roles/snap-01.rb [new file with mode: 0644]
roles/snap-02.rb [new file with mode: 0644]

diff --git a/roles/snap-01.rb b/roles/snap-01.rb
new file mode 100644 (file)
index 0000000..00b8d4b
--- /dev/null
@@ -0,0 +1,22 @@
+name "snap-01"
+description "Master role applied to snap-01"
+
+default_attributes(
+  :networking => {
+    :interfaces => {
+      :internal_ipv4 => {
+        :interface => "bond0",
+        :role => :internal,
+        :family => :inet,
+        :address => "10.0.48.49",
+        :bond => {
+          :slaves => %w[eno1 eno2 eno3 eno4]
+        }
+      }
+    }
+  }
+)
+
+run_list(
+  "role[equinix]"
+)
diff --git a/roles/snap-02.rb b/roles/snap-02.rb
new file mode 100644 (file)
index 0000000..8d3a66f
--- /dev/null
@@ -0,0 +1,19 @@
+name "snap-02"
+description "Master role applied to snap-02"
+
+default_attributes(
+  :networking => {
+    :interfaces => {
+      :internal_ipv4 => {
+        :interface => "eno1.2801",
+        :role => :internal,
+        :family => :inet,
+        :address => "10.0.0.4"
+      }
+    }
+  }
+)
+
+run_list(
+  "role[ucl]"
+)