route

route

Use the route resource to manage the system routing table in a Linux environment.

Syntax

A route resource block manages the system routing table in a Linux environment:

route '10.0.1.10/32' do
  gateway '10.0.0.20'
  device 'eth1'
end

The full syntax for all of the properties that are available to the route resource is:

route 'name' do
  device                     String
  gateway                    String
  netmask                    String
  notifies                   # see description
  provider                   Chef::Provider::Route
  subscribes                 # see description
  target                     String # defaults to 'name' if not specified
  action                     Symbol # defaults to :add if not specified
end

where