~ubuntu-branches/ubuntu/lucid/puppet/lucid-security

« back to all changes in this revision

Viewing changes to lib/puppet/provider/mcx/mcxcontent.rb

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2009-12-23 00:48:10 UTC
  • mfrom: (1.1.10 upstream) (3.1.7 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091223004810-3i4oryds922g5n59
Tags: 0.25.1-3ubuntu1
* Merge from debian testing.  Remaining changes:
  - debian/rules:
    + Don't start puppet when first installing puppet.
  - debian/puppet.conf, lib/puppet/defaults.rb:
    + Move templates to /etc/puppet
  - lib/puppet/defaults.rb:
    + Fix /var/lib/puppet/state ownership.
  - man/man8/puppet.conf.8: 
    + Fix broken URL in manpage.
  - debian/control:
    + Update maintainer accordint to spec.
    + Puppetmaster Recommends -> Suggests
    + Created puppet-testsuite as a seperate. Allow the users to run puppet's 
      testsuite.
  - tests/Rakefile: Fix rakefile so that the testsuite can acutally be ran.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
# Copyright (C) 2008 Jeffrey J McCune.
3
3
 
4
4
# This program and entire repository is free software; you can
5
 
# redistribute it and/or modify it under the terms of the GNU 
6
 
# General Public License as published by the Free Software 
 
5
# redistribute it and/or modify it under the terms of the GNU
 
6
# General Public License as published by the Free Software
7
7
# Foundation; either version 2 of the License, or any later version.
8
8
 
9
9
# This program is distributed in the hope that it will be useful,
23
23
 
24
24
    desc "MCX Settings management using DirectoryService on OS X.
25
25
 
26
 
  This provider manages the entire MCXSettings attribute available
27
 
  to some directory services nodes.  This management is 'all or nothing'
28
 
  in that discrete application domain key value pairs are not managed
29
 
  by this provider.
30
 
 
31
 
  It is recommended to use WorkGroup Manager to configure Users, Groups,
32
 
  Computers, or ComputerLists, then use 'ralsh mcx' to generate a puppet
33
 
  manifest from the resulting configuration.
34
 
 
35
 
  Original Author: Jeff McCune (mccune.jeff@gmail.com)
 
26
    This provider manages the entire MCXSettings attribute available
 
27
    to some directory services nodes.  This management is 'all or nothing'
 
28
    in that discrete application domain key value pairs are not managed
 
29
    by this provider.
 
30
 
 
31
    It is recommended to use WorkGroup Manager to configure Users, Groups,
 
32
    Computers, or ComputerLists, then use 'ralsh mcx' to generate a puppet
 
33
    manifest from the resulting configuration.
 
34
 
 
35
    Original Author: Jeff McCune (mccune.jeff@gmail.com)
36
36
 
37
37
"
38
38
 
66
66
                content = mcxexport(ds_type, ds_name)
67
67
                if content.empty?
68
68
                    Puppet.debug "/#{TypeMap[ds_type]}/#{ds_name} has no MCX data."
69
 
                else 
 
69
                else
70
70
                    # This node has MCX data.
71
71
                    rsrc = self.new(:name => "/#{TypeMap[ds_type]}/#{ds_name}",
72
72
                                 :ds_type => ds_type,