~ubuntu-branches/ubuntu/quantal/puppet/quantal

« back to all changes in this revision

Viewing changes to lib/puppet/type/group.rb

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-07-14 01:56:30 UTC
  • mfrom: (1.1.29) (3.1.43 sid)
  • Revision ID: package-import@ubuntu.com-20120714015630-ntj41rkvkq4zph4y
Tags: 2.7.18-1ubuntu1
* Resynchronise with Debian. (LP: #1023931) Remaining changes:
  - debian/puppetmaster-passenger.postinst: Make sure we error if puppet
    config print doesn't work
  - debian/puppetmaster-passenger.postinst: Ensure upgrades from
    <= 2.7.11-1 fixup passenger apache configuration.
* Dropped upstreamed patches:
  - debian/patches/CVE-2012-1906_CVE-2012-1986_to_CVE-2012-1989.patch
  - debian/patches/puppet-12844
  - debian/patches/2.7.17-Puppet-July-2012-CVE-fixes.patch
* Drop Build-Depends on ruby-rspec (in universe):
  - debian/control: remove ruby-rspec from Build-Depends
  - debian/patches/no-rspec.patch: make Rakefile work anyway if rspec
    isn't installed so we can use it in debian/rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
    end
35
35
 
36
36
    newproperty(:gid) do
37
 
      desc "The group ID.  Must be specified numerically.  If not
38
 
        specified, a number will be picked, which can result in ID
39
 
        differences across systems and thus is not recommended.  The
40
 
        GID is picked according to local system standards.
 
37
      desc "The group ID.  Must be specified numerically.  If no group ID is
 
38
        specified when creating a new group, then one will be chosen
 
39
        automatically according to local system standards. This will likely
 
40
        result in the same group having different GIDs on different systems,
 
41
        which is not recommended.
41
42
 
42
 
        On Windows, the property will return the group's security
 
43
        On Windows, this property is read-only and will return the group's security
43
44
        identifier (SID)."
44
45
 
45
46
      def retrieve
91
92
    newparam(:name) do
92
93
      desc "The group name. While naming limitations vary by operating system,
93
94
        it is advisable to restrict names to the lowest common denominator,
94
 
        which is a maximum of 8 characters beginning with a letter."
 
95
        which is a maximum of 8 characters beginning with a letter.
 
96
 
 
97
        Note that Puppet considers group names to be case-sensitive, regardless
 
98
        of the platform's own rules; be sure to always use the same case when
 
99
        referring to a given group."
95
100
      isnamevar
96
101
    end
97
102
 
98
103
    newparam(:allowdupe, :boolean => true) do
99
 
      desc "Whether to allow duplicate GIDs.  This option does not work on
100
 
        FreeBSD (contract to the `pw` man page)."
 
104
      desc "Whether to allow duplicate GIDs. Defaults to `false`."
101
105
 
102
106
      newvalues(:true, :false)
103
107
 
120
124
      end
121
125
 
122
126
      validate do |value|
123
 
        raise ArgumentError, "Attributes value pairs must be seperated by an =" unless value.include?("=")
 
127
        raise ArgumentError, "Attributes value pairs must be separated by an =" unless value.include?("=")
124
128
      end
125
129
    end
126
130