example42 / puppet-mongodb

Puppet module for MongoDB
Apache License 2.0
8 stars 9 forks source link

Simple declaration doesnt work #4

Open ki0 opened 10 years ago

ki0 commented 10 years ago

Hi there,

Im starting to use this module like all example42's modules and i get this error:

"Error: Must pass server_package_name to Class[Mongodb] at /tmp/vagrant-puppet-5/manifests/init.pp:5 on node debian7.example42.com"

The declaration is like said the documentation: class {'mongodb'}

The module starts to work when i fill in all variables that it needs, this is the final result:

class { 'mongodb': server_package_name => '', client_package_name => 'mongodb-clients', service_name => 'mongos', config_file_path => '', config_file_owner => 'root', config_file_group => 'root', config_file_mode => 644, config_dir_path => '', process_user => 'mongod', }

My environment is deployd with puppet-playground with Debian7, this is what i put on manifests/init.pp

Cheers

alvagante commented 10 years ago

The current master uses ripienaar/module_data module to manage module in data. Do you have it in your modulepath? If yes I fear something wrong is happening with a newer Puppet version, this stuff is quite experimental. You might prefer to use the 2.x branch.

ki0 commented 10 years ago

Module_data is in my modulepath, if its which scrip play download on example42's setup modules... :). Then i will try 2.x branch.

Thanks.

alvagante commented 10 years ago

If you want and have time try the master branch with a Puppet version lower than 3.4 and let me know if it works there

ki0 commented 10 years ago

vagrant@debian7:~$ puppet --version 3.1.1 vagrant@debian7:~$

Thats what im using....

alvagante commented 10 years ago

Uhm, last question, are you using Hiera in your vagrant environment?

It might fail because it needs to manipulate hiera.yaml

ki0 commented 10 years ago

The environment is like puppet-playgroung comes, i dont use hiera for anything right now...

alvagante commented 10 years ago

Ok, this might explain... will investigate... when times allows...