summaryrefslogtreecommitdiffstats
path: root/lib/puppet/provider/host/netinfo.rb
blob: 97a3b99e72568de19437abbbe232fe7020b80a9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Manage NetInfo POSIX objects.  Probably only used on OS X, but I suppose
# it could be used elsewhere.
require 'puppet/provider/nameservice/netinfo'

Puppet::Type.type(:host).provide :netinfo, :parent => Puppet::Provider::NameService::NetInfo,
    :netinfodir => "machines" do
    desc "Host management in NetInfo.  This provider is highly experimental and is known
        not to work currently."
    commands :nireport => "nireport", :niutil => "niutil"
    commands :mountcmd => "mount", :umount => "umount", :df => "df"

    options :ip, :key => "ip_address"

    defaultfor :operatingsystem => :darwin
end

# $Id$