Hi,

I wrote a new type to manage projects in Solaris. Projects are used to
do resource management. Here's a sample usage

project {'myproj:'
  projid     => '300',
  comment    => 'My Sample Project',
  users      => [ 'user1','user2' ],
  groups     => [ 'group1','group2' ],
  attributes => [
    'rcap.max-rss=10GB',
    'process.max-file-size=(priv,50MB,deny)',
  ],
  attribute_membership => inclusive,
  user_membership      => inclusive,
  group_membership     => inclusive,
  ensure               => present,
}

The provider checks /etc/project (readonly) to parse all
present projects and uses projadd/projdel/projmod to modify projects.

You can have a look at it here:
https://github.com/stschulte/puppet/commits/feature/next/projects
https://github.com/stschulte/puppet/commit/95444d7e0d7d652de127b0476302037d70481af9

I would love to have some feedback and if you think that project
is a resourcetype that could be integrated in puppet core I will
open a corresponding feature request.

-Stefan

Attachment: pgpUHhmZL4CdA.pgp
Description: PGP signature

Reply via email to