I have the following recipe for Chef:
def prestashop_deployDatabase (username)
sql_path = '/tmp/prestashop_create_tables.sql'
template sql_path do
source "prestashop152.sql.erb"
owner "root"
group node['mysql']['root_group']
mode "0600"
variables(
:username => #{username}
)
action :create
end
end
For some reason; it cannot understand the 'username' argument i'm passing.
PS: I'm a Ruby n00b.