components/puppet/files/solaris/lib/puppet/type/ip_tunnel.rb
branchs11-update
changeset 3151 0dbc999aeec2
parent 2771 8e4227dc2fc4
equal deleted inserted replaced
3150:c958fe6a1b22 3151:0dbc999aeec2
    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"