diff options
author | Nigel Kersten <nigelk@google.com> | 2008-11-25 08:32:46 -0800 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2008-11-26 13:02:53 +1100 |
commit | d978668c03f42ce314245c23b06179f6a62f3d67 (patch) | |
tree | ba18a5fd7854e2fbe7d3220d072cba06ede991c3 /lib/puppet/provider/computer/computer.rb | |
parent | 86ce934270992d192a1163d211761a505d5b2812 (diff) | |
download | puppet-d978668c03f42ce314245c23b06179f6a62f3d67.tar.gz puppet-d978668c03f42ce314245c23b06179f6a62f3d67.tar.xz puppet-d978668c03f42ce314245c23b06179f6a62f3d67.zip |
Lots of DirectoryService work. New Computer Type. Users now use password hashes. Groups now support setting members as attributes of the group for OS X.
Diffstat (limited to 'lib/puppet/provider/computer/computer.rb')
-rw-r--r-- | lib/puppet/provider/computer/computer.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/puppet/provider/computer/computer.rb b/lib/puppet/provider/computer/computer.rb new file mode 100644 index 000000000..76d0f1883 --- /dev/null +++ b/lib/puppet/provider/computer/computer.rb @@ -0,0 +1,22 @@ +require 'puppet/provider/nameservice/directoryservice' + +Puppet::Type.type(:computer).provide :directoryservice, :parent => Puppet::Provider::NameService::DirectoryService do + desc "Computer object management using DirectoryService on OS X. + + Note that these are distinctly different kinds of objects to 'hosts', + as they require a MAC address and can have all sorts of policy attached to + them. + + This provider only manages Computer objects in the local directory service + domain, not in remote directories. + + If you wish to manage /etc/hosts on Mac OS X, then simply use the host + type as per other platforms. + " + + confine :operatingsystem => :darwin + defaultfor :operatingsystem => :darwin + + # hurray for abstraction. The nameservice directoryservice provider can + # handle everything we need. super. +end
\ No newline at end of file |