Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
daxsorbito opened this issue Feb 3, 2015 · 2 comments

Comments

@daxsorbito
Copy link

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

@RolfKoenders
Copy link

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", {}

@ericfrancis
Copy link

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"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants