edelight/chef-mongodb

Error executing action `create_if_missing` on resource 'template[/etc/mongodb.conf]'

daxsorbito opened this issue · 2 comments

Hi,

I would get this error Error executing action create_if_missing on resource 'template[/etc/mongodb.conf]' using this cookbook. I added recipe[mongodb::install] in the run_list.

Do I have to configure/set something?

The log could be seen here.

Thanks.

Dax

Exact same issue here.

Running:
Ubuntu 14.04
Vagrant 1.4.3
ruby 1.9.3

In my :chef_solo block

chef.add_recipe 'mongodb::default'
chef.json = {
      :mongodb => {
        :dbpath  => "/var/lib/mongodb",
        :logpath => "/var/log/mongodb",
        :port    => "27017"
      },
}

And in the Cheffile

cookbook "mongodb", {}

I am also seeing this issue with chef-solo

provision.sh

berks install -b /vagrant/tools/chef/cookbooks/dev_ops_database/Berksfile
berks install -b /vagrant/tools/chef/cookbooks/dev_ops_web_app/Berksfile

chef-solo -c /vagrant/tools/vagrant/solo.rb -j /vagrant/tools/vagrant/solo.json

dev_ops_database/recipes/default.rb

include_recipe "mongodb::default"

dev_ops_database/metadata.db

...
depends 'mongodb', '~> 0.16.2'

solo.json

{
    "run_list": [ "recipe[dev_ops_database::default]" ]
}

solo.rb

cookbook_path ["/vagrant/tools/chef/cookbooks", "/root/.berkshelf/cookbooks"]