Issue #12326 has been reported by FROMENT Michael.

----------------------------------------
Bug #12326: puppetlabs / puppetlabs-bacula :  Problem generating the 
/etc/bacula/bacula-dir.d/<node> files
https://projects.puppetlabs.com/issues/12326

Author: FROMENT Michael
Status: Unreviewed
Priority: Normal
Assignee: 
Category: modules
Target version: 2.7.x
Affected Puppet version: 2.7.3
Keywords: 
Branch: 


When I run a puppet apply I have the following error:

Could not parse for environment production: Syntax error at '='; expected '}' 
at /etc/puppet/manifests/nodes.pp:14 on node virt-morsup.deploy.private

I suppose that the syntax mention in the module readme isn't good so I replace:
$clients = {
'virt-morsup.deploy.private' = {
'fileset' => 'Basic:noHome',
'schedule' => 'Weekly',
}
}

BY

$clients = {
'virt-morsup.deploy.private' => {
'fileset' => 'Basic:noHome',
'schedule' => 'Weekly',
}
}

After that modification I get this error :

/usr/lib/ruby/1.8/puppet/parser/functions/create_resources.rb:9: warning: 
multiple values for a block parameter (2 for 1)
from 
/etc/puppet/modules/bacula/lib/puppet/parser/functions/generate_clients.rb:32

and the /etc/bacula/bacula-dir.d/ isn't generated.

Could you please explain me where i'm wrong?

here is the complete declaration of my node :

node "virt-morsup" inherits testnode {
$clients = {
'virt-morsup.deploy.private' => {
'fileset' => 'Basic:noHome',
'schedule' => 'Weekly',
}
}

    class { 'bacula':
    db_backend        => mysql,
    db_user           => test,
    db_password       => toto,
    db_host           => localhost,
    db_port           => 3306,
    db_database       => bacula,
    is_storage        => true,
    is_director       => true,
    is_client         => true,
    manage_console    => true,
    manage_db         => true,
    director_password => 'toto',
    console_password  => 'toto',
    director_server   => 'virt-morsup.deploy.private',
    mail_to           => '[email protected]',
    storage_server    => 'virt-morsup.deploy.private',
    clients           => $clients,
    }
    class { 'mysql::server': config_hash => { 'root_password' => 'toto' }

}

I suppose that there is a problem with generateclients.rb because in case of 
using parameterized class the condition statement if variable =~ 
/^bacula_client.*$/ will nerver match, so 
function_create_resources('bacula::config::client', {client => parameters}) 
will nerver be call.

I'm right?



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to