From c2e7a922242cc5c44e756504f807a701ca2eff1b Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 18 May 2019 15:36:05 +0100 Subject: [PATCH 1/1] Add role for fume --- roles/cz.rb | 10 ++++++++++ roles/fume.rb | 21 +++++++++++++++++++++ roles/zcu.rb | 25 +++++++++++++++++++++++++ 3 files changed, 56 insertions(+) create mode 100644 roles/cz.rb create mode 100644 roles/fume.rb create mode 100644 roles/zcu.rb diff --git a/roles/cz.rb b/roles/cz.rb new file mode 100644 index 000000000..8b7b08441 --- /dev/null +++ b/roles/cz.rb @@ -0,0 +1,10 @@ +name "cz" +description "Role applied to all servers located in the Czech Repuclib" + +override_attributes( + :country => "cz" +) + +run_list( + "role[base]" +) diff --git a/roles/fume.rb b/roles/fume.rb new file mode 100644 index 000000000..0a29e5d20 --- /dev/null +++ b/roles/fume.rb @@ -0,0 +1,21 @@ +name "fume" +description "Master role applied to fume" + +default_attributes( + :networking => { + :interfaces => { + :external_ipv4 => { + :interface => "ens3", + :role => :external, + :family => :inet, + :address => "147.228.60.16", + :prefix => "24", + :gateway => "147.228.60.1" + } + } + } +) + +run_list( + "role[zcu]" +) diff --git a/roles/zcu.rb b/roles/zcu.rb new file mode 100644 index 000000000..b059c5bf1 --- /dev/null +++ b/roles/zcu.rb @@ -0,0 +1,25 @@ +name "zcu" +description "Role applied to all servers at University of West Bohemia" + +default_attributes( + :hosted_by => "University of West Bohemia", + :location => "Pilsen, Czech Republic", + :networking => { + :nameservers => ["147.228.3.3", "147.228.52.11"], + :roles => { + :external => { + :zone => "osm" + } + } + } +) + +override_attributes( + :ntp => { + :servers => ["0.cz.pool.ntp.org", "1.cz.pool.ntp.org", "europe.pool.ntp.org"] + } +) + +run_list( + "role[cz]" +) -- 2.39.5