bond-slaves none
bond-primary <%= interface[:bond][:slaves].first %>
bond-miimon <%= interface[:bond][:miimon] || 100 %>
+<% if interface[:bond][:xmithashpolicy] -%>
+ bond_xmit_hash_policy <%= interface[:bond][:xmithashpolicy] %>
+<% end -%>
bond-downdelay <%= interface[:bond][:downdelay] || 200 %>
bond-updelay <%= interface[:bond][:updelay] || 200 %>
<% end -%>
ovh:osm <%= @type %>
ffr:osm <%= @type %>
ixz:osm <%= @type %>
+grn:osm <%= @type %>
--- /dev/null
+name "gr"
+description "Role applied to all servers located in Greece"
+
+override_attributes(
+ :country => "gr"
+)
+
+run_list(
+ "role[base]"
+)
--- /dev/null
+name "grnet"
+description "Role applied to all servers at GRNET"
+
+default_attributes(
+ :hosted_by => "GRNET",
+ :location => "Athens, Greece",
+ :networking => {
+ :nameservers => [
+ "83.212.2.77"
+ ],
+ :roles => {
+ :external => {
+ :zone => "grn"
+ }
+ }
+ }
+)
+
+override_attributes(
+ :ntp => {
+ :servers => ["0.gr.pool.ntp.org", "1.gr.pool.ntp.org", "europe.pool.ntp.org"]
+ }
+)
+
+run_list(
+ "role[gr]"
+)
--- /dev/null
+name "ladon"
+description "Master role applied to ladon"
+
+default_attributes(
+ :networking => {
+ :interfaces => {
+ :external_ipv4 => {
+ :interface => "bond0",
+ :role => :external,
+ :family => :inet,
+ :address => "83.212.2.116",
+ :prefix => "29",
+ :gateway => "83.212.2.113",
+ :bond => {
+ :mode => "802.3ad",
+ :miimon => "100",
+ :xmithashpolixt => "layer3+4",
+ :slaves => %w(eth0 eth1)
+ }
+ },
+ :external_ipv6 => {
+ :interface => "bond0",
+ :role => :external,
+ :family => :inet6,
+ :address => "2001:648:2ffe:4::116",
+ :prefix => "64",
+ :gateway => "2001:648:2ffe:4::1"
+ }
+ }
+ }
+)
+
+run_list(
+ "role[grnet]"
+)