example42 / puppet-jboss

Jboss Puppet Module
http://www.example42.com
Other
15 stars 25 forks source link

JBoss install failing with: Could not find template '' #35

Open robpaterson opened 10 years ago

robpaterson commented 10 years ago

Hi,

I'm new at Puppet, so feel free to ignore if I'm making a noob mistake.

ENVIRONMENT I've used Amazon AMI to install:

[root@puppet-test ~]# facter --version 2.3.0 [root@puppet-test ~]# hiera --version 1.3.4 [root@puppet-test ~]# puppet --version 3.7.3

Node definition:

node 'puppet-test.paterson.in' { class { 'jboss':} }

PROBLEM When I: puppet agent --test --debug

I get: Error 400 on SERVER: Could not find template ''

. . . Debug: Loading facts from /var/lib/puppet/lib/facter/puppi_projects.rb _Info: Loading facts_ Debug: Failed to load library 'msgpack' for feature 'msgpack' Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing Debug: catalog supports formats: pson b64_zlib_yaml yaml dot raw Debug: Using cached connection for https://puppet.paterson.in:8140 Debug: Caching connection for https://puppet.paterson.in:8140 **Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find template '' on node puppet-test.paterson.in Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run**

CONFIGURATION My puppet.conf is:

[root@puppet-test ~]# cat /etc/puppet/puppet.conf [main]

parser = future

server = puppet.paterson.in

# The Puppet log directory.
# The default value is '$vardir/log'.
logdir = /var/log/puppet

# Where Puppet PID files are kept.
# The default value is '$vardir/run'.
rundir = /var/run/puppet

# Where SSL certificates are kept.
# The default value is '$confdir/ssl'.
ssldir = $vardir/ssl

[agent]
# The file in which puppetd stores a list of the classes
# associated with the retrieved configuratiion.  Can be loaded in
# the separate ``puppet`` executable using the ``--loadclasses``
# option.
# The default value is '$confdir/classes.txt'.
classfile = $vardir/classes.txt

# Where puppetd caches the local configuration.  An
# extension indicating the cache format is added automatically.
# The default value is '$confdir/localconfig'.
localconfig = $vardir/localconfig

Finally:

If I comment out the JBoss class declaration and use another module (say my SSH module) then it works.

alvagante commented 10 years ago

Can you verify, please, if you get the same error commenting the line in puppet.conf:

parser = future

robpaterson commented 10 years ago

Yep, that worked just fine. Sorry I should have thought to try that. Somehow I got convinced that the only way to get Puppet 3.7.3 to work was to have that parser = future line…

On 11 Nov 2014, at 12:59 am, Alessandro Franceschi notifications@github.com wrote:

Can you verify, please, if you get the same error commenting the line in puppet.conf:

parser = future

— Reply to this email directly or view it on GitHub https://github.com/example42/puppet-jboss/issues/35#issuecomment-62415812.

alvagante commented 10 years ago

No prob, there are some parts in some Example42 modules which as still no compatible with the future parser. I leave the ticket open as a reminder to fix that.