Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError:

16 views
Skip to first unread message

jyotir bhandari

unread,
Jan 19, 2014, 10:52:33 PM1/19/14
to puppet...@googlegroups.com
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
 

Jacob Fleming-Gale

unread,
Jan 20, 2014, 12:20:55 AM1/20/14
to puppet...@googlegroups.com
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


--
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 puppet-users...@googlegroups.com.
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.

jyotir bhandari

unread,
Jan 20, 2014, 12:28:00 AM1/20/14
to puppet...@googlegroups.com
Hi Jacob,

Thanks that worked.

Jyotir
Reply all
Reply to author
Forward
0 new messages