From 9b472e1b59b82da832f521d631aa09b6549012bd Mon Sep 17 00:00:00 2001 From: Adam Leff Date: Thu, 13 Apr 2017 10:34:47 -0400 Subject: [PATCH] Habitat packages should run as root Many InSpec resources require root access to properly scan. Let's default the run user to root until we need to accommodate different options. Signed-off-by: Adam Leff --- lib/bundles/inspec-habitat/profile.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/bundles/inspec-habitat/profile.rb b/lib/bundles/inspec-habitat/profile.rb index 554452d61..3c5b77395 100644 --- a/lib/bundles/inspec-habitat/profile.rb +++ b/lib/bundles/inspec-habitat/profile.rb @@ -294,6 +294,7 @@ pkg_origin=#{habitat_origin} pkg_source="nosuchfile.tar.gz" pkg_deps=(chef/inspec) pkg_build_deps=() +pkg_svc_user=root EOL plan += "pkg_license='#{profile.metadata.params[:license]}'\n\n" if profile.metadata.params[:license]