Hi Jyotir, The filename and the defined type names need to be the same, you can either rename the define to accounts::system_users or rename the file to system.pp
Jacob On 20 January 2014 14:52, jyotir bhandari <[email protected]> wrote: > Hi > > I am getting error when i try to add system user including fields > mentioned in system_user.pp, if I manually mention all the fields in > init.pp, it just works fine. > > [root@server accounts]# pwd > /etc/puppet/modules/accounts > [root@server accounts]# tree > . > `-- manifests > |-- init.pp > `-- system_users.pp > > 1 directory, 2 files > > > *init.pp* > > class accounts { > @accounts::system { 'demo': > comment => 'demo users', > password => 'fndjsafjdashbjfsdhj', > } > } > > *system_users.pp* > > define accounts::system ($comment,$password){ > user { $title: > ensure => 'present', > shell => '/bin/bash', > managehome => true, > comment => $comment, > password => $password, > } > } > > > Jyotir > > > -- > 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/b0655764-7abb-481b-a49a-cd2410b8bc20%40googlegroups.com > . > For more options, visit https://groups.google.com/groups/opt_out. > -- 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/CAOQMBgyQympH2rjhqZCnsTbguUPCVBz1ccwJdUk_%2BsFg69WFRg%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
