From af08abd9a84a360f523def1d5dde94f909d8553f Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 8 Nov 2015 12:21:29 +0000 Subject: [PATCH 1/1] Add role for kessie --- .../templates/default/shorewall-zones.erb | 1 + roles/exonetric.rb | 16 +++++++++++++ roles/kessie.rb | 24 +++++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 roles/exonetric.rb create mode 100644 roles/kessie.rb diff --git a/cookbooks/networking/templates/default/shorewall-zones.erb b/cookbooks/networking/templates/default/shorewall-zones.erb index 761195327..98b26c2b9 100644 --- a/cookbooks/networking/templates/default/shorewall-zones.erb +++ b/cookbooks/networking/templates/default/shorewall-zones.erb @@ -26,3 +26,4 @@ cnt:osm <%= @type %> jn:osm <%= @type %> es:osm <%= @type %> sz:osm <%= @type %> +ex:osm <%= @type %> diff --git a/roles/exonetric.rb b/roles/exonetric.rb new file mode 100644 index 000000000..094fda110 --- /dev/null +++ b/roles/exonetric.rb @@ -0,0 +1,16 @@ +name "exonetric" +description "Role applied to all servers at Exonetric" + +default_attributes( + :networking => { + :roles => { + :external => { + :zone => "ex" + } + } + } +) + +run_list( + "role[gb]" +) diff --git a/roles/kessie.rb b/roles/kessie.rb new file mode 100644 index 000000000..99497331a --- /dev/null +++ b/roles/kessie.rb @@ -0,0 +1,24 @@ +name "kessie" +description "Master role applied to kessie" + +default_attributes( + :networking => { + :interfaces => { + :external_ipv4 => { + :interface => "em1", + :role => :external, + :family => :inet, + :address => "10.42.0.98", + :hwaddress => "d8:d3:85:5d:87:5e", + :prefix => "24", + :gateway => "10.42.0.1" + } + }, + :nameservers => ["10.42.0.1"] + } +) + +run_list( + "role[exonetric]", + "role[hp-dl180-g6]" +) -- 2.39.5