Firstly you are using cookbook_file now but source file is still in template directory. Secondly what do you think what proper order of resources should looks like?