================================================================================
Recipe Compile Error in /var/chef/cache/cookbooks/openstack-ops-database/recipes/server.rb
================================================================================
ArgumentError
-------------
Bad string format template[], you must have a string like resource_type[name]!
Cookbook Trace:
---------------
/var/chef/cache/cookbooks/openstack-ops-database/recipes/mysql-server.rb:50:in `from_file'
/var/chef/cache/cookbooks/openstack-ops-database/recipes/server.rb:22:in `from_file'
Relevant File Content:
----------------------
/var/chef/cache/cookbooks/openstack-ops-database/recipes/mysql-server.rb:
43: case
node['platform_family']
44: when 'debian'
45: mycnf_template = '/etc/mysql/my.cnf'
46: when 'rhel'
47: mycnf_template = 'final-my.cnf'
48: end
49:
50>> r = resources("template[#{mycnf_template}]")
51: r.notifies_immediately(:restart, 'service[mysql]')
52:
53: mysql_connection_info = {
54: host: 'localhost',
55: username: 'root',
56: password: node['mysql']['server_root_password']
57: }
58:
59: mysql_database 'FLUSH PRIVILEGES' do
Now, I talked to people on IRC and apparently not all
cookbooks work with Fedora. I don't plan to put Fedora in production, we would be using RHEL there, I tried it only for testing purposes. But I am still interested to know, what is causing this error? I mean I have template defined, the why isn't the cookbook able to find it? Isn't Fedora a part of RHEL family anymore?