Sha256: 3374f92a6ace22605c04f3ba63b29961e34cd83ab8e1d6891497275f53e4cefe

Contents?: true

Size: 448 Bytes

Versions: 8

Compression:

Stored size: 448 Bytes

Contents

host 'dax' do
  interface :external, :eth0  #=> address is "dax_external"
  interface :dmz, [:eth1, :eth2]  #=> addresses are "dax_dmz_eth1" and "dax_dmz_eth2"

  runs :ssh, from: {Host['kira'] => :external}
end


host 'kira' do
  group :developers

  interface :external, :eth3 do |host|
    [host.groups.join, host.name, 'foo'].join('_')
  end
  #=> address is "developers_kira_foo"

  interface :internal, :eth4, 'bar' #=> address is "bar"
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
asbestos-0.0.9 examples/6_interface_addresses.rb
asbestos-0.0.8 examples/6_interface_addresses.rb
asbestos-0.0.7 examples/6_interface_addresses.rb
asbestos-0.0.6 examples/6_interface_addresses.rb
asbestos-0.0.5 examples/6_interface_addresses.rb
asbestos-0.0.4 examples/6_interface_addresses.rb
asbestos-0.0.3 examples/6_interface_addresses.rb
asbestos-0.0.1 examples/6_interface_addresses.rb