Sha256: 9f4bc45e346066b49a674d1fe3f2f5f8629751acd2b1b772ad25750029211453
Contents?: true
Size: 1.53 KB
Versions: 5
Compression:
Stored size: 1.53 KB
Contents
Puppet::Type.newtype(:interface) do require 'erb' @doc = "Create configuration for IP address aliases and loopback addresses." newparam(:name, :namevar => true) do desc "The ipaddress to add to alias or loopback/dummy interface" end ensurable newparam(:interface) do desc "The interface the IP should be added to" end newproperty(:interface_type) do desc "The interface type, loopback (also dummy) or alias" newvalue(:loopback) newvalue(:alias) newvalue(:normal) # Make dummy and loopback equivalent aliasvalue(:dummy, :loopback) defaultto :normal end newparam(:interface_desc) do desc "On Linux, the description / symbolic name you wish to refer to the interface by. When absent, Redhat Linux defaults to uses the namevar which will be either the IP address, or hostname." end newproperty(:onboot) do desc "Whether the interface should be configured to come up on boot" newvalue(:true) newvalue(:false) end newproperty(:ifnum) do desc "If not automatically configuring the dummy interface or and alias. This is use to force a given number to be used" end newproperty(:netmask) do desc "The netmask for the interface." end newproperty(:ifopts) do desc "Interface options." end newparam(:target) do include Puppet::Util::Warnings desc "The path to the file this resource creates." munge { |value| warnonce "Interface targets are deprecated and no longer have any function" } end end
Version data entries
5 entries across 5 versions & 1 rubygems