Hi Jacob,
Thanks that worked.
Jyotir
On Monday, 20 January 2014 09:22:33 UTC+5:30, jyotir bhandari 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/a5ad61f8-c4c4-4d6c-b0aa-44c8d8e6149e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.