Sha256: ae3a4f918ad1312cbd7cd4bfe2d05488c3de347eee6053ac9aef3c9c97574d63
Contents?: true
Size: 1.42 KB
Versions: 1
Compression:
Stored size: 1.42 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(:ifopts) do desc "Interface options." end newparam(:target) do desc "The path to the file this resource creates." defaultto { @resource.provider.file_path } end end # $Id: interface.rb 2747 2007-08-05 19:01:39Z luke $
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
puppet-0.23.2 | lib/puppet/type/interface.rb |