title: No resource or method named `template' chef
body: <p>Actually try to write wirst cookbook with chef-solo and I am look up to cookbook wordpress to initialize my own site.</p>
  
  <p>But for few hours I couldn't find solution for this bug:</p>
  
  <pre><code>No resource or method named `template' for `Chef::Recipe "create_configs"'
  </code></pre>
  
  <p>On fragment:</p>
  
  <pre><code>template "#{project_config_dir}/database.php" do
    source "database.php.erb"
    mode 0440
    owner "root"
    group node['apache']['group']
    variables(
      'dev' =&gt; {
        'type' =&gt; app_db_config['type'],
        'hostname' =&gt; app_db_config['hostname'],
        'port' =&gt; app_db_config['port'],
        'username' =&gt; app_db_config['user'],
        'password' =&gt; app_db_config['password'],
        'database' =&gt; app_db_config['dababase'],
      } 
    )
    action :create
  end
  </code></pre>
  
  <p>with Vagrant file:</p>
  
  <pre><code># -*- mode: ruby -*-
  # vi: set ft=ruby :
  
  # Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
  VAGRANTFILE_API_VERSION = "2"
  
  Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  
    config.vm.box = "precise32"
    config.vm.box_url = "http://files.vagrantup.com/precise32.box"
  
    config.vm.network :private_network, ip: "192.168.33.11", :bridge =&gt; 'en1: Wi-Fi (AirPort)'
  
    config.vm.synced_folder "/Users/Tom/Documents/vagrant/destination_server/public", "/home/vagrant/public"
  
    config.vm.provider :virtualbox do |vb|
      # Don't boot with headless mode
       vb.gui = false
  
     # Use VBoxManage to customize the VM. For example to change memory:
     vb.customize ["modifyvm", :id, "--memory", "1024"]
   end
  
    config.vm.provision :shell, :inline =&gt; "/etc/init.d/networking restart"
  
    config.vm.provision :shell, :inline =&gt; "sudo apt-get update -y"
    config.vm.provision :shell, :inline =&gt; "sudo apt-get install ruby1.9.3 -y"
    config.vm.provision :shell, :inline =&gt; "sudo apt-get install rubygems -y"
  
    config.vm.provision :shell, :inline =&gt; "cd /home/vagrant &amp;&amp; sudo ./postinstall.sh"
  
    config.vm.provision "chef_solo" do |chef|
      chef.add_recipe "apt"
      chef.add_recipe "bazaar"
  
      chef.json = {
        "mysql" =&gt; {
          "server_debian_password" =&gt; "root",
          "server_root_password" =&gt; "root",
          "server_repl_password" =&gt; "root"
        },
        "run_list" =&gt;["recipe[mysql::server]"]  
      }
  
      chef.add_recipe "site"
  
  
    end
  end
  </code></pre>
  
  <p>Funny think is that resource "directory" working fine, but the same problem I have with use "execute".</p>
  
  <p>Used cookbook wordpress and added all needed cookbooks and workend fine with this two resources.</p>
  
  <p>I have version 11.10 of chef.
  Using Vagrant to create VirtualMachine</p>
  
  <p>Any idea? Need help/clue what to do :/</p>