Giter Club home page Giter Club logo

puppet-grid_pool_accounts's Issues

creating gridmapdir

Hi Robert
Can we create gridmapdir in pool_acconts.pp like this
if $create_gridmapdir_entry {
ensure_resource ( 'file', '/etc/grid-security/gridmapdir/', { 'ensure' => 'directory'} )
}
I am not sure that how it will affect creation of gridmapdir in simple.pp

pool_group fails if account has multiple groups

At Birmingham we have a set of users in our users.conf like:

7000:lhb000:7000:lhcb:lhcb::
7001:lhb001:7000:lhcb:lhcb::
...
7098:lhb098:7000:lhcb:lhcb::
7099:lhb099:7000:lhcb:lhcb::
8201:pillhb01:7003,7000:lhcbpil,lhcb:lhcb:pil:
8202:pillhb02:7003,7000:lhcbpil,lhcb:lhcb:pil:
...
8219:pillhb19:7003,7000:lhcbpil,lhcb:lhcb:pil:
8220:pillhb20:7003,7000:lhcbpil,lhcb:lhcb:pil:
8001:prdlhb01:7001,7000:lhcbprd,lhcb:lhcb:prd:
8002:prdlhb02:7001,7000:lhcbprd,lhcb:lhcb:prd:
...
8019:prdlhb19:7001,7000:lhcbprd,lhcb:lhcb:prd:
8020:prdlhb20:7001,7000:lhcbprd,lhcb:lhcb:prd:
8101:sgmlhb01:7002,7000:lhcbsgm,lhcb:lhcb:sgm:
8102:sgmlhb02:7002,7000:lhcbsgm,lhcb:lhcb:sgm:
...
8119:sgmlhb19:7002,7000:lhcbsgm,lhcb:lhcb:sgm:
8120:sgmlhb20:7002,7000:lhcbsgm,lhcb:lhcb:sgm:

When I call grid_pool_accounts { 'lhcb':} I get the error:

Error: Failed to apply catalog: Parameter gid failed on Group[lhcbsgm,lhcb]: Invalid GID 7002,7000 at /etc/puppet/environments/production/modules/grid_pool_accounts/manifests/pool_group.pp:10

This is because the function get_pool_gid() returns the last group id that matches 'lhcb' which gives 7002,7000 which is passed directly to a Puppet group definition in pool_group.pp which is an invalid GID.

I can't see where the secondary groups are created either. Is this functionality missing?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.