Resource Type: opnsense_route_static

Defined in:
lib/puppet/type/opnsense_route_static.rb

Summary

Manage opnsense static routes

Overview

This type provides Puppet with the capabilities to manage opnsense static routes.

Examples:

opnsense_route_static { 'example route static':
  device      => 'opnsense-test.device.com',
  network     => '10.0.0.98/24',
  gateway     => 'WAN_DHCP',
  disabled    => false,
  ensure      => 'present',
}

Properties

  • disabled

    Set this option to disable this static route without removing it from the list.

  • ensure (defaults to: present)

    Whether this resource should be present or absent on the target system.

  • gateway

    Choose which gateway this route applies to eg. Null4 for 127.0.01, Null6 for ::1 or see opn-cli route gateway status.

  • network

    Destination network for this static route

  • uuid

    The uuid of the rule.

Parameters

  • descr (namevar)

    You may enter a description here for your reference (not parsed).

  • device (namevar)

    The name of the opnsense_device type you want to manage.