From 5e9eaa7712186beb2649b3ba4c42685398e9a66a Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 10 Jul 2014 13:42:33 +0100 Subject: [PATCH] Add initial configuration for OSUOSL machines --- .../templates/default/shorewall-zones.erb | 1 + roles/osuosl.rb | 29 +++++++++++++++++++ roles/stormfly-01.rb | 19 ++++++++++++ roles/stormfly-02.rb | 19 ++++++++++++ 4 files changed, 68 insertions(+) create mode 100644 roles/osuosl.rb create mode 100644 roles/stormfly-01.rb create mode 100644 roles/stormfly-02.rb diff --git a/cookbooks/networking/templates/default/shorewall-zones.erb b/cookbooks/networking/templates/default/shorewall-zones.erb index cdeacf52c..048d5ae76 100644 --- a/cookbooks/networking/templates/default/shorewall-zones.erb +++ b/cookbooks/networking/templates/default/shorewall-zones.erb @@ -21,3 +21,4 @@ hz:osm <%= @type %> bh:osm <%= @type %> dt:osm <%= @type %> nc:osm <%= @type %> +osuosl:osm <%= @type %> diff --git a/roles/osuosl.rb b/roles/osuosl.rb new file mode 100644 index 000000000..285c82952 --- /dev/null +++ b/roles/osuosl.rb @@ -0,0 +1,29 @@ +name "osuosl" +description "Role applied to all servers at OSUOSL" + +default_attributes( + :networking => { + :nameservers => [ "8.8.8.8", "8.8.4.4" ], + :roles => { + :internal => { + :inet => { + :prefix => "22", + :gateway => "10.0.0.0" + } + }, + :external => { + :zone => "osuosl" + } + } + } +) + +override_attributes( + :ntp => { + :servers => [ "ntp.osuosl.org" ] + } +) + +run_list( + "role[us]" +) diff --git a/roles/stormfly-01.rb b/roles/stormfly-01.rb new file mode 100644 index 000000000..8ee92c4a7 --- /dev/null +++ b/roles/stormfly-01.rb @@ -0,0 +1,19 @@ +name "stormfly-01" +description "Master role applied to stormfly-01" + +default_attributes( + :networking => { + :interfaces => { + :internal_ipv4 => { + :interface => "eth0", + :role => :internal, + :family => :inet, + :address => "10.0.0.99" + } + } + } +) + +run_list( + "role[osuosl]" +) diff --git a/roles/stormfly-02.rb b/roles/stormfly-02.rb new file mode 100644 index 000000000..579874d22 --- /dev/null +++ b/roles/stormfly-02.rb @@ -0,0 +1,19 @@ +name "stormfly-02" +description "Master role applied to stormfly-02" + +default_attributes( + :networking => { + :interfaces => { + :internal_ipv4 => { + :interface => "eth0", + :role => :internal, + :family => :inet, + :address => "10.0.0.108" + } + } + } +) + +run_list( + "role[osuosl]" +) -- 2.39.5