]> git.openstreetmap.org Git - chef.git/commitdiff
Add role for palulukon
authorTom Hughes <tom@compton.nu>
Wed, 9 Nov 2022 13:33:43 +0000 (13:33 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 9 Nov 2022 13:36:30 +0000 (13:36 +0000)
roles/aws-us-east-2.rb [new file with mode: 0644]
roles/aws.rb [new file with mode: 0644]
roles/palulukon.rb [new file with mode: 0644]

diff --git a/roles/aws-us-east-2.rb b/roles/aws-us-east-2.rb
new file mode 100644 (file)
index 0000000..2cdc4c2
--- /dev/null
@@ -0,0 +1,11 @@
+name "aws-us-east-2"
+description "Role applied to all servers at AWS us-east-2"
+
+default_attributes(
+  :location => "Ohio"
+)
+
+run_list(
+  "role[us]",
+  "role[aws]"
+)
diff --git a/roles/aws.rb b/roles/aws.rb
new file mode 100644 (file)
index 0000000..4438781
--- /dev/null
@@ -0,0 +1,12 @@
+name "aws"
+description "Role applied to all servers at AWS"
+
+default_attributes(
+  :hosted_by => "AWS"
+)
+
+override_attributes(
+  :ntp => {
+    :servers => ["169.254.169.123"]
+  }
+)
diff --git a/roles/palulukon.rb b/roles/palulukon.rb
new file mode 100644 (file)
index 0000000..c1f5a19
--- /dev/null
@@ -0,0 +1,27 @@
+name "palulukon"
+description "Master role applied to palulukon"
+
+default_attributes(
+  :networking => {
+    :interfaces => {
+      :external_ipv4 => {
+        :interface => "ens5",
+        :role => :external,
+        :family => :inet,
+        :address => "172.31.37.101",
+        :prefix => "20",
+        :gateway => "172.31.32.1"
+      }
+    }
+  }
+)
+
+override_attributes(
+  :networking => {
+    :nameservers => ["172.31.0.2"]
+  }
+)
+
+run_list(
+  "role[aws-us-east-2]"
+)