From: Tom Hughes Date: Sat, 18 May 2019 14:36:05 +0000 (+0100) Subject: Add role for fume X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/c2e7a922242cc5c44e756504f807a701ca2eff1b Add role for fume --- 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]" +)