Hi Is this a good idea: In the users module: class users::db { @group { dba: gid => 200, ensure => present, } @user { oracle: ensure => present, uid => 200, gid => 200, comment => "Oracle User", home => "/home/oracle", require => Group["dba"], shell => "/bin/ksh", } @user { sybase: ensure => present, uid => 300, gid => 300, comment => "Sybase User", home => "/home/sybase", shell => "/bin/bash", } } and when I want to put the user on a system: case $db { oracle: { # Users and groups realize Group["dba"] realize User["oracle"] ... or should I create a module groups with virtual groups in it? BR, Rene --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
I put my groups in the virtual::users class as well. Keeps them in one place and it''s easier to manage. 2009/8/21 Rene <rene.zbinden@gmail.com>:> > Hi > > Is this a good idea: > > In the users module: > class users::db { > > @group { dba: > gid => 200, > ensure => present, > } > > @user { oracle: > ensure => present, > uid => 200, > gid => 200, > comment => "Oracle User", > home => "/home/oracle", > require => Group["dba"], > shell => "/bin/ksh", > } > > @user { sybase: > ensure => present, > uid => 300, > gid => 300, > comment => "Sybase User", > home => "/home/sybase", > shell => "/bin/bash", > } > } > > and when I want to put the user on a system: > case $db { > oracle: { > # Users and groups > realize Group["dba"] > realize User["oracle"] > ... > > or should I create a module groups with virtual groups in it? > > BR, Rene > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---