components/puppet/files/solaris/lib/puppet/type/ip_tunnel.rb
changeset 1921 489d0d0f656f
parent 1409 9db4ba32e740
equal deleted inserted replaced
1920:3ed8d7c25c17 1921:489d0d0f656f
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 #
    20 #
    21 
    21 
    22 #
    22 #
    23 # Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
    23 # Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
    24 #
    24 #
    25 
    25 
    26 Puppet::Type.newtype(:ip_tunnel) do
    26 Puppet::Type.newtype(:ip_tunnel) do
    27     @doc = "Manage the configuration of Oracle Solaris IP Tunnel links"
    27     @doc = "Manage the configuration of Oracle Solaris IP Tunnel links"
    28 
    28 
    38               temporary.  Temporary IP tunnels last until the next reboot."
    38               temporary.  Temporary IP tunnels last until the next reboot."
    39         newvalues(:true, :false)
    39         newvalues(:true, :false)
    40     end
    40     end
    41 
    41 
    42     newproperty(:tunnel_type) do
    42     newproperty(:tunnel_type) do
    43         desc "Specifies the type of tunnel to be created.  Valid values are
    43         desc "Specifies the type of tunnel to be created."
    44               ipv4, ipv6, 6to4"
       
    45         newvalues("ipv4", "ipv6", "6to4")
    44         newvalues("ipv4", "ipv6", "6to4")
    46     end
    45     end
    47 
    46 
    48     newproperty(:local_address) do
    47     newproperty(:local_address) do
    49         desc "IP address or hostname corresponding to the local tunnel address"
    48         desc "IP address or hostname corresponding to the local tunnel address"