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