Hi I am beginner in puppet world . I just created a module folder called 
users with following folder .

puppetservertest:/etc/puppet/modules/users# ls
files  manifests  templates

In manifest folder, I have single file called  init.pp

class users (

)

{
        group { "nextadmin":
                ensure => present,
        }

define users::add ( $username , $groupname = "" , $shell = "",  $ensure  , 
$login =  )  {
        user { "$username":
                ensure => "$ensure" ,
                groups => "$groupname"  ,
                shell =>  "$shell" ,
                require => Group["nextadmin"]  ,
        }
}
}


Now to I have to create multiple user . Where and how to declare the 
username ,groupname etc in the same file ?


-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/679fe1ae-b476-464a-9329-3e07e6a8c107%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to