arukaen / chef-ghost

Development repository for ghost-blog cookbook
https://supermarket.chef.io/cookbooks/ghost-blog
1 stars 6 forks source link

Node attributes ignored if resource is used #18

Open sjsadowski opened 7 years ago

sjsadowski commented 7 years ago

When the attribute

node['ghost-blog']['app']['db_type'] = 'mysql'

is set, it's ignored and uses sqlite support anyway

sjsadowski commented 7 years ago

It turns out that the issues is that if the resource is used to set up blog (using blog_resource) or nginx (nginx_resource) any attributes that are set outside of that resource are ignored.

Example: I have an environment that sets my db connection information, but the attributes are ignored (as in the original issue statement).

I think this is fairly trivial to fix and will be submitting a PR for it once completed.