summaryrefslogtreecommitdiffstats
path: root/lib/puppet/provider/group/directoryservice.rb
diff options
context:
space:
mode:
authormccune <mccune@980ebf18-57e1-0310-9a29-db15c13687c0>2007-08-03 20:36:49 +0000
committermccune <mccune@980ebf18-57e1-0310-9a29-db15c13687c0>2007-08-03 20:36:49 +0000
commit5a5d2411265443a9331179c9410271e51b9d98f7 (patch)
treeca1a360b85943488d5744a35679bd7539e234407 /lib/puppet/provider/group/directoryservice.rb
parent08d89455aa848f95fcfa4ae35451c0a86563401d (diff)
downloadpuppet-5a5d2411265443a9331179c9410271e51b9d98f7.tar.gz
puppet-5a5d2411265443a9331179c9410271e51b9d98f7.tar.xz
puppet-5a5d2411265443a9331179c9410271e51b9d98f7.zip
DirectoryService provider for users and groups. Alternative to netinfo, as apple has indicated NetInfo may go away at some point in the future. It might happen in October.
FIXME: implement groups and groups= instances methods for Puppet::Type::User::ProviderDirectoryservice git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2739 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/provider/group/directoryservice.rb')
-rw-r--r--lib/puppet/provider/group/directoryservice.rb24
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/puppet/provider/group/directoryservice.rb b/lib/puppet/provider/group/directoryservice.rb
new file mode 100644
index 000000000..e92ef254a
--- /dev/null
+++ b/lib/puppet/provider/group/directoryservice.rb
@@ -0,0 +1,24 @@
+# Created by Jeff McCune on 2007-07-22
+# Copyright (c) 2007. All rights reserved.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation (version 2 of the License)
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston MA 02110-1301 USA
+
+require 'puppet/provider/nameservice/directoryservice'
+
+Puppet::Type.type(:group).provide :directoryservice, :parent => Puppet::Provider::NameService::DirectoryService do
+ desc "Group management using DirectoryService ... Fin. ;)"
+
+ # JJM: Do we really need commands defined here?
+ # commands :dscl => "/usr/bin/dscl"
+ # defaultfor :operatingsystem => :darwin
+
+end