--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/components/ruby/puppet/files/solaris/lib/puppet/type/nsswitch.rb Fri Nov 07 12:43:50 2014 -0800
@@ -0,0 +1,114 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
+#
+
+Puppet::Type.newtype(:nsswitch) do
+ @doc = "Name service switch configuration data"
+
+ newparam(:name) do
+ desc "The symbolic name for the nsswitch settings to use. This name
+ is used for human reference only."
+ isnamevar
+ end
+
+ newproperty(:default) do
+ desc "The default configuration entry"
+ end
+
+ newproperty(:host) do
+ desc "The host database lookup override"
+ end
+
+ newproperty(:password) do
+ desc "The password database lookup override"
+ end
+
+ newproperty(:group) do
+ desc "The group database lookup override"
+ end
+
+ newproperty(:network) do
+ desc "The network database lookup override"
+ end
+
+ newproperty(:rpc) do
+ desc "The rpc database lookup override"
+ end
+
+ newproperty(:ether) do
+ desc "The ether database lookup override"
+ end
+
+ newproperty(:netmask) do
+ desc "The netmask database lookup override"
+ end
+
+ newproperty(:bootparam) do
+ desc "The bootparam database lookup override"
+ end
+
+ newproperty(:publickey) do
+ desc "The publickey database lookup override"
+ end
+
+ newproperty(:netgroup) do
+ desc "The netgroup database lookup override"
+ end
+
+ newproperty(:automount) do
+ desc "The automount database lookup override"
+ end
+
+ newproperty(:alias) do
+ desc "The alias database lookup override"
+ end
+
+ newproperty(:service) do
+ desc "The service database lookup override"
+ end
+
+ newproperty(:project) do
+ desc "The project database lookup override"
+ end
+
+ newproperty(:auth_attr) do
+ desc "The auth_attr database lookup override"
+ end
+
+ newproperty(:prof_attr) do
+ desc "The prof_attr database lookup override"
+ end
+
+ newproperty(:tnrhtp) do
+ desc "The tnrhtp database lookup override. Requires trusted extensions"
+ end
+
+ newproperty(:tnrhdb) do
+ desc "The tnrhdb database lookup override. Requires trusted extensions"
+ end
+
+ newproperty(:sudoer) do
+ desc "The sudoer database lookup override. Used with sudo only"
+ end
+end