poise / application_ruby

Development repository for Opscode Cookbook application_ruby
Apache License 2.0
124 stars 153 forks source link

bundle_install doesn't respect application owner #96

Open matteeyah opened 6 years ago

matteeyah commented 6 years ago

bundle_install runs either as chef user or root. It should respect and run as the enclosing application owner.

matteeyah commented 6 years ago

A workaround is to specify the user explicitely in the bundle_install resource:

bundle_install do
  user 'application-owner'
  deployment true
  without %w(development test)
end