Puppet 2.6.18 Automodule loading -> Wrong number of Arguments (1 for 2)

114 views
Skip to first unread message

Michel Vocks

unread,
Mar 4, 2014, 5:08:16 AM3/4/14
to puppet...@googlegroups.com
Dear Puppet-Users,

I'm currently stucking at a wired error message.
Below I've posted all important output.
When I run this configuration on the same machine or on an client I geht the following error:
err: Could not retrieve catalog from remote server: Error 400 on SERVER: wrong number of arguments (1 for 2) at /etc/puppet/manifests/site.pp:2


[code]
puppet@de-dussmon2:/etc/puppet/manifests> puppet --version
2.6.18
[/code]

[code]
puppet@de-dussmon2:/etc/puppet/manifests> cat site.pp
node default {
  include test
}
[/code]

[code]
puppet@de-dussmon2:/etc/puppet/manifests/modules/test/manifests> cat init.pp
class test{
    case $::operatingsystem {
        'SLES': {
            $path_file = "/etc/puppet/testfile"
        }
        'windows': {
            $path_file = "C:/testfile.txt"
        }
    }

    file {'testfile':
        path    => $path_file,
        ensure  => file,
        content => $operatingsystem,
    }
}
[/code]

[code]
puppet@de-dussmon2:/etc/puppet/manifests/modules/test/manifests> puppet master --configprint modulpath
/etc/puppet/manifests/modules
[/code]

jcbollinger

unread,
Mar 5, 2014, 10:47:31 AM3/5/14
to puppet...@googlegroups.com


On Tuesday, March 4, 2014 4:08:16 AM UTC-6, Michel Vocks wrote:
Dear Puppet-Users,

I'm currently stucking at a wired error message.
Below I've posted all important output.
When I run this configuration on the same machine or on an client I geht the following error:
err: Could not retrieve catalog from remote server: Error 400 on SERVER: wrong number of arguments (1 for 2) at /etc/puppet/manifests/site.pp:2


I've never seen that one, and I don't see anything in your manifests to explain it.  I wonder whether you have a custom function named 'test', or whether there is an undocumented built-in one by that name.  If so, then changing the name of your class should fix the problem.
 



[code]
puppet@de-dussmon2:/etc/puppet/manifests> puppet --version
2.6.18
[/code]



Since you are just starting with Puppet, though, I would strongly recommend, that you work with a supported version.  You probably want the latest, version 3.4.3.  If for some reason you need a version in the Puppet 2 series, then go with 2.7.25.  (Those are the latest open-source versions; PE has its own version numbering.)  Since you appear to have a mind for managing Windows clients, you should be advised that Puppet 3's Windows support is far superior to Puppet 2's


John

Reply all
Reply to author
Forward
0 new messages