From 2b8fcbaea032fe9a2e5c98a8c63311756809c493 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 9 Nov 2022 13:33:43 +0000 Subject: [PATCH] Add role for palulukon --- roles/aws-us-east-2.rb | 11 +++++++++++ roles/aws.rb | 12 ++++++++++++ roles/palulukon.rb | 27 +++++++++++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 roles/aws-us-east-2.rb create mode 100644 roles/aws.rb create mode 100644 roles/palulukon.rb diff --git a/roles/aws-us-east-2.rb b/roles/aws-us-east-2.rb new file mode 100644 index 000000000..2cdc4c24c --- /dev/null +++ b/roles/aws-us-east-2.rb @@ -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 index 000000000..443878161 --- /dev/null +++ b/roles/aws.rb @@ -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 index 000000000..c1f5a1922 --- /dev/null +++ b/roles/palulukon.rb @@ -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]" +) -- 2.43.2